Lines Matching refs:mLayer
41 , mLayer(layer) { in LayerRenderer()
49 LAYER_RENDERER_LOGD("Rendering into layer, fbo = %d", mLayer->getFbo()); in prepareDirty()
51 renderState().bindFramebuffer(mLayer->getFbo()); in prepareDirty()
53 const float width = mLayer->layer.getWidth(); in prepareDirty()
54 const float height = mLayer->layer.getHeight(); in prepareDirty()
59 mLayer->region.clear(); in prepareDirty()
64 mLayer->region.subtractSelf(r); in prepareDirty()
66 mLayer->clipRect.set(dirty); in prepareDirty()
72 if (mLayer->isDirty()) { in clear()
77 mLayer->setDirty(false); in clear()
90 LAYER_RENDERER_LOGD("Finished rendering into layer, fbo = %d", mLayer->getFbo()); in finish()
97 return mLayer->getFbo(); in getTargetFbo()
113 attachStencilBufferToLayer(mLayer); in ensureStencilBuffer()
124 return &mLayer->region; in getRegion()
131 if (mLayer->region.isRect() || mLayer->region.isEmpty()) { in generateMesh()
132 if (mLayer->mesh) { in generateMesh()
133 delete[] mLayer->mesh; in generateMesh()
134 mLayer->mesh = NULL; in generateMesh()
135 mLayer->meshElementCount = 0; in generateMesh()
138 mLayer->setRegionAsRect(); in generateMesh()
146 Region safeRegion = Region::createTJunctionFreeRegion(mLayer->region); in generateMesh()
153 if (mLayer->mesh && mLayer->meshElementCount < elementCount) { in generateMesh()
154 delete[] mLayer->mesh; in generateMesh()
155 mLayer->mesh = NULL; in generateMesh()
158 if (!mLayer->mesh) { in generateMesh()
159 mLayer->mesh = new TextureVertex[count * 4]; in generateMesh()
161 mLayer->meshElementCount = elementCount; in generateMesh()
163 const float texX = 1.0f / float(mLayer->getWidth()); in generateMesh()
164 const float texY = 1.0f / float(mLayer->getHeight()); in generateMesh()
165 const float height = mLayer->layer.getHeight(); in generateMesh()
167 TextureVertex* mesh = mLayer->mesh; in generateMesh()