From e5c6584a402fb3b1fe0507e4e00e601bec8f1bbc Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Mon, 2 Mar 2015 17:50:26 -0800 Subject: Constructor cleanup Change-Id: Ic39911d08f44c3174de91fb92fcd4cab73fe4654 --- libs/hwui/Layer.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'libs/hwui/Layer.cpp') diff --git a/libs/hwui/Layer.cpp b/libs/hwui/Layer.cpp index 7a026ef6b325..458f35b6b49b 100644 --- a/libs/hwui/Layer.cpp +++ b/libs/hwui/Layer.cpp @@ -37,7 +37,7 @@ namespace android { namespace uirenderer { -Layer::Layer(Type layerType, RenderState& renderState, const uint32_t layerWidth, const uint32_t layerHeight) +Layer::Layer(Type layerType, RenderState& renderState, uint32_t layerWidth, uint32_t layerHeight) : state(kState_Uncached) , caches(Caches::getInstance()) , renderState(renderState) @@ -46,24 +46,9 @@ Layer::Layer(Type layerType, RenderState& renderState, const uint32_t layerWidth // TODO: This is a violation of Android's typical ref counting, but it // preserves the old inc/dec ref locations. This should be changed... incStrong(nullptr); - mesh = nullptr; - meshElementCount = 0; - cacheable = true; - dirty = false; renderTarget = GL_TEXTURE_2D; texture.width = layerWidth; texture.height = layerHeight; - colorFilter = nullptr; - deferredUpdateScheduled = false; - renderNode = nullptr; - fbo = 0; - stencil = nullptr; - debugDrawUpdate = false; - hasDrawnSinceUpdate = false; - forceFilter = false; - convexMask = nullptr; - rendererLightPosDirty = true; - wasBuildLayered = false; renderState.registerLayer(this); } -- cgit v1.2.3-59-g8ed1b