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

Unified Diff: skia/ext/analysis_canvas.h

Issue 418093003: skia/ext: Early out from analysis when we have more than 1 draw op. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added a todo Created 6 years, 5 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 | skia/ext/analysis_canvas.cc » ('j') | skia/ext/analysis_canvas.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/analysis_canvas.h
diff --git a/skia/ext/analysis_canvas.h b/skia/ext/analysis_canvas.h
index b3e5275c0432dee64385b17f2c4d0e816a762516..475947d75ab52968689ac5a03a3b7b9e34869513 100644
--- a/skia/ext/analysis_canvas.h
+++ b/skia/ext/analysis_canvas.h
@@ -22,7 +22,6 @@ class SK_API AnalysisCanvas : public SkCanvas, public SkDrawPictureCallback {
// Returns true when a SkColor can be used to represent result.
bool GetColorIfSolid(SkColor* color) const;
- bool HasText() const;
void SetForceNotSolid(bool flag);
void SetForceNotTransparent(bool flag);
@@ -121,7 +120,7 @@ private:
bool is_solid_color_;
SkColor color_;
bool is_transparent_;
- bool has_text_;
+ int draw_op_count_;
};
} // namespace skia
« no previous file with comments | « no previous file | skia/ext/analysis_canvas.cc » ('j') | skia/ext/analysis_canvas.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698