[server] Add damage tracking feature to SurfaceInterface
ClosedPublic

Authored by graesslin on Apr 1 2016, 6:42 AM.

Details

Summary

This change introduces a damage tracking feature in SurfaceInterface.
So far the SurfaceInterface only exposes the damage compared to the
last attached buffer. But this is not always usefull for the user of
the library. E.g. if:

  • server renders
  • client damages buffer and commits
  • client damages buffer and commits
  • server wants render

In this situation the last damage information is not helpful to the
user of the library. It would need the combined damage information over
all attached buffers.

The new API combines the damage of the two commits in the example above.
The user of the library can then call resetTrackedDamage once it
processed the current damage (e.g. by updating the OpenGL texture).

Diff Detail

Repository
R127 KWayland
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 3053.Apr 1 2016, 6:42 AM
graesslin retitled this revision from to [server] Add damage tracking feature to SurfaceInterface.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added a reviewer: Plasma.
Restricted Application added a project: Plasma. · View Herald TranscriptApr 1 2016, 6:42 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
sebas accepted this revision.Apr 3 2016, 12:18 PM
sebas added a reviewer: sebas.
sebas added a subscriber: sebas.
sebas added inline comments.
src/server/surface_interface.h
174

its rendering scene (possessive)

175

its

181

@see, not @since

This revision is now accepted and ready to land.Apr 3 2016, 12:18 PM
graesslin marked 3 inline comments as done.Apr 4 2016, 6:59 AM
This revision was automatically updated to reflect the committed changes.