summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger/SurfaceFlinger.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-08-19 17:46:26 -0700
committerMathias Agopian <mathias@google.com>2009-08-19 17:46:26 -0700
commit18b6b49ea5235fb6c0802db9a0cc2c6dd20646cb (patch)
tree99d8c9f592a961c1af7f583792f4178bce2cc89f /libs/surfaceflinger/SurfaceFlinger.h
parentb2f8450db8dfbc05724624f93d9ec5e65f0b7e54 (diff)
downloadframeworks_base-18b6b49ea5235fb6c0802db9a0cc2c6dd20646cb.zip
frameworks_base-18b6b49ea5235fb6c0802db9a0cc2c6dd20646cb.tar.gz
frameworks_base-18b6b49ea5235fb6c0802db9a0cc2c6dd20646cb.tar.bz2
fix a bug that caused the PixelFormat viewed by Surface to be wrong.
what happened is that the efective pixel format is calculated by SF but Surface nevew had access to it directly. in particular this caused query(FORMAT) to return the requested format instead of the effective format.
Diffstat (limited to 'libs/surfaceflinger/SurfaceFlinger.h')
-rw-r--r--libs/surfaceflinger/SurfaceFlinger.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/surfaceflinger/SurfaceFlinger.h b/libs/surfaceflinger/SurfaceFlinger.h
index 2569a0f..56ea97a 100644
--- a/libs/surfaceflinger/SurfaceFlinger.h
+++ b/libs/surfaceflinger/SurfaceFlinger.h
@@ -195,8 +195,8 @@ private:
sp<LayerBaseClient> createNormalSurfaceLocked(
const sp<Client>& client, DisplayID display,
- int32_t id, uint32_t w, uint32_t h,
- PixelFormat format, uint32_t flags);
+ int32_t id, uint32_t w, uint32_t h, uint32_t flags,
+ PixelFormat& format);
sp<LayerBaseClient> createBlurSurfaceLocked(
const sp<Client>& client, DisplayID display,