summaryrefslogtreecommitdiff
path: root/libs/surfaceflinger/LayerBuffer.h
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2010-01-20 13:44:53 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2010-01-20 13:44:53 -0800
commit3bc0346b3da584fcb529807b697ff6a22af18bb4 (patch)
tree8e6283d51c24bb4e56d8b4fb171d36fb6bb714c7 /libs/surfaceflinger/LayerBuffer.h
parent06b3ff7d5a7903d6804d295110820c121629ee4d (diff)
parent7323e545c8778beb6736a09a5d2c9f81b451e13f (diff)
Merge "fix [2363506] [Sapphire] Video playback broken"
Diffstat (limited to 'libs/surfaceflinger/LayerBuffer.h')
-rw-r--r--libs/surfaceflinger/LayerBuffer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/surfaceflinger/LayerBuffer.h b/libs/surfaceflinger/LayerBuffer.h
index 2ca63aca7a38..90f83c4c12cc 100644
--- a/libs/surfaceflinger/LayerBuffer.h
+++ b/libs/surfaceflinger/LayerBuffer.h
@@ -99,6 +99,9 @@ private:
class Buffer : public LightRefBase<Buffer> {
public:
Buffer(const ISurface::BufferHeap& buffers, ssize_t offset);
+ inline bool supportsCopybit() const {
+ return mSupportsCopybit;
+ }
inline status_t getStatus() const {
return mBufferHeap.heap!=0 ? NO_ERROR : NO_INIT;
}
@@ -113,6 +116,7 @@ private:
private:
ISurface::BufferHeap mBufferHeap;
NativeBuffer mNativeBuffer;
+ bool mSupportsCopybit;
};
class BufferSource : public Source {