summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger/LayerBuffer.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-01-20 13:24:14 -0800
committerMathias Agopian <mathias@google.com>2010-01-20 13:24:14 -0800
commit1faed6608655409cdd9c703cdbceedc03cb40bde (patch)
treed1322035bc57f859960ccefd2a4075a96ff32986 /libs/surfaceflinger/LayerBuffer.h
parent084e7c4ee8d4c6d54561347e2fe76bcdbd9f19da (diff)
downloadframeworks_native-1faed6608655409cdd9c703cdbceedc03cb40bde.zip
frameworks_native-1faed6608655409cdd9c703cdbceedc03cb40bde.tar.gz
frameworks_native-1faed6608655409cdd9c703cdbceedc03cb40bde.tar.bz2
fix [2363506] [Sapphire] Video playback broken
don't try to use copybit for incompatible buffers
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 2ca63ac..90f83c4 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 {