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

Unified Diff: cc/layers/layer_impl.cc

Issue 474783002: HUD: Show first paint invalidation in red (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update only when needed Created 6 years, 4 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/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index 14ffa6f826fc2fd6c41349fec759bcf9a0c50a3c..70a4c5a6ed82fabb42fbc3943cd972f70bc3e828 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -63,6 +63,7 @@ LayerImpl::LayerImpl(LayerTreeImpl* tree_impl, int id)
force_render_surface_(false),
transform_is_invertible_(true),
is_container_for_fixed_position_layers_(false),
+ includes_first_paint_invalidation_(false),
background_color_(0),
opacity_(1.0),
blend_mode_(SkXfermode::kSrcOver_Mode),
@@ -166,8 +167,7 @@ void LayerImpl::SetScrollParent(LayerImpl* parent) {
SetNeedsPushProperties();
}
-void LayerImpl::SetDebugInfo(
- scoped_refptr<base::debug::ConvertableToTraceFormat> other) {
+void LayerImpl::SetDebugInfo(scoped_refptr<LayerDebugInfo> other) {
debug_info_ = other;
SetNeedsPushProperties();
}
@@ -593,6 +593,8 @@ void LayerImpl::PushPropertiesTo(LayerImpl* layer) {
update_rect_.Union(layer->update_rect());
layer->SetUpdateRect(update_rect_);
+ layer->SetIncludesFirstPaintInvalidation(includes_first_paint_invalidation());
+
layer->SetStackingOrderChanged(stacking_order_changed_);
layer->SetDebugInfo(debug_info_);

Powered by Google App Engine
This is Rietveld 408576698