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

Unified Diff: cc/resources/picture.cc

Issue 494503002: Expose IsSolidColor and write units tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a mac specific build break 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 | « cc/resources/picture.h ('k') | cc/resources/picture_pile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture.cc
diff --git a/cc/resources/picture.cc b/cc/resources/picture.cc
index 06e9cc93f1455390870be13579fda9950ba4ac64..5be80b150271efa396716e3c114e610bb606eab1 100644
--- a/cc/resources/picture.cc
+++ b/cc/resources/picture.cc
@@ -203,6 +203,11 @@ bool Picture::IsSuitableForGpuRasterization() const {
return picture_->suitableForGpuRasterization(NULL);
}
+int Picture::ApproximateOpCount() const {
+ DCHECK(picture_);
+ return picture_->approximateOpCount();
+}
+
bool Picture::HasText() const {
DCHECK(picture_);
return picture_->hasText();
« no previous file with comments | « cc/resources/picture.h ('k') | cc/resources/picture_pile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698