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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 13939005: cc: Add strict layer property change checking and handle bounds changes during paint. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 81f905199febf1e9ff9f533074e8fd8e37215487..7124b13a9d01f0d1ae4638db9d769687d7fa4409 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -97,7 +97,8 @@ LayerTreeHost::LayerTreeHost(LayerTreeHostClient* client,
trigger_idle_updates_(true),
background_color_(SK_ColorWHITE),
has_transparent_background_(false),
- partial_texture_update_requests_(0) {
+ partial_texture_update_requests_(0),
+ in_paint_layer_contents_(false) {
if (settings_.accelerated_animation_enabled)
animation_registrar_ = AnimationRegistrar::Create();
s_num_layer_tree_instances++;
@@ -935,6 +936,8 @@ bool LayerTreeHost::PaintLayerContents(
RenderingStats* stats_ptr =
debug_state_.RecordRenderingStats() ? &stats : NULL;
+ in_paint_layer_contents_ = true;
+
LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list);
for (LayerIteratorType it =
LayerIteratorType::Begin(&render_surface_layer_list);
@@ -955,6 +958,8 @@ bool LayerTreeHost::PaintLayerContents(
occlusion_tracker.LeaveLayer(it);
}
+ in_paint_layer_contents_ = false;
+
rendering_stats_instrumentation_->AddStats(stats);
occlusion_tracker.overdraw_metrics()->RecordMetrics(this);

Powered by Google App Engine
This is Rietveld 408576698