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

Unified Diff: cc/trees/effect_node.cc

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Created 3 years, 7 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/effect_node.cc
diff --git a/cc/trees/effect_node.cc b/cc/trees/effect_node.cc
index 464422a2e66b6867a66e3fa34e16456f2a793998..275aaaae73561b2783c3a8c8b34cda33f93a2892 100644
--- a/cc/trees/effect_node.cc
+++ b/cc/trees/effect_node.cc
@@ -17,6 +17,7 @@ EffectNode::EffectNode()
screen_space_opacity(1.f),
blend_mode(SkBlendMode::kSrcOver),
has_render_surface(false),
+ force_render_surface(false),
has_copy_request(false),
hidden_by_backface_visibility(false),
double_sided(false),
@@ -41,6 +42,7 @@ bool EffectNode::operator==(const EffectNode& other) const {
owning_layer_id == other.owning_layer_id && opacity == other.opacity &&
screen_space_opacity == other.screen_space_opacity &&
has_render_surface == other.has_render_surface &&
+ force_render_surface == other.force_render_surface &&
has_copy_request == other.has_copy_request &&
filters == other.filters &&
background_filters == other.background_filters &&
@@ -72,6 +74,7 @@ void EffectNode::AsValueInto(base::trace_event::TracedValue* value) const {
value->SetInteger("owning_layer_id", owning_layer_id);
value->SetDouble("opacity", opacity);
value->SetBoolean("has_render_surface", has_render_surface);
+ value->SetBoolean("force_render_surface", force_render_surface);
value->SetBoolean("has_copy_request", has_copy_request);
value->SetBoolean("double_sided", double_sided);
value->SetBoolean("is_drawn", is_drawn);

Powered by Google App Engine
This is Rietveld 408576698