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

Unified Diff: cc/content_layer.h

Issue 11360093: Mark layers that can use LCD text based on layer transform and opacity. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reverted whitespace change Created 8 years 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
« no previous file with comments | « no previous file | cc/content_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/content_layer.h
diff --git a/cc/content_layer.h b/cc/content_layer.h
index 5505d85ffd33cc832798a5a8630584abb1a854de..125ea88bb2858f1fa73b008cc294dd2a86ff6d52 100644
--- a/cc/content_layer.h
+++ b/cc/content_layer.h
@@ -37,6 +37,7 @@ public:
static scoped_refptr<ContentLayer> create(ContentLayerClient*);
void clearClient() { m_client = 0; }
+ bool useLCDText() const { return m_useLCDText; }
virtual bool drawsContent() const OVERRIDE;
virtual void setTexturePriorities(const PriorityCalculator&) OVERRIDE;
@@ -53,8 +54,19 @@ private:
virtual LayerUpdater* updater() const OVERRIDE;
virtual void createUpdaterIfNeeded() OVERRIDE;
+ void updateUseLCDText();
+ // Called when LCD text setting is about to potentially change.
+ // If this function returns true, the setting is allowed to change.
+ // If it returns false, the setting is not changed.
+ bool useLCDTextWillChange() const;
+ void useLCDTextDidChange();
+
ContentLayerClient* m_client;
scoped_refptr<LayerUpdater> m_updater;
+
+ bool m_useLCDText;
+ int m_lcdTextChangeCount;
+ static const int kLCDTextMaxChangeCount;
};
}
« no previous file with comments | « no previous file | cc/content_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698