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

Unified Diff: cc/layer_tree_impl.h

Issue 11529003: [cc] Route LayerImpl::layerTreeHostImpl() calls through LayerTreeImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layer_tree_host_unittest.cc ('k') | cc/layer_tree_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_impl.h
diff --git a/cc/layer_tree_impl.h b/cc/layer_tree_impl.h
index 775b5ec9ee0c00568618bbff2d2daec5a785e86f..6fc4429d9e7752d147f65e639df66901b49a758c 100644
--- a/cc/layer_tree_impl.h
+++ b/cc/layer_tree_impl.h
@@ -9,9 +9,16 @@
namespace cc {
+class DebugRectHistory;
+class FrameRateCounter;
+class HeadsUpDisplayLayerImpl;
+class LayerTreeDebugState;
class LayerTreeHostImpl;
class LayerTreeImpl;
-class HeadsUpDisplayLayerImpl;
+class LayerTreeSettings;
+class OutputSurface;
+class ResourceProvider;
+class TileManager;
class CC_EXPORT LayerTreeImpl {
public:
@@ -21,10 +28,27 @@ class CC_EXPORT LayerTreeImpl {
}
virtual ~LayerTreeImpl();
- // Methods called by the layer tree.
+ // Methods called by the layer tree that pass-through to LHTI.
+ // ---------------------------------------------------------------------------
+ const LayerTreeSettings& settings() const;
+ OutputSurface* output_surface() const;
+ ResourceProvider* resource_provider() const;
+ TileManager* tile_manager() const;
+ FrameRateCounter* frame_rate_counter() const;
+
+ // Tree specific methods exposed to layer-impl tree.
// ---------------------------------------------------------------------------
- // TODO(nduca): Remove this and have layers call through this class.
- LayerTreeHostImpl* layer_tree_host_impl() const { return layer_tree_host_impl_; }
+ void SetNeedsRedraw();
+ void SetNeedsUpdateDrawProperties();
+
+ // TODO(nduca): These are implemented in cc files temporarily, but will become
+ // trivial accessors in a followup patch.
+ const LayerTreeDebugState& debug_state() const;
+ float device_scale_factor() const;
+ const gfx::Size& device_viewport_size() const;
+ const gfx::Size& layout_viewport_size() const;
+ std::string layer_tree_as_text() const;
+ DebugRectHistory* debug_rect_history() const;
// Other public methods
// ---------------------------------------------------------------------------
« no previous file with comments | « cc/layer_tree_host_unittest.cc ('k') | cc/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698