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

Unified Diff: cc/layer_tree_host_impl.cc

Issue 11519018: [cc] Make LayerImpls point at LayerTreeImpl instead of LTHI (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
Index: cc/layer_tree_host_impl.cc
diff --git a/cc/layer_tree_host_impl.cc b/cc/layer_tree_host_impl.cc
index f6b753915070bb426cf9fcb728db7a9f9d36ec29..034ef0815e638802263b18c34f47d88f54ad2219 100644
--- a/cc/layer_tree_host_impl.cc
+++ b/cc/layer_tree_host_impl.cc
@@ -20,6 +20,7 @@
#include "cc/layer_iterator.h"
#include "cc/layer_tree_host.h"
#include "cc/layer_tree_host_common.h"
+#include "cc/layer_tree_impl.h"
#include "cc/math_util.h"
#include "cc/overdraw_metrics.h"
#include "cc/page_scale_animation.h"
@@ -955,6 +956,21 @@ void LayerTreeHostImpl::readback(void* pixels, const gfx::Rect& rect)
m_renderer->getFramebufferPixels(pixels, rect);
}
+LayerImpl* LayerTreeHostImpl::rootLayer() const
+{
+ return m_activeTree->RootLayer();
+}
+
+LayerImpl* LayerTreeHostImpl::rootScrollLayer() const
+{
+ return m_activeTree->root_scroll_layer();
+}
+
+LayerImpl* LayerTreeHostImpl::currentlyScrollingLayer() const
+{
+ return m_activeTree->currently_scrolling_layer();
+}
+
// Content layers can be either directly scrollable or contained in an outer
// scrolling layer which applies the scroll transform. Given a content layer,
// this function returns the associated scroll layer if any.
« cc/layer.h ('K') | « cc/layer_tree_host_impl.h ('k') | cc/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698