Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Unified Diff: skia/ext/analysis_canvas.h

Issue 13726013: Smart layer invalidation for LCD text. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: skia/ext/analysis_canvas.h
diff --git a/skia/ext/analysis_canvas.h b/skia/ext/analysis_canvas.h
index 3c2daafebd770f33ee1c437de68d7c9970b88078..4ebf793a9c997ea7a9724381364c646097701b4b 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;
enne (OOO) 2013/04/05 21:39:36 Is this file not in Chromium style?
alokp 2013/04/05 22:50:11 We seem to be following skia style in this file.
enne (OOO) 2013/04/05 22:58:12 Except hasText_ is not Skia style? At any rate, t
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_;
};
« no previous file with comments | « cc/resources/tile.h ('k') | skia/ext/analysis_canvas.cc » ('j') | skia/ext/analysis_canvas.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698