summaryrefslogtreecommitdiffstats
path: root/skia/ext/analysis_canvas.h
diff options
context:
space:
mode:
authorreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-29 19:15:31 +0000
committerreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-29 19:15:31 +0000
commit670075650836296e023acf7bd77383fefc08e493 (patch)
tree138a3874c26c56e295054d2942514136a60bdb39 /skia/ext/analysis_canvas.h
parent7060d65997d7b88b05137c70b1b509fbcafb0850 (diff)
downloadchromium_src-670075650836296e023acf7bd77383fefc08e493.zip
chromium_src-670075650836296e023acf7bd77383fefc08e493.tar.gz
chromium_src-670075650836296e023acf7bd77383fefc08e493.tar.bz2
cc: Remove cheapness estimator from AnalysisCanvas.
BUG=235995 Review URL: https://chromiumcodereview.appspot.com/13901018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197101 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/analysis_canvas.h')
-rw-r--r--skia/ext/analysis_canvas.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/skia/ext/analysis_canvas.h b/skia/ext/analysis_canvas.h
index 4ebf793..2d80ea0 100644
--- a/skia/ext/analysis_canvas.h
+++ b/skia/ext/analysis_canvas.h
@@ -22,7 +22,7 @@ class AnalysisDevice;
// played back through it.
// To use: create a SkBitmap with kNo_Config, create an AnalysisDevice
// using that bitmap, and create an AnalysisCanvas using the device.
-// Play a picture into the canvas, and then check isCheap().
+// Play a picture into the canvas, and then check result.
class SK_API AnalysisCanvas : public SkCanvas {
public:
typedef std::list<skia::LazyPixelRef*> LazyPixelRefList;
@@ -30,17 +30,11 @@ class SK_API AnalysisCanvas : public SkCanvas {
AnalysisCanvas(AnalysisDevice*);
virtual ~AnalysisCanvas();
- // Returns true if the estimated cost of drawing is below an
- // arbitrary threshold.
- bool isCheap() const;
bool getColorIfSolid(SkColor* color) const;
bool isTransparent() const;
bool hasText() const;
void consumeLazyPixelRefs(LazyPixelRefList* pixelRefs);
- // Returns the estimated cost of drawing, in arbitrary units.
- int getEstimatedCost() const;
-
virtual bool clipRect(const SkRect& rect,
SkRegion::Op op = SkRegion::kIntersect_Op,
bool doAntiAlias = false) OVERRIDE;
@@ -74,7 +68,6 @@ class SK_API AnalysisDevice : public SkDevice {
AnalysisDevice(const SkBitmap& bm);
virtual ~AnalysisDevice();
- int getEstimatedCost() const;
bool getColorIfSolid(SkColor* color) const;
bool isTransparent() const;
bool hasText() const;
@@ -131,8 +124,6 @@ class SK_API AnalysisDevice : public SkDevice {
virtual void drawDevice(const SkDraw&, SkDevice*, int x, int y,
const SkPaint&) OVERRIDE;
- int estimatedCost_;
-
private:
typedef SkDevice INHERITED;