Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 1 | /* |
| 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 | */ |
| 16 | |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 17 | #include "CanvasState.h" |
sergeyv | dccca44 | 2016-03-21 15:38:21 -0700 | [diff] [blame] | 18 | #include "hwui/Canvas.h" |
Chris Craik | af4d04c | 2014-07-29 12:50:14 -0700 | [diff] [blame] | 19 | #include "utils/MathUtils.h" |
| 20 | |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 21 | namespace android { |
| 22 | namespace uirenderer { |
| 23 | |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 24 | |
| 25 | CanvasState::CanvasState(CanvasStateClient& renderer) |
Chris Craik | 5e00c7c | 2016-07-06 16:10:09 -0700 | [diff] [blame] | 26 | : mWidth(-1) |
Chris Craik | 058fc64 | 2014-07-23 18:19:28 -0700 | [diff] [blame] | 27 | , mHeight(-1) |
| 28 | , mSaveCount(1) |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 29 | , mCanvas(renderer) |
John Reck | d9ee550 | 2015-10-06 10:06:37 -0700 | [diff] [blame] | 30 | , mSnapshot(&mFirstSnapshot) { |
| 31 | } |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 32 | |
John Reck | d9ee550 | 2015-10-06 10:06:37 -0700 | [diff] [blame] | 33 | CanvasState::~CanvasState() { |
| 34 | // First call freeSnapshot on all but mFirstSnapshot |
| 35 | // to invoke all the dtors |
| 36 | freeAllSnapshots(); |
| 37 | |
| 38 | // Now actually release the memory |
| 39 | while (mSnapshotPool) { |
| 40 | void* temp = mSnapshotPool; |
| 41 | mSnapshotPool = mSnapshotPool->previous; |
| 42 | free(temp); |
| 43 | } |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 44 | } |
| 45 | |
Chris Craik | e4db79d | 2015-12-22 16:32:23 -0800 | [diff] [blame] | 46 | void CanvasState::initializeRecordingSaveStack(int viewportWidth, int viewportHeight) { |
| 47 | if (mWidth != viewportWidth || mHeight != viewportHeight) { |
| 48 | mWidth = viewportWidth; |
| 49 | mHeight = viewportHeight; |
| 50 | mFirstSnapshot.initializeViewport(viewportWidth, viewportHeight); |
| 51 | mCanvas.onViewportInitialized(); |
| 52 | } |
| 53 | |
| 54 | freeAllSnapshots(); |
Florin Malita | eecff56 | 2015-12-21 10:43:01 -0500 | [diff] [blame] | 55 | mSnapshot = allocSnapshot(&mFirstSnapshot, SaveFlags::MatrixClip); |
Chris Craik | e4db79d | 2015-12-22 16:32:23 -0800 | [diff] [blame] | 56 | mSnapshot->setRelativeLightCenter(Vector3()); |
| 57 | mSaveCount = 1; |
| 58 | } |
| 59 | |
Chris Craik | 64e445b | 2015-09-02 14:23:49 -0700 | [diff] [blame] | 60 | void CanvasState::initializeSaveStack( |
| 61 | int viewportWidth, int viewportHeight, |
| 62 | float clipLeft, float clipTop, |
Chris Craik | 69e5adf | 2014-08-14 13:34:01 -0700 | [diff] [blame] | 63 | float clipRight, float clipBottom, const Vector3& lightCenter) { |
Chris Craik | 64e445b | 2015-09-02 14:23:49 -0700 | [diff] [blame] | 64 | if (mWidth != viewportWidth || mHeight != viewportHeight) { |
| 65 | mWidth = viewportWidth; |
| 66 | mHeight = viewportHeight; |
John Reck | d9ee550 | 2015-10-06 10:06:37 -0700 | [diff] [blame] | 67 | mFirstSnapshot.initializeViewport(viewportWidth, viewportHeight); |
Chris Craik | 64e445b | 2015-09-02 14:23:49 -0700 | [diff] [blame] | 68 | mCanvas.onViewportInitialized(); |
| 69 | } |
| 70 | |
John Reck | d9ee550 | 2015-10-06 10:06:37 -0700 | [diff] [blame] | 71 | freeAllSnapshots(); |
Florin Malita | eecff56 | 2015-12-21 10:43:01 -0500 | [diff] [blame] | 72 | mSnapshot = allocSnapshot(&mFirstSnapshot, SaveFlags::MatrixClip); |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 73 | mSnapshot->setClip(clipLeft, clipTop, clipRight, clipBottom); |
Chris Craik | 6b109c7 | 2015-02-27 10:55:28 -0800 | [diff] [blame] | 74 | mSnapshot->fbo = mCanvas.getTargetFbo(); |
Chris Craik | 69e5adf | 2014-08-14 13:34:01 -0700 | [diff] [blame] | 75 | mSnapshot->setRelativeLightCenter(lightCenter); |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 76 | mSaveCount = 1; |
| 77 | } |
| 78 | |
John Reck | d9ee550 | 2015-10-06 10:06:37 -0700 | [diff] [blame] | 79 | Snapshot* CanvasState::allocSnapshot(Snapshot* previous, int savecount) { |
| 80 | void* memory; |
| 81 | if (mSnapshotPool) { |
| 82 | memory = mSnapshotPool; |
| 83 | mSnapshotPool = mSnapshotPool->previous; |
| 84 | mSnapshotPoolCount--; |
| 85 | } else { |
| 86 | memory = malloc(sizeof(Snapshot)); |
| 87 | } |
| 88 | return new (memory) Snapshot(previous, savecount); |
| 89 | } |
| 90 | |
| 91 | void CanvasState::freeSnapshot(Snapshot* snapshot) { |
| 92 | snapshot->~Snapshot(); |
| 93 | // Arbitrary number, just don't let this grown unbounded |
| 94 | if (mSnapshotPoolCount > 10) { |
| 95 | free((void*) snapshot); |
| 96 | } else { |
| 97 | snapshot->previous = mSnapshotPool; |
| 98 | mSnapshotPool = snapshot; |
| 99 | mSnapshotPoolCount++; |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | void CanvasState::freeAllSnapshots() { |
| 104 | while (mSnapshot != &mFirstSnapshot) { |
| 105 | Snapshot* temp = mSnapshot; |
| 106 | mSnapshot = mSnapshot->previous; |
| 107 | freeSnapshot(temp); |
| 108 | } |
| 109 | } |
| 110 | |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 111 | /////////////////////////////////////////////////////////////////////////////// |
| 112 | // Save (layer) |
| 113 | /////////////////////////////////////////////////////////////////////////////// |
| 114 | |
| 115 | /** |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 116 | * Guaranteed to save without side-effects |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 117 | * |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 118 | * This approach, here and in restoreSnapshot(), allows subclasses to directly manipulate the save |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 119 | * stack, and ensures restoreToCount() doesn't call back into subclass overrides. |
| 120 | */ |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 121 | int CanvasState::saveSnapshot(int flags) { |
John Reck | d9ee550 | 2015-10-06 10:06:37 -0700 | [diff] [blame] | 122 | mSnapshot = allocSnapshot(mSnapshot, flags); |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 123 | return mSaveCount++; |
| 124 | } |
| 125 | |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 126 | int CanvasState::save(int flags) { |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 127 | return saveSnapshot(flags); |
| 128 | } |
| 129 | |
| 130 | /** |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 131 | * Guaranteed to restore without side-effects. |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 132 | */ |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 133 | void CanvasState::restoreSnapshot() { |
John Reck | d9ee550 | 2015-10-06 10:06:37 -0700 | [diff] [blame] | 134 | Snapshot* toRemove = mSnapshot; |
| 135 | Snapshot* toRestore = mSnapshot->previous; |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 136 | |
| 137 | mSaveCount--; |
| 138 | mSnapshot = toRestore; |
| 139 | |
| 140 | // subclass handles restore implementation |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 141 | mCanvas.onSnapshotRestored(*toRemove, *toRestore); |
John Reck | d9ee550 | 2015-10-06 10:06:37 -0700 | [diff] [blame] | 142 | |
| 143 | freeSnapshot(toRemove); |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 144 | } |
| 145 | |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 146 | void CanvasState::restore() { |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 147 | if (mSaveCount > 1) { |
| 148 | restoreSnapshot(); |
| 149 | } |
| 150 | } |
| 151 | |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 152 | void CanvasState::restoreToCount(int saveCount) { |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 153 | if (saveCount < 1) saveCount = 1; |
| 154 | |
| 155 | while (mSaveCount > saveCount) { |
| 156 | restoreSnapshot(); |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | /////////////////////////////////////////////////////////////////////////////// |
| 161 | // Matrix |
| 162 | /////////////////////////////////////////////////////////////////////////////// |
| 163 | |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 164 | void CanvasState::getMatrix(SkMatrix* matrix) const { |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 165 | mSnapshot->transform->copyTo(*matrix); |
| 166 | } |
| 167 | |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 168 | void CanvasState::translate(float dx, float dy, float dz) { |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 169 | mSnapshot->transform->translate(dx, dy, dz); |
| 170 | } |
| 171 | |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 172 | void CanvasState::rotate(float degrees) { |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 173 | mSnapshot->transform->rotate(degrees, 0.0f, 0.0f, 1.0f); |
| 174 | } |
| 175 | |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 176 | void CanvasState::scale(float sx, float sy) { |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 177 | mSnapshot->transform->scale(sx, sy, 1.0f); |
| 178 | } |
| 179 | |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 180 | void CanvasState::skew(float sx, float sy) { |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 181 | mSnapshot->transform->skew(sx, sy); |
| 182 | } |
| 183 | |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 184 | void CanvasState::setMatrix(const SkMatrix& matrix) { |
Derek Sollenberger | 1390882 | 2013-12-10 12:28:58 -0500 | [diff] [blame] | 185 | mSnapshot->transform->load(matrix); |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 186 | } |
| 187 | |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 188 | void CanvasState::setMatrix(const Matrix4& matrix) { |
Chris Craik | 7c85c54 | 2015-08-19 15:10:24 -0700 | [diff] [blame] | 189 | *(mSnapshot->transform) = matrix; |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 190 | } |
| 191 | |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 192 | void CanvasState::concatMatrix(const SkMatrix& matrix) { |
Derek Sollenberger | 1390882 | 2013-12-10 12:28:58 -0500 | [diff] [blame] | 193 | mat4 transform(matrix); |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 194 | mSnapshot->transform->multiply(transform); |
| 195 | } |
| 196 | |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 197 | void CanvasState::concatMatrix(const Matrix4& matrix) { |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 198 | mSnapshot->transform->multiply(matrix); |
| 199 | } |
| 200 | |
| 201 | /////////////////////////////////////////////////////////////////////////////// |
| 202 | // Clip |
| 203 | /////////////////////////////////////////////////////////////////////////////// |
| 204 | |
Mike Reed | 6e49c9f | 2016-12-02 15:36:59 -0500 | [diff] [blame] | 205 | bool CanvasState::clipRect(float left, float top, float right, float bottom, SkClipOp op) { |
Chris Craik | a2a7072 | 2015-12-17 12:58:24 -0800 | [diff] [blame] | 206 | mSnapshot->clip(Rect(left, top, right, bottom), op); |
Rob Tsuk | 487a92c | 2015-01-06 13:22:54 -0800 | [diff] [blame] | 207 | return !mSnapshot->clipIsEmpty(); |
Chris Craik | d6b65f6 | 2014-01-01 14:45:21 -0800 | [diff] [blame] | 208 | } |
| 209 | |
Mike Reed | 6e49c9f | 2016-12-02 15:36:59 -0500 | [diff] [blame] | 210 | bool CanvasState::clipPath(const SkPath* path, SkClipOp op) { |
Chris Craik | 4d3e704 | 2015-08-20 12:54:25 -0700 | [diff] [blame] | 211 | mSnapshot->clipPath(*path, op); |
Rob Tsuk | 487a92c | 2015-01-06 13:22:54 -0800 | [diff] [blame] | 212 | return !mSnapshot->clipIsEmpty(); |
Chris Craik | d6b65f6 | 2014-01-01 14:45:21 -0800 | [diff] [blame] | 213 | } |
| 214 | |
Mike Reed | 6e49c9f | 2016-12-02 15:36:59 -0500 | [diff] [blame] | 215 | bool CanvasState::clipRegion(const SkRegion* region, SkClipOp op) { |
Chris Craik | 4d3e704 | 2015-08-20 12:54:25 -0700 | [diff] [blame] | 216 | mSnapshot->clipRegionTransformed(*region, op); |
Rob Tsuk | 487a92c | 2015-01-06 13:22:54 -0800 | [diff] [blame] | 217 | return !mSnapshot->clipIsEmpty(); |
Chris Craik | d6b65f6 | 2014-01-01 14:45:21 -0800 | [diff] [blame] | 218 | } |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 219 | |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 220 | void CanvasState::setClippingOutline(LinearAllocator& allocator, const Outline* outline) { |
Chris Craik | af4d04c | 2014-07-29 12:50:14 -0700 | [diff] [blame] | 221 | Rect bounds; |
| 222 | float radius; |
| 223 | if (!outline->getAsRoundRect(&bounds, &radius)) return; // only RR supported |
| 224 | |
Chris Craik | 79d26c7 | 2014-08-21 12:26:16 -0700 | [diff] [blame] | 225 | bool outlineIsRounded = MathUtils::isPositive(radius); |
| 226 | if (!outlineIsRounded || currentTransform()->isSimple()) { |
Chris Craik | af4d04c | 2014-07-29 12:50:14 -0700 | [diff] [blame] | 227 | // TODO: consider storing this rect separately, so that this can't be replaced with clip ops |
Mike Reed | 6c67f1d | 2016-12-14 10:29:54 -0500 | [diff] [blame^] | 228 | clipRect(bounds.left, bounds.top, bounds.right, bounds.bottom, SkClipOp::kIntersect); |
Chris Craik | af4d04c | 2014-07-29 12:50:14 -0700 | [diff] [blame] | 229 | } |
Chris Craik | 79d26c7 | 2014-08-21 12:26:16 -0700 | [diff] [blame] | 230 | if (outlineIsRounded) { |
Chris Craik | e83cbd4 | 2014-09-03 17:52:24 -0700 | [diff] [blame] | 231 | setClippingRoundRect(allocator, bounds, radius, false); |
Chris Craik | 79d26c7 | 2014-08-21 12:26:16 -0700 | [diff] [blame] | 232 | } |
Chris Craik | deeda3d | 2014-05-05 19:09:33 -0700 | [diff] [blame] | 233 | } |
| 234 | |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 235 | /////////////////////////////////////////////////////////////////////////////// |
| 236 | // Quick Rejection |
| 237 | /////////////////////////////////////////////////////////////////////////////// |
| 238 | |
| 239 | /** |
| 240 | * Calculates whether content drawn within the passed bounds would be outside of, or intersect with |
| 241 | * the clipRect. Does not modify the scissor. |
| 242 | * |
| 243 | * @param clipRequired if not null, will be set to true if element intersects clip |
| 244 | * (and wasn't rejected) |
| 245 | * |
| 246 | * @param snapOut if set, the geometry will be treated as having an AA ramp. |
| 247 | * See Rect::snapGeometryToPixelBoundaries() |
| 248 | */ |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 249 | bool CanvasState::calculateQuickRejectForScissor(float left, float top, |
Chris Craik | deeda3d | 2014-05-05 19:09:33 -0700 | [diff] [blame] | 250 | float right, float bottom, |
| 251 | bool* clipRequired, bool* roundRectClipRequired, |
| 252 | bool snapOut) const { |
Chris Craik | 5e00c7c | 2016-07-06 16:10:09 -0700 | [diff] [blame] | 253 | if (bottom <= top || right <= left) { |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 254 | return true; |
| 255 | } |
| 256 | |
| 257 | Rect r(left, top, right, bottom); |
Chris Craik | d6b65f6 | 2014-01-01 14:45:21 -0800 | [diff] [blame] | 258 | currentTransform()->mapRect(r); |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 259 | r.snapGeometryToPixelBoundaries(snapOut); |
| 260 | |
Chris Craik | 6fe991e5 | 2015-10-20 09:39:42 -0700 | [diff] [blame] | 261 | Rect clipRect(currentRenderTargetClip()); |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 262 | clipRect.snapToPixelBoundaries(); |
| 263 | |
| 264 | if (!clipRect.intersects(r)) return true; |
| 265 | |
| 266 | // clip is required if geometry intersects clip rect |
Chris Craik | deeda3d | 2014-05-05 19:09:33 -0700 | [diff] [blame] | 267 | if (clipRequired) { |
| 268 | *clipRequired = !clipRect.contains(r); |
| 269 | } |
| 270 | |
| 271 | // round rect clip is required if RR clip exists, and geometry intersects its corners |
| 272 | if (roundRectClipRequired) { |
Chris Craik | d41c4d8 | 2015-01-05 15:51:13 -0800 | [diff] [blame] | 273 | *roundRectClipRequired = mSnapshot->roundRectClipState != nullptr |
Chris Craik | deeda3d | 2014-05-05 19:09:33 -0700 | [diff] [blame] | 274 | && mSnapshot->roundRectClipState->areaRequiresRoundRectClip(r); |
| 275 | } |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 276 | return false; |
| 277 | } |
| 278 | |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 279 | bool CanvasState::quickRejectConservative(float left, float top, |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 280 | float right, float bottom) const { |
Chris Craik | 5e00c7c | 2016-07-06 16:10:09 -0700 | [diff] [blame] | 281 | if (bottom <= top || right <= left) { |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 282 | return true; |
| 283 | } |
| 284 | |
| 285 | Rect r(left, top, right, bottom); |
Chris Craik | d6b65f6 | 2014-01-01 14:45:21 -0800 | [diff] [blame] | 286 | currentTransform()->mapRect(r); |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 287 | r.roundOut(); // rounded out to be conservative |
| 288 | |
Chris Craik | 6fe991e5 | 2015-10-20 09:39:42 -0700 | [diff] [blame] | 289 | Rect clipRect(currentRenderTargetClip()); |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 290 | clipRect.snapToPixelBoundaries(); |
| 291 | |
| 292 | if (!clipRect.intersects(r)) return true; |
| 293 | |
| 294 | return false; |
| 295 | } |
| 296 | |
Tom Hudson | 984162f | 2014-10-10 13:38:16 -0400 | [diff] [blame] | 297 | } // namespace uirenderer |
| 298 | } // namespace android |