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

Unified Diff: cc/layers/picture_layer_impl.cc

Issue 2578193003: cc: Add more PictureLayerImpl tracing information. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl.cc
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
index 617719105672803000fb5412fee49312cb92d958..61dcd64b7c0ac00d22be229cedfc676215f8e13e 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -1325,6 +1325,32 @@ void PictureLayerImpl::AsValueInto(
state->EndDictionary();
}
state->EndArray();
+
+ state->BeginDictionary("can_have_tilings_state");
+ state->SetBoolean("can_have_tilings", CanHaveTilings());
+ state->SetBoolean("raster_source_solid_color",
+ raster_source_->IsSolidColor());
+ state->SetBoolean("draws_content", DrawsContent());
+ state->SetBoolean("raster_source_has_recordings",
+ raster_source_->HasRecordings());
+ state->SetDouble("max_contents_scale", MaximumTilingContentsScale());
+ state->SetDouble("min_contents_scale", MinimumContentsScale());
+ state->EndDictionary();
+
+ state->BeginDictionary("raster_scales");
+ state->SetDouble("page_scale", raster_page_scale_);
+ state->SetDouble("device_scale", raster_device_scale_);
+ state->SetDouble("source_scale", raster_source_scale_);
+ state->SetDouble("contents_scale", raster_contents_scale_);
+ state->SetDouble("low_res_contents_scale", low_res_raster_contents_scale_);
+ state->EndDictionary();
+
+ state->BeginDictionary("ideal_scales");
+ state->SetDouble("page_scale", ideal_page_scale_);
+ state->SetDouble("device_scale", ideal_device_scale_);
+ state->SetDouble("source_scale", ideal_source_scale_);
+ state->SetDouble("contents_scale", ideal_contents_scale_);
+ state->EndDictionary();
}
size_t PictureLayerImpl::GPUMemoryUsageInBytes() const {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698