Chet Haase | d15ebf2 | 2012-09-05 11:40:29 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 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 | */ |
| 16 | |
| 17 | #define LOG_TAG "OpenGLRenderer" |
| 18 | |
Chris Craik | 65fe5ee | 2015-01-26 18:06:29 -0800 | [diff] [blame] | 19 | #include "Layer.h" |
Chet Haase | d15ebf2 | 2012-09-05 11:40:29 -0700 | [diff] [blame] | 20 | |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 21 | #include "Caches.h" |
Romain Guy | 96885eb | 2013-03-26 15:05:58 -0700 | [diff] [blame] | 22 | #include "DeferredDisplayList.h" |
Chet Haase | 98d3a64 | 2012-09-26 10:27:40 -0700 | [diff] [blame] | 23 | #include "LayerRenderer.h" |
Chet Haase | d15ebf2 | 2012-09-05 11:40:29 -0700 | [diff] [blame] | 24 | #include "OpenGLRenderer.h" |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 25 | #include "RenderNode.h" |
Chris Craik | 65fe5ee | 2015-01-26 18:06:29 -0800 | [diff] [blame] | 26 | #include "renderstate/RenderState.h" |
Chris Craik | 70850ea | 2014-11-18 10:49:23 -0800 | [diff] [blame] | 27 | #include "utils/TraceUtils.h" |
| 28 | |
Chris Craik | 65fe5ee | 2015-01-26 18:06:29 -0800 | [diff] [blame] | 29 | #include <utils/Log.h> |
| 30 | |
Chris Craik | 70850ea | 2014-11-18 10:49:23 -0800 | [diff] [blame] | 31 | #define ATRACE_LAYER_WORK(label) \ |
| 32 | ATRACE_FORMAT("%s HW Layer DisplayList %s %ux%u", \ |
| 33 | label, \ |
| 34 | (renderNode.get() != NULL) ? renderNode->getName() : "", \ |
| 35 | getWidth(), getHeight()) |
Chet Haase | d15ebf2 | 2012-09-05 11:40:29 -0700 | [diff] [blame] | 36 | |
| 37 | namespace android { |
| 38 | namespace uirenderer { |
| 39 | |
Chris Craik | e5c6584 | 2015-03-02 17:50:26 -0800 | [diff] [blame] | 40 | Layer::Layer(Type layerType, RenderState& renderState, uint32_t layerWidth, uint32_t layerHeight) |
Chris Craik | bfd1cd6 | 2014-09-10 13:04:31 -0700 | [diff] [blame] | 41 | : state(kState_Uncached) |
| 42 | , caches(Caches::getInstance()) |
John Reck | 3b20251 | 2014-06-23 13:13:08 -0700 | [diff] [blame] | 43 | , renderState(renderState) |
Chris Craik | 8a226d2 | 2014-09-08 16:40:21 -0700 | [diff] [blame] | 44 | , texture(caches) |
| 45 | , type(layerType) { |
John Reck | 0e89e2b | 2014-10-31 14:49:06 -0700 | [diff] [blame] | 46 | // TODO: This is a violation of Android's typical ref counting, but it |
| 47 | // preserves the old inc/dec ref locations. This should be changed... |
Chris Craik | d41c4d8 | 2015-01-05 15:51:13 -0800 | [diff] [blame] | 48 | incStrong(nullptr); |
Chet Haase | 603f6de | 2012-09-14 15:31:25 -0700 | [diff] [blame] | 49 | renderTarget = GL_TEXTURE_2D; |
| 50 | texture.width = layerWidth; |
| 51 | texture.height = layerHeight; |
John Reck | 0e89e2b | 2014-10-31 14:49:06 -0700 | [diff] [blame] | 52 | renderState.registerLayer(this); |
Chet Haase | 603f6de | 2012-09-14 15:31:25 -0700 | [diff] [blame] | 53 | } |
| 54 | |
Chet Haase | d15ebf2 | 2012-09-05 11:40:29 -0700 | [diff] [blame] | 55 | Layer::~Layer() { |
John Reck | 0e89e2b | 2014-10-31 14:49:06 -0700 | [diff] [blame] | 56 | renderState.unregisterLayer(this); |
Derek Sollenberger | 76d3a1b | 2013-12-10 12:28:58 -0500 | [diff] [blame] | 57 | SkSafeUnref(colorFilter); |
John Reck | 5799801 | 2015-01-29 10:17:57 -0800 | [diff] [blame] | 58 | |
| 59 | if (stencil || fbo || texture.id) { |
| 60 | renderState.requireGLContext(); |
| 61 | removeFbo(); |
| 62 | deleteTexture(); |
| 63 | } |
Romain Guy | 96885eb | 2013-03-26 15:05:58 -0700 | [diff] [blame] | 64 | |
| 65 | delete[] mesh; |
Romain Guy | 97dc917 | 2012-09-23 17:46:45 -0700 | [diff] [blame] | 66 | } |
| 67 | |
John Reck | 5799801 | 2015-01-29 10:17:57 -0800 | [diff] [blame] | 68 | void Layer::onGlContextLost() { |
| 69 | removeFbo(); |
| 70 | deleteTexture(); |
| 71 | } |
| 72 | |
Romain Guy | 2055aba | 2013-01-18 16:42:51 -0800 | [diff] [blame] | 73 | uint32_t Layer::computeIdealWidth(uint32_t layerWidth) { |
| 74 | return uint32_t(ceilf(layerWidth / float(LAYER_SIZE)) * LAYER_SIZE); |
| 75 | } |
| 76 | |
| 77 | uint32_t Layer::computeIdealHeight(uint32_t layerHeight) { |
| 78 | return uint32_t(ceilf(layerHeight / float(LAYER_SIZE)) * LAYER_SIZE); |
| 79 | } |
| 80 | |
John Reck | 668f0e3 | 2014-03-26 15:10:40 -0700 | [diff] [blame] | 81 | void Layer::requireRenderer() { |
| 82 | if (!renderer) { |
Chris Craik | 51d6a3d | 2014-12-22 17:16:56 -0800 | [diff] [blame] | 83 | renderer.reset(new LayerRenderer(renderState, this)); |
John Reck | 668f0e3 | 2014-03-26 15:10:40 -0700 | [diff] [blame] | 84 | renderer->initProperties(); |
| 85 | } |
| 86 | } |
| 87 | |
Chris Craik | 69e5adf | 2014-08-14 13:34:01 -0700 | [diff] [blame] | 88 | void Layer::updateLightPosFromRenderer(const OpenGLRenderer& rootRenderer) { |
| 89 | if (renderer && rendererLightPosDirty) { |
| 90 | // re-init renderer's light position, based upon last cached location in window |
| 91 | Vector3 lightPos = rootRenderer.getLightCenter(); |
| 92 | cachedInvTransformInWindow.mapPoint3d(lightPos); |
Alan Viverette | 50210d9 | 2015-05-14 18:05:36 -0700 | [diff] [blame^] | 93 | renderer->initLight(rootRenderer.getLightRadius(), |
| 94 | rootRenderer.getAmbientShadowAlpha(), |
| 95 | rootRenderer.getSpotShadowAlpha()); |
| 96 | renderer->setLightCenter(lightPos); |
Chris Craik | 69e5adf | 2014-08-14 13:34:01 -0700 | [diff] [blame] | 97 | rendererLightPosDirty = false; |
| 98 | } |
| 99 | } |
| 100 | |
Romain Guy | 2055aba | 2013-01-18 16:42:51 -0800 | [diff] [blame] | 101 | bool Layer::resize(const uint32_t width, const uint32_t height) { |
| 102 | uint32_t desiredWidth = computeIdealWidth(width); |
| 103 | uint32_t desiredHeight = computeIdealWidth(height); |
| 104 | |
| 105 | if (desiredWidth <= getWidth() && desiredHeight <= getHeight()) { |
| 106 | return true; |
| 107 | } |
| 108 | |
John Reck | ec4cefc | 2014-07-29 09:49:13 -0700 | [diff] [blame] | 109 | ATRACE_NAME("resizeLayer"); |
| 110 | |
Romain Guy | 8aa195d | 2013-06-04 18:00:09 -0700 | [diff] [blame] | 111 | const uint32_t maxTextureSize = caches.maxTextureSize; |
Romain Guy | ce4a7df | 2013-03-28 11:32:33 -0700 | [diff] [blame] | 112 | if (desiredWidth > maxTextureSize || desiredHeight > maxTextureSize) { |
| 113 | ALOGW("Layer exceeds max. dimensions supported by the GPU (%dx%d, max=%dx%d)", |
| 114 | desiredWidth, desiredHeight, maxTextureSize, maxTextureSize); |
| 115 | return false; |
| 116 | } |
| 117 | |
Romain Guy | 2055aba | 2013-01-18 16:42:51 -0800 | [diff] [blame] | 118 | uint32_t oldWidth = getWidth(); |
| 119 | uint32_t oldHeight = getHeight(); |
| 120 | |
| 121 | setSize(desiredWidth, desiredHeight); |
| 122 | |
| 123 | if (fbo) { |
Chris Craik | 44eb2c0 | 2015-01-29 09:45:09 -0800 | [diff] [blame] | 124 | caches.textureState().activateTexture(0); |
Romain Guy | 2055aba | 2013-01-18 16:42:51 -0800 | [diff] [blame] | 125 | bindTexture(); |
Romain Guy | 0908764 | 2013-04-04 12:27:54 -0700 | [diff] [blame] | 126 | allocateTexture(); |
Romain Guy | 2055aba | 2013-01-18 16:42:51 -0800 | [diff] [blame] | 127 | |
| 128 | if (glGetError() != GL_NO_ERROR) { |
| 129 | setSize(oldWidth, oldHeight); |
| 130 | return false; |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | if (stencil) { |
Romain Guy | 3bbacf2 | 2013-02-06 16:51:04 -0800 | [diff] [blame] | 135 | stencil->bind(); |
| 136 | stencil->resize(desiredWidth, desiredHeight); |
Romain Guy | 2055aba | 2013-01-18 16:42:51 -0800 | [diff] [blame] | 137 | |
| 138 | if (glGetError() != GL_NO_ERROR) { |
| 139 | setSize(oldWidth, oldHeight); |
| 140 | return false; |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | return true; |
| 145 | } |
| 146 | |
Romain Guy | 8ce0030 | 2013-01-15 18:51:42 -0800 | [diff] [blame] | 147 | void Layer::removeFbo(bool flush) { |
| 148 | if (stencil) { |
John Reck | 3b20251 | 2014-06-23 13:13:08 -0700 | [diff] [blame] | 149 | GLuint previousFbo = renderState.getFramebuffer(); |
| 150 | renderState.bindFramebuffer(fbo); |
Romain Guy | 8ce0030 | 2013-01-15 18:51:42 -0800 | [diff] [blame] | 151 | glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_STENCIL_ATTACHMENT, GL_RENDERBUFFER, 0); |
John Reck | 3b20251 | 2014-06-23 13:13:08 -0700 | [diff] [blame] | 152 | renderState.bindFramebuffer(previousFbo); |
Romain Guy | 8ce0030 | 2013-01-15 18:51:42 -0800 | [diff] [blame] | 153 | |
Romain Guy | 8aa195d | 2013-06-04 18:00:09 -0700 | [diff] [blame] | 154 | caches.renderBufferCache.put(stencil); |
Chris Craik | d41c4d8 | 2015-01-05 15:51:13 -0800 | [diff] [blame] | 155 | stencil = nullptr; |
Romain Guy | 8ce0030 | 2013-01-15 18:51:42 -0800 | [diff] [blame] | 156 | } |
| 157 | |
Chet Haase | 98d3a64 | 2012-09-26 10:27:40 -0700 | [diff] [blame] | 158 | if (fbo) { |
John Reck | 3b20251 | 2014-06-23 13:13:08 -0700 | [diff] [blame] | 159 | if (flush) LayerRenderer::flushLayer(renderState, this); |
Romain Guy | 8ce0030 | 2013-01-15 18:51:42 -0800 | [diff] [blame] | 160 | // If put fails the cache will delete the FBO |
Romain Guy | 8aa195d | 2013-06-04 18:00:09 -0700 | [diff] [blame] | 161 | caches.fboCache.put(fbo); |
Chet Haase | 98d3a64 | 2012-09-26 10:27:40 -0700 | [diff] [blame] | 162 | fbo = 0; |
Dave Burke | 56257af | 2012-09-25 20:30:09 -0700 | [diff] [blame] | 163 | } |
| 164 | } |
| 165 | |
Chris Craik | a7090e0 | 2014-06-20 16:01:00 -0700 | [diff] [blame] | 166 | void Layer::updateDeferred(RenderNode* renderNode, int left, int top, int right, int bottom) { |
John Reck | 087bc0c | 2014-04-04 16:20:08 -0700 | [diff] [blame] | 167 | requireRenderer(); |
Chris Craik | a7090e0 | 2014-06-20 16:01:00 -0700 | [diff] [blame] | 168 | this->renderNode = renderNode; |
John Reck | 087bc0c | 2014-04-04 16:20:08 -0700 | [diff] [blame] | 169 | const Rect r(left, top, right, bottom); |
| 170 | dirtyRect.unionWith(r); |
| 171 | deferredUpdateScheduled = true; |
| 172 | } |
| 173 | |
Derek Sollenberger | 674554f | 2014-02-19 16:47:32 +0000 | [diff] [blame] | 174 | void Layer::setPaint(const SkPaint* paint) { |
Chet Haase | d15ebf2 | 2012-09-05 11:40:29 -0700 | [diff] [blame] | 175 | OpenGLRenderer::getAlphaAndModeDirect(paint, &alpha, &mode); |
Chris Craik | d41c4d8 | 2015-01-05 15:51:13 -0800 | [diff] [blame] | 176 | setColorFilter((paint) ? paint->getColorFilter() : nullptr); |
Chet Haase | d15ebf2 | 2012-09-05 11:40:29 -0700 | [diff] [blame] | 177 | } |
| 178 | |
Derek Sollenberger | 76d3a1b | 2013-12-10 12:28:58 -0500 | [diff] [blame] | 179 | void Layer::setColorFilter(SkColorFilter* filter) { |
| 180 | SkRefCnt_SafeAssign(colorFilter, filter); |
Romain Guy | 8aa195d | 2013-06-04 18:00:09 -0700 | [diff] [blame] | 181 | } |
| 182 | |
| 183 | void Layer::bindTexture() const { |
| 184 | if (texture.id) { |
Chris Craik | 44eb2c0 | 2015-01-29 09:45:09 -0800 | [diff] [blame] | 185 | caches.textureState().bindTexture(renderTarget, texture.id); |
Romain Guy | 8aa195d | 2013-06-04 18:00:09 -0700 | [diff] [blame] | 186 | } |
| 187 | } |
| 188 | |
| 189 | void Layer::bindStencilRenderBuffer() const { |
| 190 | if (stencil) { |
| 191 | stencil->bind(); |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | void Layer::generateTexture() { |
| 196 | if (!texture.id) { |
| 197 | glGenTextures(1, &texture.id); |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | void Layer::deleteTexture() { |
| 202 | if (texture.id) { |
Romain Guy | be1b127 | 2013-06-06 14:02:54 -0700 | [diff] [blame] | 203 | texture.deleteTexture(); |
Romain Guy | 8aa195d | 2013-06-04 18:00:09 -0700 | [diff] [blame] | 204 | texture.id = 0; |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | void Layer::clearTexture() { |
Chris Craik | 44eb2c0 | 2015-01-29 09:45:09 -0800 | [diff] [blame] | 209 | caches.textureState().unbindTexture(texture.id); |
Romain Guy | 8aa195d | 2013-06-04 18:00:09 -0700 | [diff] [blame] | 210 | texture.id = 0; |
| 211 | } |
| 212 | |
| 213 | void Layer::allocateTexture() { |
| 214 | #if DEBUG_LAYERS |
| 215 | ALOGD(" Allocate layer: %dx%d", getWidth(), getHeight()); |
| 216 | #endif |
| 217 | if (texture.id) { |
| 218 | glPixelStorei(GL_UNPACK_ALIGNMENT, 4); |
| 219 | glTexImage2D(renderTarget, 0, GL_RGBA, getWidth(), getHeight(), 0, |
Chris Craik | d41c4d8 | 2015-01-05 15:51:13 -0800 | [diff] [blame] | 220 | GL_RGBA, GL_UNSIGNED_BYTE, nullptr); |
Chet Haase | d15ebf2 | 2012-09-05 11:40:29 -0700 | [diff] [blame] | 221 | } |
| 222 | } |
| 223 | |
Chris Craik | 69e5adf | 2014-08-14 13:34:01 -0700 | [diff] [blame] | 224 | void Layer::defer(const OpenGLRenderer& rootRenderer) { |
Chris Craik | 70850ea | 2014-11-18 10:49:23 -0800 | [diff] [blame] | 225 | ATRACE_LAYER_WORK("Optimize"); |
| 226 | |
Chris Craik | 69e5adf | 2014-08-14 13:34:01 -0700 | [diff] [blame] | 227 | updateLightPosFromRenderer(rootRenderer); |
Romain Guy | 96885eb | 2013-03-26 15:05:58 -0700 | [diff] [blame] | 228 | const float width = layer.getWidth(); |
| 229 | const float height = layer.getHeight(); |
| 230 | |
| 231 | if (dirtyRect.isEmpty() || (dirtyRect.left <= 0 && dirtyRect.top <= 0 && |
| 232 | dirtyRect.right >= width && dirtyRect.bottom >= height)) { |
| 233 | dirtyRect.set(0, 0, width, height); |
| 234 | } |
| 235 | |
Chris Craik | 51d6a3d | 2014-12-22 17:16:56 -0800 | [diff] [blame] | 236 | deferredList.reset(new DeferredDisplayList(dirtyRect)); |
Chris Craik | f57776b | 2013-10-25 18:30:17 -0700 | [diff] [blame] | 237 | |
Chris Craik | 28ce94a | 2013-05-31 11:38:03 -0700 | [diff] [blame] | 238 | DeferStateStruct deferredState(*deferredList, *renderer, |
John Reck | e18264b | 2014-03-12 13:56:30 -0700 | [diff] [blame] | 239 | RenderNode::kReplayFlag_ClipChildren); |
Chris Craik | 28ce94a | 2013-05-31 11:38:03 -0700 | [diff] [blame] | 240 | |
Chris Craik | 797b95b2 | 2014-05-20 18:10:25 -0700 | [diff] [blame] | 241 | renderer->setViewport(width, height); |
Romain Guy | 96885eb | 2013-03-26 15:05:58 -0700 | [diff] [blame] | 242 | renderer->setupFrameState(dirtyRect.left, dirtyRect.top, |
| 243 | dirtyRect.right, dirtyRect.bottom, !isBlend()); |
| 244 | |
Chris Craik | a7090e0 | 2014-06-20 16:01:00 -0700 | [diff] [blame] | 245 | renderNode->computeOrdering(); |
| 246 | renderNode->defer(deferredState, 0); |
Romain Guy | 02b49b7 | 2013-03-29 12:37:16 -0700 | [diff] [blame] | 247 | |
| 248 | deferredUpdateScheduled = false; |
Romain Guy | 96885eb | 2013-03-26 15:05:58 -0700 | [diff] [blame] | 249 | } |
| 250 | |
Romain Guy | e93482f | 2013-06-17 13:14:51 -0700 | [diff] [blame] | 251 | void Layer::cancelDefer() { |
Chris Craik | d41c4d8 | 2015-01-05 15:51:13 -0800 | [diff] [blame] | 252 | renderNode = nullptr; |
Romain Guy | e93482f | 2013-06-17 13:14:51 -0700 | [diff] [blame] | 253 | deferredUpdateScheduled = false; |
Chris Craik | 51d6a3d | 2014-12-22 17:16:56 -0800 | [diff] [blame] | 254 | deferredList.release(); |
Romain Guy | e93482f | 2013-06-17 13:14:51 -0700 | [diff] [blame] | 255 | } |
| 256 | |
Romain Guy | 96885eb | 2013-03-26 15:05:58 -0700 | [diff] [blame] | 257 | void Layer::flush() { |
Chris Craik | 8c6e17c | 2013-06-17 13:02:12 -0700 | [diff] [blame] | 258 | // renderer is checked as layer may be destroyed/put in layer cache with flush scheduled |
| 259 | if (deferredList && renderer) { |
Chris Craik | 70850ea | 2014-11-18 10:49:23 -0800 | [diff] [blame] | 260 | ATRACE_LAYER_WORK("Issue"); |
Chris Craik | d41c4d8 | 2015-01-05 15:51:13 -0800 | [diff] [blame] | 261 | renderer->startMark((renderNode.get() != nullptr) ? renderNode->getName() : "Layer"); |
Chris Craik | 70850ea | 2014-11-18 10:49:23 -0800 | [diff] [blame] | 262 | |
Romain Guy | 96885eb | 2013-03-26 15:05:58 -0700 | [diff] [blame] | 263 | renderer->setViewport(layer.getWidth(), layer.getHeight()); |
| 264 | renderer->prepareDirty(dirtyRect.left, dirtyRect.top, dirtyRect.right, dirtyRect.bottom, |
| 265 | !isBlend()); |
| 266 | |
| 267 | deferredList->flush(*renderer, dirtyRect); |
| 268 | |
| 269 | renderer->finish(); |
Romain Guy | 96885eb | 2013-03-26 15:05:58 -0700 | [diff] [blame] | 270 | |
| 271 | dirtyRect.setEmpty(); |
Chris Craik | d41c4d8 | 2015-01-05 15:51:13 -0800 | [diff] [blame] | 272 | renderNode = nullptr; |
Chris Craik | 70850ea | 2014-11-18 10:49:23 -0800 | [diff] [blame] | 273 | |
| 274 | renderer->endMark(); |
Romain Guy | 96885eb | 2013-03-26 15:05:58 -0700 | [diff] [blame] | 275 | } |
| 276 | } |
| 277 | |
Chris Craik | 69e5adf | 2014-08-14 13:34:01 -0700 | [diff] [blame] | 278 | void Layer::render(const OpenGLRenderer& rootRenderer) { |
Chris Craik | 70850ea | 2014-11-18 10:49:23 -0800 | [diff] [blame] | 279 | ATRACE_LAYER_WORK("Direct-Issue"); |
| 280 | |
Chris Craik | 69e5adf | 2014-08-14 13:34:01 -0700 | [diff] [blame] | 281 | updateLightPosFromRenderer(rootRenderer); |
Romain Guy | 02b49b7 | 2013-03-29 12:37:16 -0700 | [diff] [blame] | 282 | renderer->setViewport(layer.getWidth(), layer.getHeight()); |
| 283 | renderer->prepareDirty(dirtyRect.left, dirtyRect.top, dirtyRect.right, dirtyRect.bottom, |
| 284 | !isBlend()); |
| 285 | |
Chris Craik | a7090e0 | 2014-06-20 16:01:00 -0700 | [diff] [blame] | 286 | renderer->drawRenderNode(renderNode.get(), dirtyRect, RenderNode::kReplayFlag_ClipChildren); |
Romain Guy | 02b49b7 | 2013-03-29 12:37:16 -0700 | [diff] [blame] | 287 | |
| 288 | renderer->finish(); |
Romain Guy | 02b49b7 | 2013-03-29 12:37:16 -0700 | [diff] [blame] | 289 | |
| 290 | dirtyRect.setEmpty(); |
| 291 | |
| 292 | deferredUpdateScheduled = false; |
Chris Craik | d41c4d8 | 2015-01-05 15:51:13 -0800 | [diff] [blame] | 293 | renderNode = nullptr; |
Romain Guy | 02b49b7 | 2013-03-29 12:37:16 -0700 | [diff] [blame] | 294 | } |
| 295 | |
John Reck | 0e89e2b | 2014-10-31 14:49:06 -0700 | [diff] [blame] | 296 | void Layer::postDecStrong() { |
| 297 | renderState.postDecStrong(this); |
| 298 | } |
| 299 | |
Chet Haase | d15ebf2 | 2012-09-05 11:40:29 -0700 | [diff] [blame] | 300 | }; // namespace uirenderer |
| 301 | }; // namespace android |