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

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: addressed comments 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') | cc/content_layer.cc » ('J')
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..3090cb9b6640e83e614410a1e282bf7c1ecf6d6b 100644
--- a/cc/content_layer.h
+++ b/cc/content_layer.h
@@ -53,8 +53,19 @@ private:
virtual LayerUpdater* updater() const OVERRIDE;
virtual void createUpdaterIfNeeded() OVERRIDE;
+ void syncCanUseLCDText();
+ // 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 canUseLCDTextWillChange() const;
+ void canUseLCDTextDidChange();
+
ContentLayerClient* m_client;
scoped_refptr<LayerUpdater> m_updater;
+
+ bool m_canUseLCDText;
enne (OOO) 2012/12/12 17:56:52 You need to initialize this in the constructor.
alokp 2012/12/12 19:03:04 Done.
+ int m_lcdTextChangeCount;
+ static const int kLCDTextMaxChangeCount;
};
}
« no previous file with comments | « no previous file | cc/content_layer.cc » ('j') | cc/content_layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698