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

Unified Diff: cc/playback/raster_source.cc

Issue 2425323002: Abort canvas analysis after a few operations are rejected (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/raster_source.cc
diff --git a/cc/playback/raster_source.cc b/cc/playback/raster_source.cc
index 0dc9c6c520cc2dcddf0e10b67562b76c795f80b7..c33b169cd3d6daad0aafb80ad4c8776804d880aa 100644
--- a/cc/playback/raster_source.cc
+++ b/cc/playback/raster_source.cc
@@ -224,6 +224,9 @@ bool RasterSource::PerformSolidColorAnalysis(const gfx::Rect& content_rect,
SkColor* color) const {
TRACE_EVENT0("cc", "RasterSource::PerformSolidColorAnalysis");
+ if (!display_list_->ShouldBeAnalyzedForSolidColor())
vmpstr 2016/10/18 23:31:33 That's not quite correct, since the given content_
Xianzhu 2016/10/19 01:27:53 For my test, this does avoid big cost when analyzi
+ return false;
+
gfx::Rect layer_rect =
gfx::ScaleToEnclosingRect(content_rect, 1.0f / contents_scale);
« 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