diff options
author | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-06 06:28:14 +0000 |
---|---|---|
committer | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-06 06:28:14 +0000 |
commit | 9693753d30fd8b0b4d5fcf2caa9ca148d67b3f8d (patch) | |
tree | c29e616bcc175c5f58136e2b4376342519f70e36 /skia/ext/analysis_canvas.h | |
parent | 1a3d726c4ca20def7a0571a508aa5dac896aa2d6 (diff) | |
download | chromium_src-9693753d30fd8b0b4d5fcf2caa9ca148d67b3f8d.zip chromium_src-9693753d30fd8b0b4d5fcf2caa9ca148d67b3f8d.tar.gz chromium_src-9693753d30fd8b0b4d5fcf2caa9ca148d67b3f8d.tar.bz2 |
skia: Remove gather pixel refs from AnalysisCanvas.
The compositor is no longer using this so it's just adding
unnecessary overhead to the analysis.
BUG=237514
Review URL: https://chromiumcodereview.appspot.com/14652015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198390 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/analysis_canvas.h')
-rw-r--r-- | skia/ext/analysis_canvas.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/skia/ext/analysis_canvas.h b/skia/ext/analysis_canvas.h index 3b6c15c..67151d3 100644 --- a/skia/ext/analysis_canvas.h +++ b/skia/ext/analysis_canvas.h @@ -5,11 +5,6 @@ #ifndef SKIA_EXT_ANALYSIS_CANVAS_H_ #define SKIA_EXT_ANALYSIS_CANVAS_H_ -#include <list> -#include <set> - -#include "base/hash_tables.h" -#include "skia/ext/lazy_pixel_ref.h" #include "third_party/skia/include/core/SkCanvas.h" #include "third_party/skia/include/core/SkDevice.h" @@ -25,15 +20,12 @@ class AnalysisDevice; // Play a picture into the canvas, and then check result. class SK_API AnalysisCanvas : public SkCanvas { public: - typedef std::list<skia::LazyPixelRef*> LazyPixelRefList; - AnalysisCanvas(AnalysisDevice*); virtual ~AnalysisCanvas(); // Returns true when a SkColor can be used to represent result. bool getColorIfSolid(SkColor* color) const; bool hasText() const; - void consumeLazyPixelRefs(LazyPixelRefList* pixelRefs); virtual bool clipRect(const SkRect& rect, SkRegion::Op op = SkRegion::kIntersect_Op, @@ -62,15 +54,11 @@ class SK_API AnalysisCanvas : public SkCanvas { class SK_API AnalysisDevice : public SkDevice { public: - typedef std::list<skia::LazyPixelRef*> LazyPixelRefList; - typedef base::hash_set<uint32_t> IdSet; - AnalysisDevice(const SkBitmap& bm); virtual ~AnalysisDevice(); bool getColorIfSolid(SkColor* color) const; bool hasText() const; - void consumeLazyPixelRefs(LazyPixelRefList* pixelRefs); void setForceNotSolid(bool flag); void setForceNotTransparent(bool flag); @@ -127,18 +115,12 @@ class SK_API AnalysisDevice : public SkDevice { typedef SkDevice INHERITED; - void addPixelRefIfLazy(SkPixelRef* pixelRef); - void addBitmap(const SkBitmap& bitmap); - void addBitmapFromPaint(const SkPaint& paint); - bool isForcedNotSolid_; bool isForcedNotTransparent_; bool isSolidColor_; SkColor color_; bool isTransparent_; bool hasText_; - IdSet existingPixelRefIDs_; - LazyPixelRefList lazyPixelRefs_; }; } // namespace skia |