summaryrefslogtreecommitdiffstats
path: root/skia/ext/analysis_canvas.h
diff options
context:
space:
mode:
authoralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-08 22:45:18 +0000
committeralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-08 22:45:18 +0000
commit58838bf7106c6f2a0c75af275e7b60bd1faea3d6 (patch)
tree1fc2954fb35830073ffcee016d50d3d22fe29624 /skia/ext/analysis_canvas.h
parent1389a03f1ac25bf7e80fb88cdbff5e48abd875a1 (diff)
downloadchromium_src-58838bf7106c6f2a0c75af275e7b60bd1faea3d6.zip
chromium_src-58838bf7106c6f2a0c75af275e7b60bd1faea3d6.tar.gz
chromium_src-58838bf7106c6f2a0c75af275e7b60bd1faea3d6.tar.bz2
Smart layer invalidation for LCD text.
When LCD text needs to be disabled for a layer, we can invalidate just the tiles containing text. This only works with impl-side painting where it is very cheap to mark tiles that have text. BUG=181245 Review URL: https://chromiumcodereview.appspot.com/13726013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192936 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/analysis_canvas.h')
-rw-r--r--skia/ext/analysis_canvas.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/skia/ext/analysis_canvas.h b/skia/ext/analysis_canvas.h
index 3c2daaf..4ebf793 100644
--- a/skia/ext/analysis_canvas.h
+++ b/skia/ext/analysis_canvas.h
@@ -35,6 +35,7 @@ class SK_API AnalysisCanvas : public SkCanvas {
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.
@@ -76,6 +77,7 @@ class SK_API AnalysisDevice : public SkDevice {
int getEstimatedCost() const;
bool getColorIfSolid(SkColor* color) const;
bool isTransparent() const;
+ bool hasText() const;
void consumeLazyPixelRefs(LazyPixelRefList* pixelRefs);
void setForceNotSolid(bool flag);
@@ -144,6 +146,7 @@ class SK_API AnalysisDevice : public SkDevice {
bool isSolidColor_;
SkColor color_;
bool isTransparent_;
+ bool hasText_;
IdSet existingPixelRefIDs_;
LazyPixelRefList lazyPixelRefs_;
};