OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Data structures for representing parts of Chromium's composited layer tree | 5 // Data structures for representing parts of Chromium's composited layer tree |
6 // and a function to load it from the JSON configuration file | 6 // and a function to load it from the JSON configuration file |
7 | 7 |
8 #ifndef GPU_TOOLS_COMPOSITOR_MODEL_BENCH_RENDER_TREE_H_ | 8 #ifndef GPU_TOOLS_COMPOSITOR_MODEL_BENCH_RENDER_TREE_H_ |
9 #define GPU_TOOLS_COMPOSITOR_MODEL_BENCH_RENDER_TREE_H_ | 9 #define GPU_TOOLS_COMPOSITOR_MODEL_BENCH_RENDER_TREE_H_ |
10 | 10 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 virtual ~RenderNodeVisitor(); | 201 virtual ~RenderNodeVisitor(); |
202 | 202 |
203 virtual void BeginVisitRenderNode(RenderNode* v) = 0; | 203 virtual void BeginVisitRenderNode(RenderNode* v) = 0; |
204 virtual void BeginVisitContentLayerNode(ContentLayerNode* v); | 204 virtual void BeginVisitContentLayerNode(ContentLayerNode* v); |
205 virtual void BeginVisitCCNode(CCNode* v); | 205 virtual void BeginVisitCCNode(CCNode* v); |
206 virtual void EndVisitRenderNode(RenderNode* v); | 206 virtual void EndVisitRenderNode(RenderNode* v); |
207 virtual void EndVisitContentLayerNode(ContentLayerNode* v); | 207 virtual void EndVisitContentLayerNode(ContentLayerNode* v); |
208 virtual void EndVisitCCNode(CCNode* v); | 208 virtual void EndVisitCCNode(CCNode* v); |
209 }; | 209 }; |
210 | 210 |
211 RenderNode* BuildRenderTreeFromFile(const base::FilePath& path); | 211 std::unique_ptr<RenderNode> BuildRenderTreeFromFile(const base::FilePath& path); |
212 | 212 |
213 #endif // GPU_TOOLS_COMPOSITOR_MODEL_BENCH_RENDER_TREE_H_ | 213 #endif // GPU_TOOLS_COMPOSITOR_MODEL_BENCH_RENDER_TREE_H_ |
214 | 214 |
OLD | NEW |