Chromium Code Reviews| Index: skia/ext/analysis_canvas.h |
| diff --git a/skia/ext/analysis_canvas.h b/skia/ext/analysis_canvas.h |
| index e2eedd2fddd121f3209682b35a240278b3b4a736..d4d3c50559e6bf225ef73bb2765427ce943392b1 100644 |
| --- a/skia/ext/analysis_canvas.h |
| +++ b/skia/ext/analysis_canvas.h |
| @@ -26,6 +26,8 @@ class SK_API AnalysisCanvas : public SkCanvas { |
| // Returns true if the estimated cost of drawing is below an |
| // arbitrary threshold. |
| bool isCheap() const; |
| + bool getColorIfSolid(SkColor* color) const; |
| + bool isTransparent() const; |
| // Returns the estimated cost of drawing, in arbitrary units. |
| int getEstimatedCost() const; |
| @@ -42,8 +44,13 @@ class SK_API AnalysisCanvas : public SkCanvas { |
| virtual int saveLayer(const SkRect* bounds, const SkPaint*, |
| SkCanvas::SaveFlags flags) OVERRIDE; |
| + |
| + virtual void restore() OVERRIDE; |
| + |
| private: |
| typedef SkCanvas INHERITED; |
| + |
| + int saveDepth_; |
|
Tom Hudson
2013/02/25 17:16:04
Not clear from the name what this does.
|
| }; |
| class SK_API AnalysisDevice : public SkDevice { |
| @@ -52,6 +59,10 @@ class SK_API AnalysisDevice : public SkDevice { |
| virtual ~AnalysisDevice(); |
| int getEstimatedCost() const; |
| + bool getColorIfSolid(SkColor* color) const; |
| + bool isTransparent() const; |
| + |
| + void setForceNotSolid(bool flag); |
| protected: |
| virtual void clear(SkColor color) OVERRIDE; |
| @@ -105,6 +116,10 @@ class SK_API AnalysisDevice : public SkDevice { |
| private: |
| typedef SkDevice INHERITED; |
| + |
| + bool isForcedNotSolid_; |
| + bool isSolidColor_; |
| + SkColor color_; |
| }; |
| } // namespace skia |