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

Unified Diff: cc/picture_pile_impl.h

Issue 12316084: cc: Consolidate the analysis_canvas operations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changed analysis location Created 7 years, 10 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
Index: cc/picture_pile_impl.h
diff --git a/cc/picture_pile_impl.h b/cc/picture_pile_impl.h
index 157f9e21e6280d5a7a8ae423145caa45d92af43b..7e637ad83858bfe40dd486042c668043ed576aa3 100644
--- a/cc/picture_pile_impl.h
+++ b/cc/picture_pile_impl.h
@@ -49,7 +49,18 @@ class CC_EXPORT PicturePileImpl : public PicturePileBase {
slow_down_raster_scale_factor_for_debug_ = factor;
}
- bool IsCheapInRect(gfx::Rect content_rect, float contents_scale) const;
+ struct Analysis {
+ Analysis();
+
+ bool is_solid_color;
+ bool is_transparent;
Sami 2013/03/05 20:18:31 Could we call this something like is_empty instead
+ bool is_cheap_to_raster;
+ SkColor solid_color;
+ };
+
+ void AnalyzeInRect(const gfx::Rect& content_rect,
+ float contents_scale,
+ Analysis* analysis);
protected:
friend class PicturePile;
« no previous file with comments | « cc/picture_layer_tiling_set.cc ('k') | cc/picture_pile_impl.cc » ('j') | cc/picture_pile_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698