Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(474)

Side by Side Diff: cc/trees/layer_tree_impl.h

Issue 322443002: cc: Refactor how picture layers are exposed to the tile manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tile manager perf tests Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_
6 #define CC_TREES_LAYER_TREE_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 24 matching lines...) Expand all
35 class FrameRateCounter; 35 class FrameRateCounter;
36 class HeadsUpDisplayLayerImpl; 36 class HeadsUpDisplayLayerImpl;
37 class LayerScrollOffsetDelegateProxy; 37 class LayerScrollOffsetDelegateProxy;
38 class LayerTreeDebugState; 38 class LayerTreeDebugState;
39 class LayerTreeHostImpl; 39 class LayerTreeHostImpl;
40 class LayerTreeImpl; 40 class LayerTreeImpl;
41 class LayerTreeSettings; 41 class LayerTreeSettings;
42 class MemoryHistory; 42 class MemoryHistory;
43 class OutputSurface; 43 class OutputSurface;
44 class PaintTimeCounter; 44 class PaintTimeCounter;
45 class PictureLayerImpl;
45 class Proxy; 46 class Proxy;
46 class ResourceProvider; 47 class ResourceProvider;
47 class TileManager; 48 class TileManager;
48 class UIResourceRequest; 49 class UIResourceRequest;
49 struct RendererCapabilities; 50 struct RendererCapabilities;
50 51
51 typedef std::list<UIResourceRequest> UIResourceRequestQueue; 52 typedef std::list<UIResourceRequest> UIResourceRequestQueue;
52 53
53 class CC_EXPORT LayerTreeImpl { 54 class CC_EXPORT LayerTreeImpl {
54 public: 55 public:
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 } 253 }
253 254
254 LayerImpl* FindFirstScrollingLayerThatIsHitByPoint( 255 LayerImpl* FindFirstScrollingLayerThatIsHitByPoint(
255 const gfx::PointF& screen_space_point); 256 const gfx::PointF& screen_space_point);
256 257
257 LayerImpl* FindLayerThatIsHitByPoint(const gfx::PointF& screen_space_point); 258 LayerImpl* FindLayerThatIsHitByPoint(const gfx::PointF& screen_space_point);
258 259
259 LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion( 260 LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion(
260 const gfx::PointF& screen_space_point); 261 const gfx::PointF& screen_space_point);
261 262
263 void RegisterPictureLayerImpl(PictureLayerImpl* layer);
264 void UnregisterPictureLayerImpl(PictureLayerImpl* layer);
265
262 protected: 266 protected:
263 explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl); 267 explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl);
264 void ReleaseResourcesRecursive(LayerImpl* current); 268 void ReleaseResourcesRecursive(LayerImpl* current);
265 269
266 LayerTreeHostImpl* layer_tree_host_impl_; 270 LayerTreeHostImpl* layer_tree_host_impl_;
267 int source_frame_number_; 271 int source_frame_number_;
268 scoped_ptr<LayerImpl> root_layer_; 272 scoped_ptr<LayerImpl> root_layer_;
269 HeadsUpDisplayLayerImpl* hud_layer_; 273 HeadsUpDisplayLayerImpl* hud_layer_;
270 LayerImpl* currently_scrolling_layer_; 274 LayerImpl* currently_scrolling_layer_;
271 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; 275 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 318
315 int render_surface_layer_list_id_; 319 int render_surface_layer_list_id_;
316 320
317 private: 321 private:
318 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 322 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
319 }; 323 };
320 324
321 } // namespace cc 325 } // namespace cc
322 326
323 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 327 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698