summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger/LayerBuffer.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-11-02 17:48:33 -0800
committerMathias Agopian <mathias@google.com>2009-11-02 17:48:33 -0800
commit6fee064809068fe1a7da63d55678d9a222b0be15 (patch)
tree119f2ce4dc9362a7e389eac87abe1a7d7c691c5c /libs/surfaceflinger/LayerBuffer.cpp
parentaa628c911a6ec727f4cff0d664a9af5d91770828 (diff)
downloadframeworks_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/surfaceflinger/LayerBuffer.cpp')
-rw-r--r--libs/surfaceflinger/LayerBuffer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/surfaceflinger/LayerBuffer.cpp b/libs/surfaceflinger/LayerBuffer.cpp
index 82a8e51..a36304c 100644
--- a/libs/surfaceflinger/LayerBuffer.cpp
+++ b/libs/surfaceflinger/LayerBuffer.cpp
@@ -444,6 +444,8 @@ void LayerBuffer::BufferSource::onDraw(const Region& clip) const
GraphicBuffer::USAGE_HW_TEXTURE,
src.img.w, src.img.handle, false);
+ graphicBuffer->setVerticalStride(src.img.h);
+
err = mLayer.initializeEglImage(graphicBuffer, &mTexture);
}
#endif