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

Unified Diff: cc/picture.h

Issue 12316084: cc: Consolidate the analysis_canvas operations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed unittest 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.h
diff --git a/cc/picture.h b/cc/picture.h
index 118bcb39a5c4fc32a241335e8fde1290cb6190ff..4f753214a243690f7c6ab8a0c22d6da52bfa75a6 100644
--- a/cc/picture.h
+++ b/cc/picture.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "cc/cc_export.h"
+#include "skia/ext/analysis_canvas.h"
Tom Hudson 2013/02/27 14:49:36 We only need a forward decl here, not a full #incl
#include "skia/ext/lazy_pixel_ref.h"
#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkPicture.h"
@@ -42,10 +43,13 @@ class CC_EXPORT Picture
// Apply this contents scale and raster the content rect into the canvas.
void Raster(SkCanvas* canvas, gfx::Rect content_rect, float contents_scale);
- // Estimate the cost of rasterizing. To predict the cost of a particular
- // call to Raster(), pass this the bounds of the canvas that will
- // be rastered into.
- bool IsCheapInRect(const gfx::Rect& layer_rect) const;
+ void AnalyzeInRect(skia::AnalysisCanvas* canvas,
Tom Hudson 2013/02/27 14:49:36 How many more out args before we just wrap them in
+ const gfx::Rect& content_rect,
+ float contents_scale,
+ bool* is_solid,
+ SkColor* solid_color,
+ bool* is_transparent,
+ bool* is_cheap);
void GatherPixelRefs(
const gfx::Rect& layer_rect,
« no previous file with comments | « cc/layer_tree_settings.cc ('k') | cc/picture.cc » ('j') | cc/picture_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698