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

Unified Diff: cc/trees/draw_property_utils.h

Issue 1864183002: cc: Main thread skip single layers instead of subtrees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/draw_property_utils.h
diff --git a/cc/trees/draw_property_utils.h b/cc/trees/draw_property_utils.h
index 24d265e0b7160e88fca2c916a511196163a5180e..fcd31bf2a1a552d035648ef01fd9d01203e3473e 100644
--- a/cc/trees/draw_property_utils.h
+++ b/cc/trees/draw_property_utils.h
@@ -20,6 +20,7 @@ class ClipTree;
struct DrawProperties;
class Layer;
class LayerImpl;
+class LayerTreeHost;
class RenderSurfaceImpl;
class EffectTree;
class TransformTree;
@@ -61,7 +62,7 @@ void CC_EXPORT UpdateRenderSurfaces(Layer* root_layer,
void CC_EXPORT UpdatePropertyTrees(PropertyTrees* property_trees,
bool can_render_to_separate_surface);
-void CC_EXPORT FindLayersThatNeedUpdates(Layer* layer,
+void CC_EXPORT FindLayersThatNeedUpdates(LayerTreeHost* layer_tree_host,
const TransformTree& transform_tree,
const EffectTree& effect_tree,
LayerList* update_layer_list);
@@ -86,7 +87,8 @@ void CC_EXPORT ComputeSurfaceDrawProperties(const PropertyTrees* property_trees,
bool CC_EXPORT LayerShouldBeSkipped(LayerImpl* layer,
bool layer_is_drawn,
- const TransformTree& transform_tree);
+ const TransformTree& transform_tree,
+ const EffectTree& effect_tree);
bool CC_EXPORT LayerNeedsUpdate(Layer* layer,
bool layer_is_drawn,

Powered by Google App Engine
This is Rietveld 408576698