summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/DisplayDevice.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-09-13 18:17:13 -0700
committerMathias Agopian <mathias@google.com>2012-09-17 18:57:53 -0700
commitda27af9832a0170f1fc40ef3f21371c4d30d21b3 (patch)
treee4d80c394a30865c2196581ee5b23820bbcd3c41 /services/surfaceflinger/DisplayDevice.h
parentcde87a3b9d3f8dc15232d927b56ee9e5e520f58d (diff)
downloadframeworks_native-da27af9832a0170f1fc40ef3f21371c4d30d21b3.zip
frameworks_native-da27af9832a0170f1fc40ef3f21371c4d30d21b3.tar.gz
frameworks_native-da27af9832a0170f1fc40ef3f21371c4d30d21b3.tar.bz2
add support hwc 1.1
Bug: 7124069 Change-Id: I53d705105c4ad8954d3f50ee4f4c8b7ec936b871
Diffstat (limited to 'services/surfaceflinger/DisplayDevice.h')
-rw-r--r--services/surfaceflinger/DisplayDevice.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/surfaceflinger/DisplayDevice.h b/services/surfaceflinger/DisplayDevice.h
index 8122b9d..4a3f0a0 100644
--- a/services/surfaceflinger/DisplayDevice.h
+++ b/services/surfaceflinger/DisplayDevice.h
@@ -40,6 +40,7 @@ class DisplayInfo;
class FramebufferSurface;
class LayerBase;
class SurfaceFlinger;
+class HWComposer;
class DisplayDevice : public LightRefBase<DisplayDevice>
{
@@ -106,8 +107,12 @@ public:
int32_t getHwcDisplayId() const { return mHwcDisplayId; }
const wp<IBinder>& getDisplayToken() const { return mDisplayToken; }
+ void swapBuffers(HWComposer& hwc) const;
status_t compositionComplete() const;
+ // called after h/w composer has completed its set() call
+ void onSwapBuffersCompleted(HWComposer& hwc) const;
+
Rect getBounds() const {
return Rect(mDisplayWidth, mDisplayHeight);
}