summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/DisplayDevice.h
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2013-04-06 23:12:29 -0700
committerJesse Hall <jessehall@google.com>2013-07-15 13:59:41 -0700
commit38efe86d9459cf5c96a24a34cc5cbf31fdba7e19 (patch)
tree9fc8074b1c3fd31515d0396df9e7f917380529cb /services/surfaceflinger/DisplayDevice.h
parent5cd46aa3399ddeaf12a211390dfde66c796ab299 (diff)
downloadframeworks_native-38efe86d9459cf5c96a24a34cc5cbf31fdba7e19.zip
frameworks_native-38efe86d9459cf5c96a24a34cc5cbf31fdba7e19.tar.gz
frameworks_native-38efe86d9459cf5c96a24a34cc5cbf31fdba7e19.tar.bz2
Rewrite VirtualDisplaySurface
The previous implementation assumed that the HWC could read and write the same buffer on frames that involved both GLES and HWC composition. It turns out some hardware can't do this. The new implementation maintains a scratch buffer pool to use on these mixed frames, but on GLES-only or HWC-only frames still does composition directly into the output buffer. Bug: 8384764 Change-Id: I7a3addb34fad9bfcbdabbb8b635083e10223df69
Diffstat (limited to 'services/surfaceflinger/DisplayDevice.h')
-rw-r--r--services/surfaceflinger/DisplayDevice.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/surfaceflinger/DisplayDevice.h b/services/surfaceflinger/DisplayDevice.h
index eefc107..748be1a 100644
--- a/services/surfaceflinger/DisplayDevice.h
+++ b/services/surfaceflinger/DisplayDevice.h
@@ -119,6 +119,8 @@ public:
int32_t getHwcDisplayId() const { return mHwcDisplayId; }
const wp<IBinder>& getDisplayToken() const { return mDisplayToken; }
+ status_t prepareFrame(const HWComposer& hwc) const;
+
void swapBuffers(HWComposer& hwc) const;
status_t compositionComplete() const;