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

Unified Diff: cc/playback/recording_source.cc

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. 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 | « cc/playback/raster_source_unittest.cc ('k') | cc/playback/recording_source_unittest.cc » ('j') | 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 f1f4d3780cf1cefdccf6e07ba1f9af5aa63bf2fa..367dbc7ebfc32b9b4faadd1eb62e810cb876be98 100644
--- a/cc/playback/recording_source.cc
+++ b/cc/playback/recording_source.cc
@@ -156,9 +156,10 @@ void RecordingSource::DetermineIfSolidColor() {
TRACE_EVENT1("cc", "RecordingSource::DetermineIfSolidColor", "opcount",
display_list_->ApproximateOpCount());
gfx::Size layer_size = GetSize();
- skia::AnalysisCanvas canvas(layer_size.width(), layer_size.height());
+ skia::AnalysisCanvas sk_canvas(layer_size.width(), layer_size.height());
+ CdlPassThroughCanvas canvas(&sk_canvas);
display_list_->Raster(&canvas, nullptr, gfx::Rect(layer_size), 1.f);
- is_solid_color_ = canvas.GetColorIfSolid(&solid_color_);
+ is_solid_color_ = sk_canvas.GetColorIfSolid(&solid_color_);
}
} // namespace cc
« no previous file with comments | « cc/playback/raster_source_unittest.cc ('k') | cc/playback/recording_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698