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

Unified Diff: cc/resources/picture_pile_impl.cc

Issue 213093003: cc: Skip analysis for narrow layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | cc/resources/tile_manager.cc » ('j') | cc/resources/tile_manager.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_pile_impl.cc
diff --git a/cc/resources/picture_pile_impl.cc b/cc/resources/picture_pile_impl.cc
index 2e771faca8071bf58e45cb03493d7192afaaf30c..757bb73e7dad8ba26ad1b660638a6b997cd9ba44 100644
--- a/cc/resources/picture_pile_impl.cc
+++ b/cc/resources/picture_pile_impl.cc
@@ -376,10 +376,7 @@ void PicturePileImpl::AnalyzeInRect(
analysis->has_text = canvas.HasText();
}
-PicturePileImpl::Analysis::Analysis()
- : is_solid_color(false),
- has_text(false) {
-}
+PicturePileImpl::Analysis::Analysis() : is_solid_color(false), has_text(true) {}
alokp 2014/03/27 05:20:45 Please add a comment why the default value is true
vmpstr 2014/03/27 17:02:53 Done.
PicturePileImpl::Analysis::~Analysis() {
}
« no previous file with comments | « no previous file | cc/resources/tile_manager.cc » ('j') | cc/resources/tile_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698