| 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" |
| 11 #include "cc/tiled_layer.h" | 11 #include "cc/tiled_layer.h" |
| 12 | 12 |
| 13 class SkCanvas; | 13 class SkCanvas; |
| 14 | 14 |
| 15 namespace cc { | 15 namespace cc { |
| 16 | 16 |
| 17 class ContentLayerClient; | 17 class ContentLayerClient; |
| 18 class LayerUpdater; | 18 class LayerUpdater; |
| 19 | 19 |
| 20 class CC_EXPORT ContentLayerPainter : public LayerPainter { | 20 class CC_EXPORT ContentLayerPainter : public LayerPainter { |
| 21 public: | 21 public: |
| 22 static scoped_ptr<ContentLayerPainter> create(ContentLayerClient*); | 22 static scoped_ptr<ContentLayerPainter> create(ContentLayerClient*); |
| 23 | 23 |
| 24 virtual void paint(SkCanvas*, const gfx::Rect& contentRect, gfx::RectF& opaq
ue) OVERRIDE; | 24 virtual void paint(SkCanvas*, gfx::Rect contentRect, gfx::RectF& opaque) OVE
RRIDE; |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 explicit ContentLayerPainter(ContentLayerClient*); | 27 explicit ContentLayerPainter(ContentLayerClient*); |
| 28 | 28 |
| 29 ContentLayerClient* m_client; | 29 ContentLayerClient* m_client; |
| 30 | 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(ContentLayerPainter); | 31 DISALLOW_COPY_AND_ASSIGN(ContentLayerPainter); |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 // A layer that renders its contents into an SkCanvas. | 34 // A layer that renders its contents into an SkCanvas. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 64 ContentLayerClient* m_client; | 64 ContentLayerClient* m_client; |
| 65 scoped_refptr<LayerUpdater> m_updater; | 65 scoped_refptr<LayerUpdater> m_updater; |
| 66 | 66 |
| 67 bool m_useLCDText; | 67 bool m_useLCDText; |
| 68 int m_lcdTextChangeCount; | 68 int m_lcdTextChangeCount; |
| 69 static const int kLCDTextMaxChangeCount; | 69 static const int kLCDTextMaxChangeCount; |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 } | 72 } |
| 73 #endif // CC_CONTENT_LAYER_H_ | 73 #endif // CC_CONTENT_LAYER_H_ |
| OLD | NEW |