diff options
author | Mathias Agopian <mathias@google.com> | 2010-03-08 11:14:20 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-03-08 11:14:20 -0800 |
commit | fcfeb4b5970c8f361634429934a2518d7e8328dd (patch) | |
tree | 5a8337f84c6d707b28c9be732842555c622786d6 /libs/surfaceflinger/LayerBuffer.h | |
parent | 8addafe823381addbb8b9ca4edeca846fa13122f (diff) | |
download | frameworks_native-fcfeb4b5970c8f361634429934a2518d7e8328dd.zip frameworks_native-fcfeb4b5970c8f361634429934a2518d7e8328dd.tar.gz frameworks_native-fcfeb4b5970c8f361634429934a2518d7e8328dd.tar.bz2 |
fixes for [2474091] Saw Poor behaviour playing a video.
- fix a bug when hacking video buffers into gralloc buffers
where the buffer size was incorrect this was causing the
"direct-form-texture" mode to fail
- also when the above fails, make sure to revert to the
"mdp copy mode" before going to "slow mode"
- finally disable completely the "direct-from-texture" mode
for now. It cannot work because the allocated buffers can't
respect the GPU constraints (alignment and such). We'll
have to find a solution for that.
Diffstat (limited to 'libs/surfaceflinger/LayerBuffer.h')
-rw-r--r-- | libs/surfaceflinger/LayerBuffer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/surfaceflinger/LayerBuffer.h b/libs/surfaceflinger/LayerBuffer.h index eb5b8eb..b176623 100644 --- a/libs/surfaceflinger/LayerBuffer.h +++ b/libs/surfaceflinger/LayerBuffer.h @@ -99,7 +99,8 @@ private: class Buffer : public LightRefBase<Buffer> { public: - Buffer(const ISurface::BufferHeap& buffers, ssize_t offset); + Buffer(const ISurface::BufferHeap& buffers, + ssize_t offset, size_t bufferSize); inline bool supportsCopybit() const { return mSupportsCopybit; } |