summaryrefslogtreecommitdiffstats
path: root/libs/ui
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/ui
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/ui')
-rw-r--r--libs/ui/GraphicBuffer.cpp8
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