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-05-01 16:09:50 +0000
committerreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-01 16:09:50 +0000
commit2c1bcf9be2b87e72132d6706141b9ced52e1b2e6 (patch)
tree45b337fac1f7a986fa9482668bfb649706f0f8d8 /skia/ext/analysis_canvas.h
parent80e8d9617d5286af2b03f4ec5b0c5b95f0bb328f (diff)
downloadchromium_src-2c1bcf9be2b87e72132d6706141b9ced52e1b2e6.zip
chromium_src-2c1bcf9be2b87e72132d6706141b9ced52e1b2e6.tar.gz
chromium_src-2c1bcf9be2b87e72132d6706141b9ced52e1b2e6.tar.bz2
cc: Reduce special casing of transparent tiles.
This moves the transparent tile optimization down to the renderer and removes isTransparent() from AnalysisCanvas. Transparent becomes a special case of solid color. BUG=236590 Review URL: https://chromiumcodereview.appspot.com/14002021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197627 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/analysis_canvas.h')
-rw-r--r--skia/ext/analysis_canvas.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/skia/ext/analysis_canvas.h b/skia/ext/analysis_canvas.h
index 2d80ea0..3b6c15c 100644
--- a/skia/ext/analysis_canvas.h
+++ b/skia/ext/analysis_canvas.h
@@ -30,8 +30,8 @@ class SK_API AnalysisCanvas : public SkCanvas {
AnalysisCanvas(AnalysisDevice*);
virtual ~AnalysisCanvas();
+ // Returns true when a SkColor can be used to represent result.
bool getColorIfSolid(SkColor* color) const;
- bool isTransparent() const;
bool hasText() const;
void consumeLazyPixelRefs(LazyPixelRefList* pixelRefs);
@@ -69,7 +69,6 @@ class SK_API AnalysisDevice : public SkDevice {
virtual ~AnalysisDevice();
bool getColorIfSolid(SkColor* color) const;
- bool isTransparent() const;
bool hasText() const;
void consumeLazyPixelRefs(LazyPixelRefList* pixelRefs);