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

Unified Diff: cc/layer_tree_impl.h

Issue 11640035: cc: Move updateDrawProperties to LayerTreeImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove a TODO 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_impl.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 e6d62e00867df9d52e47e390ad12135b165a55f5..4b16f46d0b7069730ff7dce04c03e689763bd4c9 100644
--- a/cc/layer_tree_impl.h
+++ b/cc/layer_tree_impl.h
@@ -35,6 +35,8 @@ class TileManager;
class CC_EXPORT LayerTreeImpl {
public:
+ typedef std::vector<LayerImpl*> LayerList;
+
static scoped_ptr<LayerTreeImpl> create(LayerTreeHostImpl* layer_tree_host_impl)
{
return make_scoped_ptr(new LayerTreeImpl(layer_tree_host_impl));
@@ -91,6 +93,13 @@ class CC_EXPORT LayerTreeImpl {
void UpdateMaxScrollOffset();
+ // Updates draw properties and render surface layer list
+ void UpdateDrawProperties();
+
+ void ClearRenderSurfaces();
+
+ const LayerList& RenderSurfaceLayerList() const;
+
gfx::Size ContentSize() const;
LayerImpl* LayerById(int id);
@@ -117,6 +126,10 @@ protected:
// Persisted state
int scrolling_layer_id_from_previous_tree_;
+ // List of visible layers for the most recently prepared frame. Used for
+ // rendering and input event hit testing.
+ LayerList render_surface_layer_list_;
+
DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
};
« no previous file with comments | « cc/layer_tree_host_impl.cc ('k') | cc/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698