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

Unified Diff: cc/layers/layer.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.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index 63b9990d65faf0e9cb34cac442e7a2c03c44e08a..2f9e699fcadf2b735bfd1d6e65987d7223ce8688 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -870,6 +870,7 @@ void Layer::PushPropertiesTo(LayerImpl* layer) {
TRACE_DISABLED_BY_DEFAULT("cc.debug") "," TRACE_DISABLED_BY_DEFAULT(
"devtools.timeline.layers"),
&is_tracing);
+
if (is_tracing)
layer->SetDebugInfo(TakeDebugInfo());
@@ -1071,7 +1072,7 @@ bool Layer::IsSuitableForGpuRasterization() const {
return true;
}
-scoped_refptr<base::debug::ConvertableToTraceFormat> Layer::TakeDebugInfo() {
+scoped_refptr<LayerDebugInfo> Layer::TakeDebugInfo() {
if (client_)
return client_->TakeDebugInfo();
else

Powered by Google App Engine
This is Rietveld 408576698