OLD | NEW |
---|---|
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_CONTENT_LAYER_H_ | 5 #ifndef CC_CONTENT_LAYER_H_ |
6 #define CC_CONTENT_LAYER_H_ | 6 #define CC_CONTENT_LAYER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "cc/cc_export.h" | 9 #include "cc/cc_export.h" |
10 #include "cc/layer_painter.h" | 10 #include "cc/layer_painter.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
46 virtual void setContentsOpaque(bool) OVERRIDE; | 46 virtual void setContentsOpaque(bool) OVERRIDE; |
47 | 47 |
48 protected: | 48 protected: |
49 explicit ContentLayer(ContentLayerClient*); | 49 explicit ContentLayer(ContentLayerClient*); |
50 virtual ~ContentLayer(); | 50 virtual ~ContentLayer(); |
51 | 51 |
52 private: | 52 private: |
53 virtual LayerUpdater* updater() const OVERRIDE; | 53 virtual LayerUpdater* updater() const OVERRIDE; |
54 virtual void createUpdaterIfNeeded() OVERRIDE; | 54 virtual void createUpdaterIfNeeded() OVERRIDE; |
55 | 55 |
56 void syncCanUseLCDText(); | |
57 // Called when LCD text setting is about to potentially change. | |
58 // If this function returns true, the setting is allowed to change. | |
59 // If it returns false, the setting is not changed. | |
60 bool canUseLCDTextWillChange() const; | |
61 void canUseLCDTextDidChange(); | |
62 | |
56 ContentLayerClient* m_client; | 63 ContentLayerClient* m_client; |
57 scoped_refptr<LayerUpdater> m_updater; | 64 scoped_refptr<LayerUpdater> m_updater; |
65 | |
66 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.
| |
67 int m_lcdTextChangeCount; | |
68 static const int kLCDTextMaxChangeCount; | |
58 }; | 69 }; |
59 | 70 |
60 } | 71 } |
61 #endif // CC_CONTENT_LAYER_H_ | 72 #endif // CC_CONTENT_LAYER_H_ |
OLD | NEW |