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; |