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

Unified Diff: cc/playback/recording_source.cc

Issue 1981503003: Correct DisplayItemList::ApproximateOpCount() for flattened picture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « cc/playback/display_item_list_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/recording_source.cc
diff --git a/cc/playback/recording_source.cc b/cc/playback/recording_source.cc
index a98a60ed75c9ef61ef34201f2de905efcdf31a80..feaae8807570e375de7348471d7fa2999721a920 100644
--- a/cc/playback/recording_source.cc
+++ b/cc/playback/recording_source.cc
@@ -104,6 +104,7 @@ void RecordingSource::UpdateInvalidationForNewViewport(
}
void RecordingSource::FinishDisplayItemListUpdate() {
+ TRACE_EVENT0("cc", "RecordingSource::FinishDisplayItemListUpdate");
DetermineIfSolidColor();
display_list_->EmitTraceSnapshot();
if (generate_discardable_images_metadata_)
@@ -227,6 +228,8 @@ void RecordingSource::DetermineIfSolidColor() {
if (!display_list_->ShouldBeAnalyzedForSolidColor())
return;
+ TRACE_EVENT1("cc", "RecordingSource::DetermineIfSolidColor", "opcount",
+ display_list_->ApproximateOpCount());
gfx::Size layer_size = GetSize();
skia::AnalysisCanvas canvas(layer_size.width(), layer_size.height());
display_list_->Raster(&canvas, nullptr, gfx::Rect(), 1.f);
« no previous file with comments | « cc/playback/display_item_list_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698