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

Unified Diff: cc/resources/picture.h

Issue 494503002: Expose IsSolidColor and write units tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Vmpstr's issues Created 6 years, 4 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/picture.cc » ('j') | cc/resources/picture.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture.h
diff --git a/cc/resources/picture.h b/cc/resources/picture.h
index 78833d17e9144c0721ec888d216af7e94577d2cb..db853aeb07c5a18141e9992e59b0b3118c6a84f7 100644
--- a/cc/resources/picture.h
+++ b/cc/resources/picture.h
@@ -74,6 +74,7 @@ class CC_EXPORT Picture
bool HasRecording() const { return picture_.get() != NULL; }
bool IsSuitableForGpuRasterization() const;
+ int GetApproximateOpCount() const;
enne (OOO) 2014/08/20 18:19:26 style nit: No need for "get" in a function name.
hendrikw 2014/08/20 20:46:55 vmpstr suggested the name :) I think Get improves
// Apply this scale and raster the negated region into the canvas.
// |negated_content_region| specifies the region to be clipped out of the
@@ -84,6 +85,8 @@ class CC_EXPORT Picture
const Region& negated_content_region,
float contents_scale);
+ void RasterForAnalysis(SkCanvas* canvas);
+
// Draw the picture directly into the given canvas, without applying any
// clip/scale/layer transformations.
void Replay(SkCanvas* canvas);
« no previous file with comments | « no previous file | cc/resources/picture.cc » ('j') | cc/resources/picture.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698