blob: 84b696596d40325a5933e69fc8969b7415afcf38 [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 */
Chris Craik96a5c4c2015-01-27 15:46:35 -080016#include "renderstate/RenderState.h"
John Reck3b202512014-06-23 13:13:08 -070017
John Reck443a7142014-09-04 17:40:05 -070018#include "renderthread/CanvasContext.h"
John Reck0e89e2b2014-10-31 14:49:06 -070019#include "renderthread/EglManager.h"
Chris Craik117bdbc2015-02-05 10:12:38 -080020#include "utils/GLUtils.h"
John Reck443a7142014-09-04 17:40:05 -070021
John Reck3b202512014-06-23 13:13:08 -070022namespace android {
23namespace uirenderer {
24
John Reck0e89e2b2014-10-31 14:49:06 -070025RenderState::RenderState(renderthread::RenderThread& thread)
26 : mRenderThread(thread)
John Reck3b202512014-06-23 13:13:08 -070027 , mViewportWidth(0)
28 , mViewportHeight(0)
29 , mFramebuffer(0) {
John Reck0e89e2b2014-10-31 14:49:06 -070030 mThreadId = pthread_self();
John Reck3b202512014-06-23 13:13:08 -070031}
32
33RenderState::~RenderState() {
Chris Craik44eb2c02015-01-29 09:45:09 -080034 LOG_ALWAYS_FATAL_IF(mBlend || mMeshState || mScissor || mStencil,
Chris Craik96a5c4c2015-01-27 15:46:35 -080035 "State object lifecycle not managed correctly");
John Reck3b202512014-06-23 13:13:08 -070036}
37
38void RenderState::onGLContextCreated() {
Chris Craik44eb2c02015-01-29 09:45:09 -080039 LOG_ALWAYS_FATAL_IF(mBlend || mMeshState || mScissor || mStencil,
Chris Craik96a5c4c2015-01-27 15:46:35 -080040 "State object lifecycle not managed correctly");
Chris Craik44eb2c02015-01-29 09:45:09 -080041 mBlend = new Blend();
Chris Craik96a5c4c2015-01-27 15:46:35 -080042 mMeshState = new MeshState();
43 mScissor = new Scissor();
44 mStencil = new Stencil();
Chris Craik65fe5ee2015-01-26 18:06:29 -080045
Chris Craik96a5c4c2015-01-27 15:46:35 -080046 // This is delayed because the first access of Caches makes GL calls
Chris Craikff5c8e82015-01-30 09:46:18 -080047 if (!mCaches) {
48 mCaches = &Caches::createInstance(*this);
49 }
Chris Craik96a5c4c2015-01-27 15:46:35 -080050 mCaches->init();
51 mCaches->textureCache.setAssetAtlas(&mAssetAtlas);
John Reck3b202512014-06-23 13:13:08 -070052}
53
John Reck49bc4ac2015-01-29 12:53:38 -080054static void layerLostGlContext(Layer* layer) {
55 layer->onGlContextLost();
56}
57
Chris Craik1d477422014-08-26 17:30:15 -070058void RenderState::onGLContextDestroyed() {
Chris Craik21029ef2014-09-12 09:29:10 -070059/*
Chris Craikbfd1cd62014-09-10 13:04:31 -070060 size_t size = mActiveLayers.size();
61 if (CC_UNLIKELY(size != 0)) {
62 ALOGE("Crashing, have %d contexts and %d layers at context destruction. isempty %d",
63 mRegisteredContexts.size(), size, mActiveLayers.empty());
John Reck17035b02014-09-03 07:39:53 -070064 mCaches->dumpMemoryUsage();
John Reck443a7142014-09-04 17:40:05 -070065 for (std::set<renderthread::CanvasContext*>::iterator cit = mRegisteredContexts.begin();
66 cit != mRegisteredContexts.end(); cit++) {
67 renderthread::CanvasContext* context = *cit;
Chris Craikbfd1cd62014-09-10 13:04:31 -070068 ALOGE("Context: %p (root = %p)", context, context->mRootRenderNode.get());
69 ALOGE(" Prefeteched layers: %zu", context->mPrefetechedLayers.size());
John Reck443a7142014-09-04 17:40:05 -070070 for (std::set<RenderNode*>::iterator pit = context->mPrefetechedLayers.begin();
71 pit != context->mPrefetechedLayers.end(); pit++) {
72 (*pit)->debugDumpLayers(" ");
73 }
74 context->mRootRenderNode->debugDumpLayers(" ");
75 }
Chris Craik599e2542014-09-05 15:17:11 -070076
Chris Craikbfd1cd62014-09-10 13:04:31 -070077
78 if (mActiveLayers.begin() == mActiveLayers.end()) {
79 ALOGE("set has become empty. wat.");
80 }
Chris Craik599e2542014-09-05 15:17:11 -070081 for (std::set<const Layer*>::iterator lit = mActiveLayers.begin();
82 lit != mActiveLayers.end(); lit++) {
83 const Layer* layer = *(lit);
Chris Craikbfd1cd62014-09-10 13:04:31 -070084 ALOGE("Layer %p, state %d, texlayer %d, fbo %d, buildlayered %d",
85 layer, layer->state, layer->isTextureLayer(), layer->getFbo(), layer->wasBuildLayered);
Chris Craik599e2542014-09-05 15:17:11 -070086 }
Chris Craikbfd1cd62014-09-10 13:04:31 -070087 LOG_ALWAYS_FATAL("%d layers have survived gl context destruction", size);
John Reck17035b02014-09-03 07:39:53 -070088 }
Chris Craik21029ef2014-09-12 09:29:10 -070089*/
John Reck49bc4ac2015-01-29 12:53:38 -080090
Chris Craik96a5c4c2015-01-27 15:46:35 -080091 // TODO: reset all cached state in state objects
John Reck49bc4ac2015-01-29 12:53:38 -080092 std::for_each(mActiveLayers.begin(), mActiveLayers.end(), layerLostGlContext);
John Reckebd52612014-12-10 16:47:36 -080093 mAssetAtlas.terminate();
Chris Craik96a5c4c2015-01-27 15:46:35 -080094
Chris Craik44eb2c02015-01-29 09:45:09 -080095 mCaches->terminate();
96
97 delete mBlend;
98 mBlend = nullptr;
Chris Craik96a5c4c2015-01-27 15:46:35 -080099 delete mMeshState;
100 mMeshState = nullptr;
101 delete mScissor;
102 mScissor = nullptr;
103 delete mStencil;
104 mStencil = nullptr;
Chris Craik1d477422014-08-26 17:30:15 -0700105}
106
John Reck3b202512014-06-23 13:13:08 -0700107void RenderState::setViewport(GLsizei width, GLsizei height) {
108 mViewportWidth = width;
109 mViewportHeight = height;
110 glViewport(0, 0, mViewportWidth, mViewportHeight);
111}
112
113
114void RenderState::getViewport(GLsizei* outWidth, GLsizei* outHeight) {
115 *outWidth = mViewportWidth;
116 *outHeight = mViewportHeight;
117}
118
119void RenderState::bindFramebuffer(GLuint fbo) {
120 if (mFramebuffer != fbo) {
121 mFramebuffer = fbo;
122 glBindFramebuffer(GL_FRAMEBUFFER, mFramebuffer);
123 }
124}
125
126void RenderState::invokeFunctor(Functor* functor, DrawGlInfo::Mode mode, DrawGlInfo* info) {
John Reck95cd24b2015-08-04 11:17:39 -0700127 if (mode == DrawGlInfo::kModeProcessNoContext) {
128 // If there's no context we don't need to interrupt as there's
129 // no gl state to save/restore
130 (*functor)(mode, info);
131 } else {
132 interruptForFunctorInvoke();
133 (*functor)(mode, info);
134 resumeFromFunctorInvoke();
135 }
John Reck3b202512014-06-23 13:13:08 -0700136}
137
138void RenderState::interruptForFunctorInvoke() {
Chris Craik6c15ffa2015-02-02 13:50:55 -0800139 mCaches->setProgram(nullptr);
Chris Craik44eb2c02015-01-29 09:45:09 -0800140 mCaches->textureState().resetActiveTexture();
Chris Craik96a5c4c2015-01-27 15:46:35 -0800141 meshState().unbindMeshBuffer();
142 meshState().unbindIndicesBuffer();
143 meshState().resetVertexPointers();
144 meshState().disableTexCoordsVertexArray();
John Reck3b202512014-06-23 13:13:08 -0700145 debugOverdraw(false, false);
146}
147
148void RenderState::resumeFromFunctorInvoke() {
149 glViewport(0, 0, mViewportWidth, mViewportHeight);
150 glBindFramebuffer(GL_FRAMEBUFFER, mFramebuffer);
151 debugOverdraw(false, false);
152
153 glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
154
Chris Craik65fe5ee2015-01-26 18:06:29 -0800155 scissor().invalidate();
Chris Craik44eb2c02015-01-29 09:45:09 -0800156 blend().invalidate();
John Reck3b202512014-06-23 13:13:08 -0700157
Chris Craik44eb2c02015-01-29 09:45:09 -0800158 mCaches->textureState().activateTexture(0);
159 mCaches->textureState().resetBoundTextures();
John Reck3b202512014-06-23 13:13:08 -0700160}
161
162void RenderState::debugOverdraw(bool enable, bool clear) {
Chris Craik2507c342015-05-04 14:36:49 -0700163 if (Properties::debugOverdraw && mFramebuffer == 0) {
John Reck3b202512014-06-23 13:13:08 -0700164 if (clear) {
Chris Craik65fe5ee2015-01-26 18:06:29 -0800165 scissor().setEnabled(false);
Chris Craik96a5c4c2015-01-27 15:46:35 -0800166 stencil().clear();
John Reck3b202512014-06-23 13:13:08 -0700167 }
168 if (enable) {
Chris Craik96a5c4c2015-01-27 15:46:35 -0800169 stencil().enableDebugWrite();
John Reck3b202512014-06-23 13:13:08 -0700170 } else {
Chris Craik96a5c4c2015-01-27 15:46:35 -0800171 stencil().disable();
John Reck3b202512014-06-23 13:13:08 -0700172 }
173 }
174}
175
John Reck0e89e2b2014-10-31 14:49:06 -0700176void RenderState::requireGLContext() {
177 assertOnGLThread();
John Reckd7db4d72015-05-20 07:18:55 -0700178 LOG_ALWAYS_FATAL_IF(!mRenderThread.eglManager().hasEglContext(),
179 "No GL context!");
John Reck0e89e2b2014-10-31 14:49:06 -0700180}
181
182void RenderState::assertOnGLThread() {
183 pthread_t curr = pthread_self();
184 LOG_ALWAYS_FATAL_IF(!pthread_equal(mThreadId, curr), "Wrong thread!");
185}
186
John Reck0e89e2b2014-10-31 14:49:06 -0700187class DecStrongTask : public renderthread::RenderTask {
188public:
189 DecStrongTask(VirtualLightRefBase* object) : mObject(object) {}
190
Chris Craikd41c4d82015-01-05 15:51:13 -0800191 virtual void run() override {
192 mObject->decStrong(nullptr);
193 mObject = nullptr;
John Reck0e89e2b2014-10-31 14:49:06 -0700194 delete this;
195 }
196
197private:
198 VirtualLightRefBase* mObject;
199};
200
201void RenderState::postDecStrong(VirtualLightRefBase* object) {
202 mRenderThread.queue(new DecStrongTask(object));
203}
204
Chris Craik6c15ffa2015-02-02 13:50:55 -0800205///////////////////////////////////////////////////////////////////////////////
206// Render
207///////////////////////////////////////////////////////////////////////////////
208
Chris Craik6c15ffa2015-02-02 13:50:55 -0800209void RenderState::render(const Glop& glop) {
210 const Glop::Mesh& mesh = glop.mesh;
Chris Craikef250742015-02-25 17:16:16 -0800211 const Glop::Mesh::Vertices& vertices = mesh.vertices;
212 const Glop::Mesh::Indices& indices = mesh.indices;
Chris Craik0519c812015-02-11 13:17:06 -0800213 const Glop::Fill& fill = glop.fill;
Chris Craik6c15ffa2015-02-02 13:50:55 -0800214
Chris Craik0519c812015-02-11 13:17:06 -0800215 // ---------------------------------------------
216 // ---------- Program + uniform setup ----------
217 // ---------------------------------------------
218 mCaches->setProgram(fill.program);
Chris Craik6c15ffa2015-02-02 13:50:55 -0800219
Chris Craik0519c812015-02-11 13:17:06 -0800220 if (fill.colorEnabled) {
221 fill.program->setColor(fill.color);
222 }
Chris Craik6c15ffa2015-02-02 13:50:55 -0800223
Chris Craik0519c812015-02-11 13:17:06 -0800224 fill.program->set(glop.transform.ortho,
Chris Craik6c15ffa2015-02-02 13:50:55 -0800225 glop.transform.modelView,
Chris Craik53e51e42015-06-01 10:35:35 -0700226 glop.transform.meshTransform(),
227 glop.transform.transformFlags & TransformFlags::OffsetByFudgeFactor);
Chris Craik6c15ffa2015-02-02 13:50:55 -0800228
Chris Craik0519c812015-02-11 13:17:06 -0800229 // Color filter uniforms
Chris Craikef250742015-02-25 17:16:16 -0800230 if (fill.filterMode == ProgramDescription::kColorBlend) {
231 const FloatColor& color = fill.filter.color;
Chris Craik117bdbc2015-02-05 10:12:38 -0800232 glUniform4f(mCaches->program().getUniform("colorBlend"),
233 color.r, color.g, color.b, color.a);
Chris Craikef250742015-02-25 17:16:16 -0800234 } else if (fill.filterMode == ProgramDescription::kColorMatrix) {
Chris Craik117bdbc2015-02-05 10:12:38 -0800235 glUniformMatrix4fv(mCaches->program().getUniform("colorMatrix"), 1, GL_FALSE,
Chris Craikef250742015-02-25 17:16:16 -0800236 fill.filter.matrix.matrix);
Chris Craik117bdbc2015-02-05 10:12:38 -0800237 glUniform4fv(mCaches->program().getUniform("colorMatrixVector"), 1,
Chris Craikef250742015-02-25 17:16:16 -0800238 fill.filter.matrix.vector);
Chris Craik117bdbc2015-02-05 10:12:38 -0800239 }
240
Chris Craik0519c812015-02-11 13:17:06 -0800241 // Round rect clipping uniforms
242 if (glop.roundRectClipState) {
243 // TODO: avoid query, and cache values (or RRCS ptr) in program
244 const RoundRectClipState* state = glop.roundRectClipState;
245 const Rect& innerRect = state->innerRect;
246 glUniform4f(fill.program->getUniform("roundRectInnerRectLTRB"),
247 innerRect.left, innerRect.top,
248 innerRect.right, innerRect.bottom);
249 glUniformMatrix4fv(fill.program->getUniform("roundRectInvTransform"),
250 1, GL_FALSE, &state->matrix.data[0]);
251
252 // add half pixel to round out integer rect space to cover pixel centers
253 float roundedOutRadius = state->radius + 0.5f;
254 glUniform1f(fill.program->getUniform("roundRectRadius"),
255 roundedOutRadius);
256 }
Chris Craikef250742015-02-25 17:16:16 -0800257
Chris Craik117bdbc2015-02-05 10:12:38 -0800258 // --------------------------------
Chris Craik6c15ffa2015-02-02 13:50:55 -0800259 // ---------- Mesh setup ----------
Chris Craik117bdbc2015-02-05 10:12:38 -0800260 // --------------------------------
261 // vertices
Chris Craikef250742015-02-25 17:16:16 -0800262 const bool force = meshState().bindMeshBufferInternal(vertices.bufferObject)
263 || (vertices.position != nullptr);
264 meshState().bindPositionVertexPointer(force, vertices.position, vertices.stride);
Chris Craik117bdbc2015-02-05 10:12:38 -0800265
266 // indices
Chris Craikef250742015-02-25 17:16:16 -0800267 meshState().bindIndicesBufferInternal(indices.bufferObject);
Chris Craik117bdbc2015-02-05 10:12:38 -0800268
Chris Craik53e51e42015-06-01 10:35:35 -0700269 if (vertices.attribFlags & VertexAttribFlags::TextureCoord) {
Chris Craik26bf3422015-02-26 16:28:17 -0800270 const Glop::Fill::TextureData& texture = fill.texture;
271 // texture always takes slot 0, shader samplers increment from there
Chris Craik0519c812015-02-11 13:17:06 -0800272 mCaches->textureState().activateTexture(0);
273
Chris Craik26bf3422015-02-26 16:28:17 -0800274 if (texture.clamp != GL_INVALID_ENUM) {
Chris Craik5f1356c2015-05-27 11:06:21 -0700275 texture.texture->setWrap(texture.clamp, true, false, texture.target);
Chris Craik30036092015-02-12 10:41:39 -0800276 }
Chris Craik26bf3422015-02-26 16:28:17 -0800277 if (texture.filter != GL_INVALID_ENUM) {
Chris Craik5f1356c2015-05-27 11:06:21 -0700278 texture.texture->setFilter(texture.filter, true, false, texture.target);
Chris Craik30036092015-02-12 10:41:39 -0800279 }
Chris Craik0519c812015-02-11 13:17:06 -0800280
Chris Craik26bf3422015-02-26 16:28:17 -0800281 mCaches->textureState().bindTexture(texture.target, texture.texture->id);
Chris Craik0519c812015-02-11 13:17:06 -0800282 meshState().enableTexCoordsVertexArray();
Chris Craikef250742015-02-25 17:16:16 -0800283 meshState().bindTexCoordsVertexPointer(force, vertices.texCoord, vertices.stride);
Chris Craik26bf3422015-02-26 16:28:17 -0800284
285 if (texture.textureTransform) {
286 glUniformMatrix4fv(fill.program->getUniform("mainTextureTransform"), 1,
287 GL_FALSE, &texture.textureTransform->data[0]);
288 }
Chris Craik6c15ffa2015-02-02 13:50:55 -0800289 } else {
290 meshState().disableTexCoordsVertexArray();
291 }
Chris Craikef250742015-02-25 17:16:16 -0800292 int colorLocation = -1;
Chris Craik53e51e42015-06-01 10:35:35 -0700293 if (vertices.attribFlags & VertexAttribFlags::Color) {
Chris Craikef250742015-02-25 17:16:16 -0800294 colorLocation = fill.program->getAttrib("colors");
295 glEnableVertexAttribArray(colorLocation);
296 glVertexAttribPointer(colorLocation, 4, GL_FLOAT, GL_FALSE, vertices.stride, vertices.color);
Chris Craik6c15ffa2015-02-02 13:50:55 -0800297 }
Chris Craikef250742015-02-25 17:16:16 -0800298 int alphaLocation = -1;
Chris Craik53e51e42015-06-01 10:35:35 -0700299 if (vertices.attribFlags & VertexAttribFlags::Alpha) {
Chris Craikef250742015-02-25 17:16:16 -0800300 // NOTE: alpha vertex position is computed assuming no VBO
301 const void* alphaCoords = ((const GLbyte*) vertices.position) + kVertexAlphaOffset;
302 alphaLocation = fill.program->getAttrib("vtxAlpha");
303 glEnableVertexAttribArray(alphaLocation);
304 glVertexAttribPointer(alphaLocation, 1, GL_FLOAT, GL_FALSE, vertices.stride, alphaCoords);
Chris Craik6c15ffa2015-02-02 13:50:55 -0800305 }
Chris Craik922d3a72015-02-13 17:47:21 -0800306 // Shader uniforms
Chris Craikef250742015-02-25 17:16:16 -0800307 SkiaShader::apply(*mCaches, fill.skiaShaderData);
Chris Craik922d3a72015-02-13 17:47:21 -0800308
Dohyun Leec5a3efd2016-01-21 13:46:21 +0900309 Texture* texture = (fill.skiaShaderData.skiaShaderType & kBitmap_SkiaShaderType) ?
310 fill.skiaShaderData.bitmapData.bitmapTexture : nullptr;
311 const AutoTexture autoCleanup(texture);
312
Chris Craik117bdbc2015-02-05 10:12:38 -0800313 // ------------------------------------
Chris Craik6c15ffa2015-02-02 13:50:55 -0800314 // ---------- GL state setup ----------
Chris Craik117bdbc2015-02-05 10:12:38 -0800315 // ------------------------------------
Chris Craik03188872015-02-02 18:39:33 -0800316 blend().setFactors(glop.blend.src, glop.blend.dst);
Chris Craik6c15ffa2015-02-02 13:50:55 -0800317
Chris Craik117bdbc2015-02-05 10:12:38 -0800318 // ------------------------------------
Chris Craik2ab95d72015-02-06 15:25:51 -0800319 // ---------- Actual drawing ----------
Chris Craik117bdbc2015-02-05 10:12:38 -0800320 // ------------------------------------
Chris Craikef250742015-02-25 17:16:16 -0800321 if (indices.bufferObject == meshState().getQuadListIBO()) {
Chris Craik2ab95d72015-02-06 15:25:51 -0800322 // Since the indexed quad list is of limited length, we loop over
323 // the glDrawXXX method while updating the vertex pointer
Chris Craik0519c812015-02-11 13:17:06 -0800324 GLsizei elementsCount = mesh.elementCount;
Chris Craikef250742015-02-25 17:16:16 -0800325 const GLbyte* vertexData = static_cast<const GLbyte*>(vertices.position);
Chris Craik2ab95d72015-02-06 15:25:51 -0800326 while (elementsCount > 0) {
327 GLsizei drawCount = MathUtils::min(elementsCount, (GLsizei) kMaxNumberOfQuads * 6);
328
Chris Craikf27133d2015-02-19 09:51:53 -0800329 // rebind pointers without forcing, since initial bind handled above
Chris Craikef250742015-02-25 17:16:16 -0800330 meshState().bindPositionVertexPointer(false, vertexData, vertices.stride);
Chris Craik53e51e42015-06-01 10:35:35 -0700331 if (vertices.attribFlags & VertexAttribFlags::TextureCoord) {
Chris Craikf27133d2015-02-19 09:51:53 -0800332 meshState().bindTexCoordsVertexPointer(false,
Chris Craikef250742015-02-25 17:16:16 -0800333 vertexData + kMeshTextureOffset, vertices.stride);
Chris Craikf27133d2015-02-19 09:51:53 -0800334 }
335
Chris Craik2ab95d72015-02-06 15:25:51 -0800336 glDrawElements(mesh.primitiveMode, drawCount, GL_UNSIGNED_SHORT, nullptr);
337 elementsCount -= drawCount;
Chris Craikef250742015-02-25 17:16:16 -0800338 vertexData += (drawCount / 6) * 4 * vertices.stride;
Chris Craik2ab95d72015-02-06 15:25:51 -0800339 }
Chris Craikef250742015-02-25 17:16:16 -0800340 } else if (indices.bufferObject || indices.indices) {
341 glDrawElements(mesh.primitiveMode, mesh.elementCount, GL_UNSIGNED_SHORT, indices.indices);
Chris Craik6c15ffa2015-02-02 13:50:55 -0800342 } else {
Chris Craik0519c812015-02-11 13:17:06 -0800343 glDrawArrays(mesh.primitiveMode, 0, mesh.elementCount);
Chris Craik6c15ffa2015-02-02 13:50:55 -0800344 }
Chris Craik117bdbc2015-02-05 10:12:38 -0800345
Chris Craik2ab95d72015-02-06 15:25:51 -0800346 // -----------------------------------
347 // ---------- Mesh teardown ----------
348 // -----------------------------------
Chris Craik53e51e42015-06-01 10:35:35 -0700349 if (vertices.attribFlags & VertexAttribFlags::Alpha) {
Chris Craikef250742015-02-25 17:16:16 -0800350 glDisableVertexAttribArray(alphaLocation);
351 }
Chris Craik53e51e42015-06-01 10:35:35 -0700352 if (vertices.attribFlags & VertexAttribFlags::Color) {
Chris Craikef250742015-02-25 17:16:16 -0800353 glDisableVertexAttribArray(colorLocation);
Chris Craik117bdbc2015-02-05 10:12:38 -0800354 }
355}
356
357void RenderState::dump() {
358 blend().dump();
359 meshState().dump();
360 scissor().dump();
361 stencil().dump();
Chris Craik6c15ffa2015-02-02 13:50:55 -0800362}
363
John Reck3b202512014-06-23 13:13:08 -0700364} /* namespace uirenderer */
365} /* namespace android */