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

Unified Diff: cc/resources/display_list_recording_source.cc

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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/quads/tile_draw_quad.cc ('k') | cc/resources/eviction_tile_priority_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/display_list_recording_source.cc
diff --git a/cc/resources/display_list_recording_source.cc b/cc/resources/display_list_recording_source.cc
index 3c0e0e4c74272e0a5b7037931079dc6c65028cd3..ab4c64692cf42a4446dba4685649d0286d8fc36f 100644
--- a/cc/resources/display_list_recording_source.cc
+++ b/cc/resources/display_list_recording_source.cc
@@ -142,9 +142,8 @@ void DisplayListRecordingSource::DetermineIfSolidColor() {
if (display_list_->ApproximateOpCount() > kOpCountThatIsOkToAnalyze)
return;
- skia::AnalysisCanvas canvas(recorded_viewport_.width(),
- recorded_viewport_.height());
- canvas.translate(-recorded_viewport_.x(), -recorded_viewport_.y());
+ gfx::Size layer_size = GetSize();
+ skia::AnalysisCanvas canvas(layer_size.width(), layer_size.height());
display_list_->Raster(&canvas, nullptr, 1.f);
is_solid_color_ = canvas.GetColorIfSolid(&solid_color_);
}
« no previous file with comments | « cc/quads/tile_draw_quad.cc ('k') | cc/resources/eviction_tile_priority_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698