blob: ee4619d2c222e5540e5cda7259522aab243d6c08 [file] [log] [blame]
John Reck3b202512014-06-23 13:13:08 -07001/*
2 * Copyright (C) 2014 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
John Reck38e0c322015-11-10 12:19:17 -080016#include <GpuMemoryTracker.h>
Chris Craik96a5c4c2015-01-27 15:46:35 -080017#include "renderstate/RenderState.h"
John Reck3b202512014-06-23 13:13:08 -070018
John Reck443a7142014-09-04 17:40:05 -070019#include "renderthread/CanvasContext.h"
John Reck0e89e2b2014-10-31 14:49:06 -070020#include "renderthread/EglManager.h"
Chris Craik117bdbc2015-02-05 10:12:38 -080021#include "utils/GLUtils.h"
Chris Craik9db58c02015-08-19 15:19:18 -070022#include <algorithm>
23
John Reck3b202512014-06-23 13:13:08 -070024namespace android {
25namespace uirenderer {
26
John Reck0e89e2b2014-10-31 14:49:06 -070027RenderState::RenderState(renderthread::RenderThread& thread)
28 : mRenderThread(thread)
John Reck3b202512014-06-23 13:13:08 -070029 , mViewportWidth(0)
30 , mViewportHeight(0)
31 , mFramebuffer(0) {
John Reck0e89e2b2014-10-31 14:49:06 -070032 mThreadId = pthread_self();
John Reck3b202512014-06-23 13:13:08 -070033}
34
35RenderState::~RenderState() {
Chris Craik44eb2c02015-01-29 09:45:09 -080036 LOG_ALWAYS_FATAL_IF(mBlend || mMeshState || mScissor || mStencil,
Chris Craik96a5c4c2015-01-27 15:46:35 -080037 "State object lifecycle not managed correctly");
John Reck3b202512014-06-23 13:13:08 -070038}
39
40void RenderState::onGLContextCreated() {
Chris Craik44eb2c02015-01-29 09:45:09 -080041 LOG_ALWAYS_FATAL_IF(mBlend || mMeshState || mScissor || mStencil,
Chris Craik96a5c4c2015-01-27 15:46:35 -080042 "State object lifecycle not managed correctly");
John Reck38e0c322015-11-10 12:19:17 -080043 GpuMemoryTracker::onGLContextCreated();
44
Chris Craik44eb2c02015-01-29 09:45:09 -080045 mBlend = new Blend();
Chris Craik96a5c4c2015-01-27 15:46:35 -080046 mMeshState = new MeshState();
47 mScissor = new Scissor();
48 mStencil = new Stencil();
Chris Craik65fe5ee2015-01-26 18:06:29 -080049
Chris Craik96a5c4c2015-01-27 15:46:35 -080050 // This is delayed because the first access of Caches makes GL calls
Chris Craikff5c8e82015-01-30 09:46:18 -080051 if (!mCaches) {
52 mCaches = &Caches::createInstance(*this);
53 }
Chris Craik96a5c4c2015-01-27 15:46:35 -080054 mCaches->init();
55 mCaches->textureCache.setAssetAtlas(&mAssetAtlas);
John Reck3b202512014-06-23 13:13:08 -070056}
57
John Reck49bc4ac2015-01-29 12:53:38 -080058static void layerLostGlContext(Layer* layer) {
59 layer->onGlContextLost();
60}
61
Chris Craik1d477422014-08-26 17:30:15 -070062void RenderState::onGLContextDestroyed() {
Chris Craik9fded232015-11-11 16:42:34 -080063 mLayerPool.clear();
64
Chris Craik96a5c4c2015-01-27 15:46:35 -080065 // TODO: reset all cached state in state objects
John Reck49bc4ac2015-01-29 12:53:38 -080066 std::for_each(mActiveLayers.begin(), mActiveLayers.end(), layerLostGlContext);
John Reckebd52612014-12-10 16:47:36 -080067 mAssetAtlas.terminate();
Chris Craik96a5c4c2015-01-27 15:46:35 -080068
Chris Craik44eb2c02015-01-29 09:45:09 -080069 mCaches->terminate();
70
71 delete mBlend;
72 mBlend = nullptr;
Chris Craik96a5c4c2015-01-27 15:46:35 -080073 delete mMeshState;
74 mMeshState = nullptr;
75 delete mScissor;
76 mScissor = nullptr;
77 delete mStencil;
78 mStencil = nullptr;
John Reck38e0c322015-11-10 12:19:17 -080079
80 GpuMemoryTracker::onGLContextDestroyed();
Chris Craik1d477422014-08-26 17:30:15 -070081}
82
Chris Craik9fded232015-11-11 16:42:34 -080083void RenderState::flush(Caches::FlushMode mode) {
84 switch (mode) {
85 case Caches::FlushMode::Full:
86 // fall through
87 case Caches::FlushMode::Moderate:
88 // fall through
89 case Caches::FlushMode::Layers:
90 mLayerPool.clear();
91 break;
92 }
93 mCaches->flush(mode);
94}
95
John Reck3b202512014-06-23 13:13:08 -070096void RenderState::setViewport(GLsizei width, GLsizei height) {
97 mViewportWidth = width;
98 mViewportHeight = height;
99 glViewport(0, 0, mViewportWidth, mViewportHeight);
100}
101
102
103void RenderState::getViewport(GLsizei* outWidth, GLsizei* outHeight) {
104 *outWidth = mViewportWidth;
105 *outHeight = mViewportHeight;
106}
107
108void RenderState::bindFramebuffer(GLuint fbo) {
109 if (mFramebuffer != fbo) {
110 mFramebuffer = fbo;
111 glBindFramebuffer(GL_FRAMEBUFFER, mFramebuffer);
112 }
113}
114
John Reck0b8d0672016-01-29 14:18:22 -0800115GLuint RenderState::createFramebuffer() {
Chris Craik818c9fb2015-10-23 14:33:42 -0700116 GLuint ret;
117 glGenFramebuffers(1, &ret);
118 return ret;
119}
120
121void RenderState::deleteFramebuffer(GLuint fbo) {
122 if (mFramebuffer == fbo) {
123 // GL defines that deleting the currently bound FBO rebinds FBO 0.
124 // Reflect this in our cached value.
125 mFramebuffer = 0;
126 }
127 glDeleteFramebuffers(1, &fbo);
128}
129
John Reck3b202512014-06-23 13:13:08 -0700130void RenderState::invokeFunctor(Functor* functor, DrawGlInfo::Mode mode, DrawGlInfo* info) {
John Reck95cd24b2015-08-04 11:17:39 -0700131 if (mode == DrawGlInfo::kModeProcessNoContext) {
132 // If there's no context we don't need to interrupt as there's
133 // no gl state to save/restore
134 (*functor)(mode, info);
135 } else {
136 interruptForFunctorInvoke();
137 (*functor)(mode, info);
138 resumeFromFunctorInvoke();
139 }
John Reck3b202512014-06-23 13:13:08 -0700140}
141
142void RenderState::interruptForFunctorInvoke() {
Chris Craik6c15ffa2015-02-02 13:50:55 -0800143 mCaches->setProgram(nullptr);
Chris Craik44eb2c02015-01-29 09:45:09 -0800144 mCaches->textureState().resetActiveTexture();
Chris Craik96a5c4c2015-01-27 15:46:35 -0800145 meshState().unbindMeshBuffer();
146 meshState().unbindIndicesBuffer();
147 meshState().resetVertexPointers();
148 meshState().disableTexCoordsVertexArray();
John Reck3b202512014-06-23 13:13:08 -0700149 debugOverdraw(false, false);
150}
151
152void RenderState::resumeFromFunctorInvoke() {
153 glViewport(0, 0, mViewportWidth, mViewportHeight);
154 glBindFramebuffer(GL_FRAMEBUFFER, mFramebuffer);
155 debugOverdraw(false, false);
156
157 glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
158
Chris Craik65fe5ee2015-01-26 18:06:29 -0800159 scissor().invalidate();
Chris Craik44eb2c02015-01-29 09:45:09 -0800160 blend().invalidate();
John Reck3b202512014-06-23 13:13:08 -0700161
Chris Craik44eb2c02015-01-29 09:45:09 -0800162 mCaches->textureState().activateTexture(0);
163 mCaches->textureState().resetBoundTextures();
John Reck3b202512014-06-23 13:13:08 -0700164}
165
166void RenderState::debugOverdraw(bool enable, bool clear) {
Chris Craik2507c342015-05-04 14:36:49 -0700167 if (Properties::debugOverdraw && mFramebuffer == 0) {
John Reck3b202512014-06-23 13:13:08 -0700168 if (clear) {
Chris Craik65fe5ee2015-01-26 18:06:29 -0800169 scissor().setEnabled(false);
Chris Craik96a5c4c2015-01-27 15:46:35 -0800170 stencil().clear();
John Reck3b202512014-06-23 13:13:08 -0700171 }
172 if (enable) {
Chris Craik96a5c4c2015-01-27 15:46:35 -0800173 stencil().enableDebugWrite();
John Reck3b202512014-06-23 13:13:08 -0700174 } else {
Chris Craik96a5c4c2015-01-27 15:46:35 -0800175 stencil().disable();
John Reck3b202512014-06-23 13:13:08 -0700176 }
177 }
178}
179
John Reck0e89e2b2014-10-31 14:49:06 -0700180class DecStrongTask : public renderthread::RenderTask {
181public:
Chih-Hung Hsiehc6baf562016-04-27 11:29:23 -0700182 explicit DecStrongTask(VirtualLightRefBase* object) : mObject(object) {}
John Reck0e89e2b2014-10-31 14:49:06 -0700183
Chris Craikd41c4d82015-01-05 15:51:13 -0800184 virtual void run() override {
185 mObject->decStrong(nullptr);
186 mObject = nullptr;
John Reck0e89e2b2014-10-31 14:49:06 -0700187 delete this;
188 }
189
190private:
191 VirtualLightRefBase* mObject;
192};
193
194void RenderState::postDecStrong(VirtualLightRefBase* object) {
John Recka55b5d62016-01-14 15:09:10 -0800195 if (pthread_equal(mThreadId, pthread_self())) {
196 object->decStrong(nullptr);
197 } else {
198 mRenderThread.queue(new DecStrongTask(object));
199 }
John Reck0e89e2b2014-10-31 14:49:06 -0700200}
201
Chris Craik6c15ffa2015-02-02 13:50:55 -0800202///////////////////////////////////////////////////////////////////////////////
203// Render
204///////////////////////////////////////////////////////////////////////////////
205
Chris Craik12efe642015-09-28 15:52:12 -0700206void RenderState::render(const Glop& glop, const Matrix4& orthoMatrix) {
Chris Craik6c15ffa2015-02-02 13:50:55 -0800207 const Glop::Mesh& mesh = glop.mesh;
Chris Craikef250742015-02-25 17:16:16 -0800208 const Glop::Mesh::Vertices& vertices = mesh.vertices;
209 const Glop::Mesh::Indices& indices = mesh.indices;
Chris Craik0519c8102015-02-11 13:17:06 -0800210 const Glop::Fill& fill = glop.fill;
Chris Craik6c15ffa2015-02-02 13:50:55 -0800211
John Reck975591a2016-01-22 16:28:07 -0800212 GL_CHECKPOINT(MODERATE);
John Reck9372ac32016-01-19 11:46:52 -0800213
Chris Craik0519c8102015-02-11 13:17:06 -0800214 // ---------------------------------------------
215 // ---------- Program + uniform setup ----------
216 // ---------------------------------------------
217 mCaches->setProgram(fill.program);
Chris Craik6c15ffa2015-02-02 13:50:55 -0800218
Chris Craik0519c8102015-02-11 13:17:06 -0800219 if (fill.colorEnabled) {
220 fill.program->setColor(fill.color);
221 }
Chris Craik6c15ffa2015-02-02 13:50:55 -0800222
Chris Craik12efe642015-09-28 15:52:12 -0700223 fill.program->set(orthoMatrix,
Chris Craik6c15ffa2015-02-02 13:50:55 -0800224 glop.transform.modelView,
Chris Craik53e51e42015-06-01 10:35:35 -0700225 glop.transform.meshTransform(),
226 glop.transform.transformFlags & TransformFlags::OffsetByFudgeFactor);
Chris Craik6c15ffa2015-02-02 13:50:55 -0800227
Chris Craik0519c8102015-02-11 13:17:06 -0800228 // Color filter uniforms
Chris Craikb9ce116d2015-08-20 15:14:06 -0700229 if (fill.filterMode == ProgramDescription::ColorFilterMode::Blend) {
Chris Craikef250742015-02-25 17:16:16 -0800230 const FloatColor& color = fill.filter.color;
Chris Craik117bdbc2015-02-05 10:12:38 -0800231 glUniform4f(mCaches->program().getUniform("colorBlend"),
232 color.r, color.g, color.b, color.a);
Chris Craikb9ce116d2015-08-20 15:14:06 -0700233 } else if (fill.filterMode == ProgramDescription::ColorFilterMode::Matrix) {
Chris Craik117bdbc2015-02-05 10:12:38 -0800234 glUniformMatrix4fv(mCaches->program().getUniform("colorMatrix"), 1, GL_FALSE,
Chris Craikef250742015-02-25 17:16:16 -0800235 fill.filter.matrix.matrix);
Chris Craik117bdbc2015-02-05 10:12:38 -0800236 glUniform4fv(mCaches->program().getUniform("colorMatrixVector"), 1,
Chris Craikef250742015-02-25 17:16:16 -0800237 fill.filter.matrix.vector);
Chris Craik117bdbc2015-02-05 10:12:38 -0800238 }
239
Chris Craik0519c8102015-02-11 13:17:06 -0800240 // Round rect clipping uniforms
241 if (glop.roundRectClipState) {
242 // TODO: avoid query, and cache values (or RRCS ptr) in program
243 const RoundRectClipState* state = glop.roundRectClipState;
244 const Rect& innerRect = state->innerRect;
245 glUniform4f(fill.program->getUniform("roundRectInnerRectLTRB"),
246 innerRect.left, innerRect.top,
247 innerRect.right, innerRect.bottom);
248 glUniformMatrix4fv(fill.program->getUniform("roundRectInvTransform"),
249 1, GL_FALSE, &state->matrix.data[0]);
250
251 // add half pixel to round out integer rect space to cover pixel centers
252 float roundedOutRadius = state->radius + 0.5f;
253 glUniform1f(fill.program->getUniform("roundRectRadius"),
254 roundedOutRadius);
255 }
Chris Craikef250742015-02-25 17:16:16 -0800256
John Reck975591a2016-01-22 16:28:07 -0800257 GL_CHECKPOINT(MODERATE);
John Reck9372ac32016-01-19 11:46:52 -0800258
Chris Craik117bdbc2015-02-05 10:12:38 -0800259 // --------------------------------
Chris Craik6c15ffa2015-02-02 13:50:55 -0800260 // ---------- Mesh setup ----------
Chris Craik117bdbc2015-02-05 10:12:38 -0800261 // --------------------------------
262 // vertices
Chris Craik1b7db402016-02-24 18:25:32 -0800263 meshState().bindMeshBuffer(vertices.bufferObject);
264 meshState().bindPositionVertexPointer(vertices.position, vertices.stride);
Chris Craik117bdbc2015-02-05 10:12:38 -0800265
266 // indices
Chris Craik1b7db402016-02-24 18:25:32 -0800267 meshState().bindIndicesBuffer(indices.bufferObject);
Chris Craik117bdbc2015-02-05 10:12:38 -0800268
Chris Craik138c21f2016-04-28 16:59:42 -0700269 // texture
270 if (fill.texture.texture != nullptr) {
Chris Craik26bf3422015-02-26 16:28:17 -0800271 const Glop::Fill::TextureData& texture = fill.texture;
272 // texture always takes slot 0, shader samplers increment from there
Chris Craik0519c8102015-02-11 13:17:06 -0800273 mCaches->textureState().activateTexture(0);
274
Chris Craik1b7db402016-02-24 18:25:32 -0800275 mCaches->textureState().bindTexture(texture.target, texture.texture->id());
Chris Craik26bf3422015-02-26 16:28:17 -0800276 if (texture.clamp != GL_INVALID_ENUM) {
Chris Craik1b7db402016-02-24 18:25:32 -0800277 texture.texture->setWrap(texture.clamp, false, false, texture.target);
Chris Craik30036092015-02-12 10:41:39 -0800278 }
Chris Craik26bf3422015-02-26 16:28:17 -0800279 if (texture.filter != GL_INVALID_ENUM) {
Chris Craik1b7db402016-02-24 18:25:32 -0800280 texture.texture->setFilter(texture.filter, false, false, texture.target);
Chris Craik30036092015-02-12 10:41:39 -0800281 }
Chris Craik0519c8102015-02-11 13:17:06 -0800282
Chris Craik26bf3422015-02-26 16:28:17 -0800283 if (texture.textureTransform) {
284 glUniformMatrix4fv(fill.program->getUniform("mainTextureTransform"), 1,
285 GL_FALSE, &texture.textureTransform->data[0]);
286 }
Chris Craik138c21f2016-04-28 16:59:42 -0700287 }
288
289 // vertex attributes (tex coord, color, alpha)
290 if (vertices.attribFlags & VertexAttribFlags::TextureCoord) {
291 meshState().enableTexCoordsVertexArray();
292 meshState().bindTexCoordsVertexPointer(vertices.texCoord, vertices.stride);
Chris Craik6c15ffa2015-02-02 13:50:55 -0800293 } else {
294 meshState().disableTexCoordsVertexArray();
295 }
Chris Craikef250742015-02-25 17:16:16 -0800296 int colorLocation = -1;
Chris Craik53e51e42015-06-01 10:35:35 -0700297 if (vertices.attribFlags & VertexAttribFlags::Color) {
Chris Craikef250742015-02-25 17:16:16 -0800298 colorLocation = fill.program->getAttrib("colors");
299 glEnableVertexAttribArray(colorLocation);
300 glVertexAttribPointer(colorLocation, 4, GL_FLOAT, GL_FALSE, vertices.stride, vertices.color);
Chris Craik6c15ffa2015-02-02 13:50:55 -0800301 }
Chris Craikef250742015-02-25 17:16:16 -0800302 int alphaLocation = -1;
Chris Craik53e51e42015-06-01 10:35:35 -0700303 if (vertices.attribFlags & VertexAttribFlags::Alpha) {
Chris Craikef250742015-02-25 17:16:16 -0800304 // NOTE: alpha vertex position is computed assuming no VBO
305 const void* alphaCoords = ((const GLbyte*) vertices.position) + kVertexAlphaOffset;
306 alphaLocation = fill.program->getAttrib("vtxAlpha");
307 glEnableVertexAttribArray(alphaLocation);
308 glVertexAttribPointer(alphaLocation, 1, GL_FLOAT, GL_FALSE, vertices.stride, alphaCoords);
Chris Craik6c15ffa2015-02-02 13:50:55 -0800309 }
Chris Craik922d3a72015-02-13 17:47:21 -0800310 // Shader uniforms
Chris Craikef250742015-02-25 17:16:16 -0800311 SkiaShader::apply(*mCaches, fill.skiaShaderData);
Chris Craik922d3a72015-02-13 17:47:21 -0800312
John Reck975591a2016-01-22 16:28:07 -0800313 GL_CHECKPOINT(MODERATE);
Dohyun Leec5a3efd2016-01-21 13:46:21 +0900314 Texture* texture = (fill.skiaShaderData.skiaShaderType & kBitmap_SkiaShaderType) ?
315 fill.skiaShaderData.bitmapData.bitmapTexture : nullptr;
316 const AutoTexture autoCleanup(texture);
John Reck9372ac32016-01-19 11:46:52 -0800317
Chris Craik117bdbc2015-02-05 10:12:38 -0800318 // ------------------------------------
Chris Craik6c15ffa2015-02-02 13:50:55 -0800319 // ---------- GL state setup ----------
Chris Craik117bdbc2015-02-05 10:12:38 -0800320 // ------------------------------------
Chris Craik03188872015-02-02 18:39:33 -0800321 blend().setFactors(glop.blend.src, glop.blend.dst);
Chris Craik6c15ffa2015-02-02 13:50:55 -0800322
John Reck975591a2016-01-22 16:28:07 -0800323 GL_CHECKPOINT(MODERATE);
John Reck9372ac32016-01-19 11:46:52 -0800324
Chris Craik117bdbc2015-02-05 10:12:38 -0800325 // ------------------------------------
Chris Craik2ab95d72015-02-06 15:25:51 -0800326 // ---------- Actual drawing ----------
Chris Craik117bdbc2015-02-05 10:12:38 -0800327 // ------------------------------------
Chris Craikef250742015-02-25 17:16:16 -0800328 if (indices.bufferObject == meshState().getQuadListIBO()) {
Chris Craik2ab95d72015-02-06 15:25:51 -0800329 // Since the indexed quad list is of limited length, we loop over
330 // the glDrawXXX method while updating the vertex pointer
Chris Craik0519c8102015-02-11 13:17:06 -0800331 GLsizei elementsCount = mesh.elementCount;
Chris Craikef250742015-02-25 17:16:16 -0800332 const GLbyte* vertexData = static_cast<const GLbyte*>(vertices.position);
Chris Craik2ab95d72015-02-06 15:25:51 -0800333 while (elementsCount > 0) {
Chris Craik9db58c02015-08-19 15:19:18 -0700334 GLsizei drawCount = std::min(elementsCount, (GLsizei) kMaxNumberOfQuads * 6);
Chris Craik1b7db402016-02-24 18:25:32 -0800335 meshState().bindPositionVertexPointer(vertexData, vertices.stride);
Chris Craik53e51e42015-06-01 10:35:35 -0700336 if (vertices.attribFlags & VertexAttribFlags::TextureCoord) {
Chris Craik1b7db402016-02-24 18:25:32 -0800337 meshState().bindTexCoordsVertexPointer(
Chris Craikef250742015-02-25 17:16:16 -0800338 vertexData + kMeshTextureOffset, vertices.stride);
Chris Craikf27133d2015-02-19 09:51:53 -0800339 }
340
Chris Craik2ab95d72015-02-06 15:25:51 -0800341 glDrawElements(mesh.primitiveMode, drawCount, GL_UNSIGNED_SHORT, nullptr);
342 elementsCount -= drawCount;
Chris Craikef250742015-02-25 17:16:16 -0800343 vertexData += (drawCount / 6) * 4 * vertices.stride;
Chris Craik2ab95d72015-02-06 15:25:51 -0800344 }
Chris Craikef250742015-02-25 17:16:16 -0800345 } else if (indices.bufferObject || indices.indices) {
346 glDrawElements(mesh.primitiveMode, mesh.elementCount, GL_UNSIGNED_SHORT, indices.indices);
Chris Craik6c15ffa2015-02-02 13:50:55 -0800347 } else {
Chris Craik0519c8102015-02-11 13:17:06 -0800348 glDrawArrays(mesh.primitiveMode, 0, mesh.elementCount);
Chris Craik6c15ffa2015-02-02 13:50:55 -0800349 }
Chris Craik117bdbc2015-02-05 10:12:38 -0800350
John Reck975591a2016-01-22 16:28:07 -0800351 GL_CHECKPOINT(MODERATE);
John Reck9372ac32016-01-19 11:46:52 -0800352
Chris Craik2ab95d72015-02-06 15:25:51 -0800353 // -----------------------------------
354 // ---------- Mesh teardown ----------
355 // -----------------------------------
Chris Craik53e51e42015-06-01 10:35:35 -0700356 if (vertices.attribFlags & VertexAttribFlags::Alpha) {
Chris Craikef250742015-02-25 17:16:16 -0800357 glDisableVertexAttribArray(alphaLocation);
358 }
Chris Craik53e51e42015-06-01 10:35:35 -0700359 if (vertices.attribFlags & VertexAttribFlags::Color) {
Chris Craikef250742015-02-25 17:16:16 -0800360 glDisableVertexAttribArray(colorLocation);
Chris Craik117bdbc2015-02-05 10:12:38 -0800361 }
John Reck9372ac32016-01-19 11:46:52 -0800362
John Reck975591a2016-01-22 16:28:07 -0800363 GL_CHECKPOINT(MODERATE);
Chris Craik117bdbc2015-02-05 10:12:38 -0800364}
365
366void RenderState::dump() {
367 blend().dump();
368 meshState().dump();
369 scissor().dump();
370 stencil().dump();
Chris Craik6c15ffa2015-02-02 13:50:55 -0800371}
372
John Reck3b202512014-06-23 13:13:08 -0700373} /* namespace uirenderer */
374} /* namespace android */