summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/Layer.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2011-03-11 17:01:07 -0800
committer Mathias Agopian <mathias@google.com> 2011-03-11 17:01:40 -0800
commitccf94df600f452189fcb6bad5600e1af180695ad (patch)
tree9986e3dd4648b9ab8fd902797357fd015f048fd3 /services/surfaceflinger/Layer.cpp
parent9a3595c2c8895c1b158c91bf58ed2389dde8c66b (diff)
Fix initialization order warning.
Change-Id: I794dfaaa3a2f2645a89abc6c45de5f76e485f7d0
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r--services/surfaceflinger/Layer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 4afe90517826..7a69097bd976 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -52,6 +52,7 @@ template <typename T> inline T min(T a, T b) {
Layer::Layer(SurfaceFlinger* flinger,
DisplayID display, const sp<Client>& client)
: LayerBaseClient(flinger, display, client),
+ mFormat(PIXEL_FORMAT_NONE),
mGLExtensions(GLExtensions::getInstance()),
mNeedsBlending(true),
mNeedsDithering(false),
@@ -59,7 +60,7 @@ Layer::Layer(SurfaceFlinger* flinger,
mProtectedByApp(false),
mTextureManager(),
mBufferManager(mTextureManager),
- mWidth(0), mHeight(0), mFormat(PIXEL_FORMAT_NONE),
+ mWidth(0), mHeight(0),
mNeedsScaling(false), mFixedSize(false)
{
}