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 | 5 |
6 #ifndef ContentLayerChromium_h | 6 #ifndef ContentLayerChromium_h |
7 #define ContentLayerChromium_h | 7 #define ContentLayerChromium_h |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "LayerPainterChromium.h" | 10 #include "LayerPainterChromium.h" |
11 #include "TiledLayerChromium.h" | 11 #include "TiledLayerChromium.h" |
12 | 12 |
13 class SkCanvas; | 13 class SkCanvas; |
14 | 14 |
15 namespace cc { | 15 namespace cc { |
16 | 16 |
17 class ContentLayerChromiumClient; | 17 class ContentLayerChromiumClient; |
18 class FloatRect; | 18 class FloatRect; |
19 class IntRect; | 19 class IntRect; |
20 class LayerTextureUpdater; | 20 class LayerTextureUpdater; |
21 | 21 |
22 class ContentLayerPainter : public LayerPainterChromium { | 22 class ContentLayerPainter : public LayerPainterChromium { |
23 public: | 23 public: |
24 static PassOwnPtr<ContentLayerPainter> create(ContentLayerChromiumClient*); | 24 static scoped_ptr<ContentLayerPainter> create(ContentLayerChromiumClient*); |
25 | 25 |
26 virtual void paint(SkCanvas*, const IntRect& contentRect, FloatRect& opaque)
OVERRIDE; | 26 virtual void paint(SkCanvas*, const IntRect& contentRect, FloatRect& opaque)
OVERRIDE; |
27 | 27 |
28 private: | 28 private: |
29 explicit ContentLayerPainter(ContentLayerChromiumClient*); | 29 explicit ContentLayerPainter(ContentLayerChromiumClient*); |
30 | 30 |
31 ContentLayerChromiumClient* m_client; | 31 ContentLayerChromiumClient* m_client; |
32 | 32 |
33 DISALLOW_COPY_AND_ASSIGN(ContentLayerPainter); | 33 DISALLOW_COPY_AND_ASSIGN(ContentLayerPainter); |
34 }; | 34 }; |
(...skipping 19 matching lines...) Expand all Loading... |
54 private: | 54 private: |
55 virtual LayerTextureUpdater* textureUpdater() const OVERRIDE; | 55 virtual LayerTextureUpdater* textureUpdater() const OVERRIDE; |
56 virtual void createTextureUpdaterIfNeeded() OVERRIDE; | 56 virtual void createTextureUpdaterIfNeeded() OVERRIDE; |
57 | 57 |
58 ContentLayerChromiumClient* m_client; | 58 ContentLayerChromiumClient* m_client; |
59 RefPtr<LayerTextureUpdater> m_textureUpdater; | 59 RefPtr<LayerTextureUpdater> m_textureUpdater; |
60 }; | 60 }; |
61 | 61 |
62 } | 62 } |
63 #endif | 63 #endif |
OLD | NEW |