John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [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 | #ifndef RENDERNODE_H |
| 17 | #define RENDERNODE_H |
| 18 | |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 19 | #include <SkCamera.h> |
| 20 | #include <SkMatrix.h> |
| 21 | |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 22 | #include <utils/LinearAllocator.h> |
| 23 | #include <utils/RefBase.h> |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 24 | #include <utils/String8.h> |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 25 | |
| 26 | #include <cutils/compiler.h> |
| 27 | |
| 28 | #include <androidfw/ResourceTypes.h> |
| 29 | |
John Reck | 68bfe0a | 2014-06-24 15:34:58 -0700 | [diff] [blame] | 30 | #include "AnimatorManager.h" |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 31 | #include "Debug.h" |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 32 | #include "DisplayList.h" |
Chris Craik | b565df1 | 2015-10-05 13:00:52 -0700 | [diff] [blame] | 33 | #include "Matrix.h" |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 34 | #include "RenderProperties.h" |
| 35 | |
John Reck | 272a685 | 2015-07-29 16:48:58 -0700 | [diff] [blame] | 36 | #include <vector> |
| 37 | |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 38 | class SkBitmap; |
| 39 | class SkPaint; |
| 40 | class SkPath; |
| 41 | class SkRegion; |
| 42 | |
| 43 | namespace android { |
| 44 | namespace uirenderer { |
| 45 | |
Chris Craik | b565df1 | 2015-10-05 13:00:52 -0700 | [diff] [blame] | 46 | class CanvasState; |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 47 | class DisplayListOp; |
Chris Craik | db663fe | 2015-04-20 13:34:45 -0700 | [diff] [blame] | 48 | class DisplayListCanvas; |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 49 | class OpenGLRenderer; |
| 50 | class Rect; |
| 51 | class Layer; |
| 52 | class SkiaShader; |
| 53 | |
| 54 | class ClipRectOp; |
| 55 | class SaveLayerOp; |
| 56 | class SaveOp; |
| 57 | class RestoreToCountOp; |
Chris Craik | a7090e0 | 2014-06-20 16:01:00 -0700 | [diff] [blame] | 58 | class DrawRenderNodeOp; |
Tom Hudson | 2dc236b | 2014-10-15 15:46:42 -0400 | [diff] [blame] | 59 | class TreeInfo; |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 60 | |
John Reck | e248bd1 | 2015-08-05 13:53:53 -0700 | [diff] [blame] | 61 | namespace proto { |
| 62 | class RenderNode; |
| 63 | } |
| 64 | |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 65 | /** |
| 66 | * Primary class for storing recorded canvas commands, as well as per-View/ViewGroup display properties. |
| 67 | * |
| 68 | * Recording of canvas commands is somewhat similar to SkPicture, except the canvas-recording |
Chris Craik | 003cc3d | 2015-10-16 10:24:55 -0700 | [diff] [blame] | 69 | * functionality is split between DisplayListCanvas (which manages the recording), DisplayList |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 70 | * (which holds the actual data), and DisplayList (which holds properties and performs playback onto |
| 71 | * a renderer). |
| 72 | * |
Chris Craik | 003cc3d | 2015-10-16 10:24:55 -0700 | [diff] [blame] | 73 | * Note that DisplayList is swapped out from beneath an individual RenderNode when a view's |
| 74 | * recorded stream of canvas operations is refreshed. The RenderNode (and its properties) stay |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 75 | * attached. |
| 76 | */ |
John Reck | 087bc0c | 2014-04-04 16:20:08 -0700 | [diff] [blame] | 77 | class RenderNode : public VirtualLightRefBase { |
Chris Craik | b565df1 | 2015-10-05 13:00:52 -0700 | [diff] [blame] | 78 | friend class TestUtils; // allow TestUtils to access syncDisplayList / syncProperties |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 79 | public: |
John Reck | ff941dc | 2014-05-14 16:34:14 -0700 | [diff] [blame] | 80 | enum DirtyPropertyMask { |
| 81 | GENERIC = 1 << 1, |
| 82 | TRANSLATION_X = 1 << 2, |
| 83 | TRANSLATION_Y = 1 << 3, |
| 84 | TRANSLATION_Z = 1 << 4, |
| 85 | SCALE_X = 1 << 5, |
| 86 | SCALE_Y = 1 << 6, |
| 87 | ROTATION = 1 << 7, |
| 88 | ROTATION_X = 1 << 8, |
| 89 | ROTATION_Y = 1 << 9, |
| 90 | X = 1 << 10, |
| 91 | Y = 1 << 11, |
| 92 | Z = 1 << 12, |
| 93 | ALPHA = 1 << 13, |
John Reck | a7c2ea2 | 2014-08-08 13:21:00 -0700 | [diff] [blame] | 94 | DISPLAY_LIST = 1 << 14, |
John Reck | ff941dc | 2014-05-14 16:34:14 -0700 | [diff] [blame] | 95 | }; |
| 96 | |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 97 | ANDROID_API RenderNode(); |
John Reck | e45b1fd | 2014-04-15 09:50:16 -0700 | [diff] [blame] | 98 | ANDROID_API virtual ~RenderNode(); |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 99 | |
| 100 | // See flags defined in DisplayList.java |
| 101 | enum ReplayFlag { |
| 102 | kReplayFlag_ClipChildren = 0x1 |
| 103 | }; |
| 104 | |
John Reck | 443a714 | 2014-09-04 17:40:05 -0700 | [diff] [blame] | 105 | void debugDumpLayers(const char* prefix); |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 106 | |
Chris Craik | 003cc3d | 2015-10-16 10:24:55 -0700 | [diff] [blame] | 107 | ANDROID_API void setStagingDisplayList(DisplayList* newData); |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 108 | |
| 109 | void computeOrdering(); |
Chris Craik | b265e2c | 2014-03-27 15:50:09 -0700 | [diff] [blame] | 110 | |
Chris Craik | 80d4902 | 2014-06-20 15:03:43 -0700 | [diff] [blame] | 111 | void defer(DeferStateStruct& deferStruct, const int level); |
| 112 | void replay(ReplayStateStruct& replayStruct, const int level); |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 113 | |
| 114 | ANDROID_API void output(uint32_t level = 1); |
John Reck | fe5e7b7 | 2014-05-23 17:42:28 -0700 | [diff] [blame] | 115 | ANDROID_API int getDebugSize(); |
John Reck | e248bd1 | 2015-08-05 13:53:53 -0700 | [diff] [blame] | 116 | void copyTo(proto::RenderNode* node); |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 117 | |
| 118 | bool isRenderable() const { |
Chris Craik | 003cc3d | 2015-10-16 10:24:55 -0700 | [diff] [blame] | 119 | return mDisplayList && !mDisplayList->isEmpty(); |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 120 | } |
| 121 | |
John Reck | a447d29 | 2014-06-11 18:39:44 -0700 | [diff] [blame] | 122 | bool hasProjectionReceiver() const { |
Chris Craik | 003cc3d | 2015-10-16 10:24:55 -0700 | [diff] [blame] | 123 | return mDisplayList && mDisplayList->projectionReceiveIndex >= 0; |
John Reck | a447d29 | 2014-06-11 18:39:44 -0700 | [diff] [blame] | 124 | } |
| 125 | |
Chris Craik | defb7f3 | 2014-04-08 18:17:07 -0700 | [diff] [blame] | 126 | const char* getName() const { |
| 127 | return mName.string(); |
| 128 | } |
| 129 | |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 130 | void setName(const char* name) { |
| 131 | if (name) { |
| 132 | char* lastPeriod = strrchr(name, '.'); |
| 133 | if (lastPeriod) { |
| 134 | mName.setTo(lastPeriod + 1); |
| 135 | } else { |
| 136 | mName.setTo(name); |
| 137 | } |
| 138 | } |
| 139 | } |
| 140 | |
John Reck | ff941dc | 2014-05-14 16:34:14 -0700 | [diff] [blame] | 141 | bool isPropertyFieldDirty(DirtyPropertyMask field) const { |
| 142 | return mDirtyPropertyFields & field; |
| 143 | } |
| 144 | |
| 145 | void setPropertyFieldsDirty(uint32_t fields) { |
| 146 | mDirtyPropertyFields |= fields; |
| 147 | } |
| 148 | |
John Reck | e4267ea | 2014-06-03 15:53:15 -0700 | [diff] [blame] | 149 | const RenderProperties& properties() const { |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 150 | return mProperties; |
| 151 | } |
| 152 | |
John Reck | 52244ff | 2014-05-01 21:27:37 -0700 | [diff] [blame] | 153 | RenderProperties& animatorProperties() { |
| 154 | return mProperties; |
| 155 | } |
| 156 | |
John Reck | d0a0b2a | 2014-03-20 16:28:56 -0700 | [diff] [blame] | 157 | const RenderProperties& stagingProperties() { |
| 158 | return mStagingProperties; |
| 159 | } |
| 160 | |
| 161 | RenderProperties& mutateStagingProperties() { |
John Reck | d0a0b2a | 2014-03-20 16:28:56 -0700 | [diff] [blame] | 162 | return mStagingProperties; |
| 163 | } |
| 164 | |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 165 | int getWidth() { |
| 166 | return properties().getWidth(); |
| 167 | } |
| 168 | |
| 169 | int getHeight() { |
| 170 | return properties().getHeight(); |
| 171 | } |
| 172 | |
John Reck | e45b1fd | 2014-04-15 09:50:16 -0700 | [diff] [blame] | 173 | ANDROID_API virtual void prepareTree(TreeInfo& info); |
John Reck | dcba672 | 2014-07-08 13:59:49 -0700 | [diff] [blame] | 174 | void destroyHardwareResources(); |
John Reck | e45b1fd | 2014-04-15 09:50:16 -0700 | [diff] [blame] | 175 | |
| 176 | // UI thread only! |
John Reck | 68bfe0a | 2014-06-24 15:34:58 -0700 | [diff] [blame] | 177 | ANDROID_API void addAnimator(const sp<BaseRenderNodeAnimator>& animator); |
John Reck | 668f0e3 | 2014-03-26 15:10:40 -0700 | [diff] [blame] | 178 | |
John Reck | 119907c | 2014-08-14 09:02:01 -0700 | [diff] [blame] | 179 | AnimatorManager& animators() { return mAnimatorManager; } |
| 180 | |
Chris Craik | b565df1 | 2015-10-05 13:00:52 -0700 | [diff] [blame] | 181 | // Returns false if the properties dictate the subtree contained in this RenderNode won't render |
| 182 | bool applyViewProperties(CanvasState& canvasState) const; |
| 183 | |
Chris Craik | 69e5adf | 2014-08-14 13:34:01 -0700 | [diff] [blame] | 184 | void applyViewPropertyTransforms(mat4& matrix, bool true3dTransform = false) const; |
| 185 | |
Chris Craik | b565df1 | 2015-10-05 13:00:52 -0700 | [diff] [blame] | 186 | bool nothingToDraw() const { |
| 187 | const Outline& outline = properties().getOutline(); |
Chris Craik | 003cc3d | 2015-10-16 10:24:55 -0700 | [diff] [blame] | 188 | return mDisplayList == nullptr |
Chris Craik | b565df1 | 2015-10-05 13:00:52 -0700 | [diff] [blame] | 189 | || properties().getAlpha() <= 0 |
| 190 | || (outline.getShouldClip() && outline.isEmpty()) |
| 191 | || properties().getScaleX() == 0 |
| 192 | || properties().getScaleY() == 0; |
| 193 | } |
| 194 | |
Chris Craik | 003cc3d | 2015-10-16 10:24:55 -0700 | [diff] [blame] | 195 | // Only call if RenderNode has DisplayList... |
| 196 | const DisplayList& getDisplayList() const { |
| 197 | return *mDisplayList; |
Chris Craik | b565df1 | 2015-10-05 13:00:52 -0700 | [diff] [blame] | 198 | } |
| 199 | |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 200 | private: |
Chris Craik | a7090e0 | 2014-06-20 16:01:00 -0700 | [diff] [blame] | 201 | typedef key_value_pair_t<float, DrawRenderNodeOp*> ZDrawRenderNodeOpPair; |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 202 | |
John Reck | 272a685 | 2015-07-29 16:48:58 -0700 | [diff] [blame] | 203 | static size_t findNonNegativeIndex(const std::vector<ZDrawRenderNodeOpPair>& nodes) { |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 204 | for (size_t i = 0; i < nodes.size(); i++) { |
| 205 | if (nodes[i].key >= 0.0f) return i; |
| 206 | } |
| 207 | return nodes.size(); |
| 208 | } |
| 209 | |
Chris Craik | b9ce116d | 2015-08-20 15:14:06 -0700 | [diff] [blame] | 210 | enum class ChildrenSelectMode { |
| 211 | NegativeZChildren, |
| 212 | PositiveZChildren |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 213 | }; |
| 214 | |
Chris Craik | a7090e0 | 2014-06-20 16:01:00 -0700 | [diff] [blame] | 215 | void computeOrderingImpl(DrawRenderNodeOp* opState, |
John Reck | 272a685 | 2015-07-29 16:48:58 -0700 | [diff] [blame] | 216 | std::vector<DrawRenderNodeOp*>* compositedChildrenOfProjectionSurface, |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 217 | const mat4* transformFromProjectionSurface); |
| 218 | |
| 219 | template <class T> |
Chris Craik | b265e2c | 2014-03-27 15:50:09 -0700 | [diff] [blame] | 220 | inline void setViewProperties(OpenGLRenderer& renderer, T& handler); |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 221 | |
Chris Craik | 003cc3d | 2015-10-16 10:24:55 -0700 | [diff] [blame] | 222 | void buildZSortedChildList(const DisplayList::Chunk& chunk, |
John Reck | 272a685 | 2015-07-29 16:48:58 -0700 | [diff] [blame] | 223 | std::vector<ZDrawRenderNodeOpPair>& zTranslatedNodes); |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 224 | |
Chris Craik | b265e2c | 2014-03-27 15:50:09 -0700 | [diff] [blame] | 225 | template<class T> |
| 226 | inline void issueDrawShadowOperation(const Matrix4& transformFromParent, T& handler); |
| 227 | |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 228 | template <class T> |
Chris Craik | c3e75f9 | 2014-08-27 15:34:52 -0700 | [diff] [blame] | 229 | inline void issueOperationsOf3dChildren(ChildrenSelectMode mode, |
John Reck | 272a685 | 2015-07-29 16:48:58 -0700 | [diff] [blame] | 230 | const Matrix4& initialTransform, const std::vector<ZDrawRenderNodeOpPair>& zTranslatedNodes, |
Chris Craik | 80d4902 | 2014-06-20 15:03:43 -0700 | [diff] [blame] | 231 | OpenGLRenderer& renderer, T& handler); |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 232 | |
| 233 | template <class T> |
Chris Craik | b265e2c | 2014-03-27 15:50:09 -0700 | [diff] [blame] | 234 | inline void issueOperationsOfProjectedChildren(OpenGLRenderer& renderer, T& handler); |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 235 | |
Chris Craik | b265e2c | 2014-03-27 15:50:09 -0700 | [diff] [blame] | 236 | /** |
| 237 | * Issue the RenderNode's operations into a handler, recursing for subtrees through |
Chris Craik | a7090e0 | 2014-06-20 16:01:00 -0700 | [diff] [blame] | 238 | * DrawRenderNodeOp's defer() or replay() methods |
Chris Craik | b265e2c | 2014-03-27 15:50:09 -0700 | [diff] [blame] | 239 | */ |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 240 | template <class T> |
Chris Craik | b265e2c | 2014-03-27 15:50:09 -0700 | [diff] [blame] | 241 | inline void issueOperations(OpenGLRenderer& renderer, T& handler); |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 242 | |
| 243 | class TextContainer { |
| 244 | public: |
| 245 | size_t length() const { |
| 246 | return mByteLength; |
| 247 | } |
| 248 | |
| 249 | const char* text() const { |
| 250 | return (const char*) mText; |
| 251 | } |
| 252 | |
| 253 | size_t mByteLength; |
| 254 | const char* mText; |
| 255 | }; |
| 256 | |
Chris Craik | b565df1 | 2015-10-05 13:00:52 -0700 | [diff] [blame] | 257 | |
| 258 | void syncProperties(); |
| 259 | void syncDisplayList(); |
| 260 | |
Chris Craik | a766cb2 | 2015-06-08 16:49:43 -0700 | [diff] [blame] | 261 | void prepareTreeImpl(TreeInfo& info, bool functorsNeedLayer); |
John Reck | 25fbb3f | 2014-06-12 13:46:45 -0700 | [diff] [blame] | 262 | void pushStagingPropertiesChanges(TreeInfo& info); |
| 263 | void pushStagingDisplayListChanges(TreeInfo& info); |
Chris Craik | 003cc3d | 2015-10-16 10:24:55 -0700 | [diff] [blame] | 264 | void prepareSubTree(TreeInfo& info, bool functorsNeedLayer, DisplayList* subtree); |
John Reck | 25fbb3f | 2014-06-12 13:46:45 -0700 | [diff] [blame] | 265 | void applyLayerPropertiesToLayer(TreeInfo& info); |
John Reck | a7c2ea2 | 2014-08-08 13:21:00 -0700 | [diff] [blame] | 266 | void prepareLayer(TreeInfo& info, uint32_t dirtyMask); |
John Reck | 25fbb3f | 2014-06-12 13:46:45 -0700 | [diff] [blame] | 267 | void pushLayerUpdate(TreeInfo& info); |
Chris Craik | 003cc3d | 2015-10-16 10:24:55 -0700 | [diff] [blame] | 268 | void deleteDisplayList(); |
John Reck | 0a97330 | 2014-07-16 13:29:45 -0700 | [diff] [blame] | 269 | void damageSelf(TreeInfo& info); |
John Reck | dcba672 | 2014-07-08 13:59:49 -0700 | [diff] [blame] | 270 | |
| 271 | void incParentRefCount() { mParentCount++; } |
| 272 | void decParentRefCount(); |
John Reck | 8de65a8 | 2014-04-09 15:23:38 -0700 | [diff] [blame] | 273 | |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 274 | String8 mName; |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 275 | |
John Reck | ff941dc | 2014-05-14 16:34:14 -0700 | [diff] [blame] | 276 | uint32_t mDirtyPropertyFields; |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 277 | RenderProperties mProperties; |
John Reck | d0a0b2a | 2014-03-20 16:28:56 -0700 | [diff] [blame] | 278 | RenderProperties mStagingProperties; |
| 279 | |
Chris Craik | 003cc3d | 2015-10-16 10:24:55 -0700 | [diff] [blame] | 280 | bool mNeedsDisplayListSync; |
| 281 | // WARNING: Do not delete this directly, you must go through deleteDisplayList()! |
| 282 | DisplayList* mDisplayList; |
| 283 | DisplayList* mStagingDisplayList; |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 284 | |
John Reck | 68bfe0a | 2014-06-24 15:34:58 -0700 | [diff] [blame] | 285 | friend class AnimatorManager; |
| 286 | AnimatorManager mAnimatorManager; |
John Reck | e45b1fd | 2014-04-15 09:50:16 -0700 | [diff] [blame] | 287 | |
John Reck | 25fbb3f | 2014-06-12 13:46:45 -0700 | [diff] [blame] | 288 | // Owned by RT. Lifecycle is managed by prepareTree(), with the exception |
| 289 | // being in ~RenderNode() which may happen on any thread. |
| 290 | Layer* mLayer; |
| 291 | |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 292 | /** |
| 293 | * Draw time state - these properties are only set and used during rendering |
| 294 | */ |
| 295 | |
| 296 | // for projection surfaces, contains a list of all children items |
John Reck | 272a685 | 2015-07-29 16:48:58 -0700 | [diff] [blame] | 297 | std::vector<DrawRenderNodeOp*> mProjectedNodes; |
John Reck | dcba672 | 2014-07-08 13:59:49 -0700 | [diff] [blame] | 298 | |
| 299 | // How many references our parent(s) have to us. Typically this should alternate |
| 300 | // between 2 and 1 (when a staging push happens we inc first then dec) |
| 301 | // When this hits 0 we are no longer in the tree, so any hardware resources |
| 302 | // (specifically Layers) should be released. |
| 303 | // This is *NOT* thread-safe, and should therefore only be tracking |
Chris Craik | 003cc3d | 2015-10-16 10:24:55 -0700 | [diff] [blame] | 304 | // mDisplayList, not mStagingDisplayList. |
John Reck | dcba672 | 2014-07-08 13:59:49 -0700 | [diff] [blame] | 305 | uint32_t mParentCount; |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 306 | }; // class RenderNode |
| 307 | |
| 308 | } /* namespace uirenderer */ |
| 309 | } /* namespace android */ |
| 310 | |
| 311 | #endif /* RENDERNODE_H */ |