diff options
author | Mathias Agopian <mathias@google.com> | 2009-11-02 17:48:33 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-11-02 17:48:33 -0800 |
commit | 6fee064809068fe1a7da63d55678d9a222b0be15 (patch) | |
tree | 119f2ce4dc9362a7e389eac87abe1a7d7c691c5c /libs/ui | |
parent | aa628c911a6ec727f4cff0d664a9af5d91770828 (diff) | |
download | frameworks_native-6fee064809068fe1a7da63d55678d9a222b0be15.zip frameworks_native-6fee064809068fe1a7da63d55678d9a222b0be15.tar.gz frameworks_native-6fee064809068fe1a7da63d55678d9a222b0be15.tar.bz2 |
fix[2228133] pixelflinger ignores the "vertical stride" leading to artifacts when playing back video
we lost the concept of vertical stride when moving video playback to EGLImage.
Here we bring it back in a somewhat hacky-way that will work only for the
softgl/mdp backend.
Diffstat (limited to 'libs/ui')
-rw-r--r-- | libs/ui/GraphicBuffer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ui/GraphicBuffer.cpp b/libs/ui/GraphicBuffer.cpp index efe2d78..6a5c8a9 100644 --- a/libs/ui/GraphicBuffer.cpp +++ b/libs/ui/GraphicBuffer.cpp @@ -226,6 +226,14 @@ int GraphicBuffer::getIndex() const { return mIndex; } +void GraphicBuffer::setVerticalStride(uint32_t vstride) { + mVStride = vstride; +} + +uint32_t GraphicBuffer::getVerticalStride() const { + return mVStride; +} + // --------------------------------------------------------------------------- }; // namespace android |