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 TextureLayerChromium_h | 5 #ifndef TextureLayerChromium_h |
6 #define TextureLayerChromium_h | 6 #define TextureLayerChromium_h |
7 | 7 |
| 8 #include "cc/cc_export.h" |
8 #include "cc/layer.h" | 9 #include "cc/layer.h" |
9 | 10 |
10 namespace WebKit { | 11 namespace WebKit { |
11 class WebGraphicsContext3D; | 12 class WebGraphicsContext3D; |
12 } | 13 } |
13 | 14 |
14 namespace cc { | 15 namespace cc { |
15 | 16 |
16 class TextureLayerClient; | 17 class TextureLayerClient; |
17 | 18 |
18 // A Layer containing a the rendered output of a plugin instance. | 19 // A Layer containing a the rendered output of a plugin instance. |
19 class TextureLayer : public Layer { | 20 class CC_EXPORT TextureLayer : public Layer { |
20 public: | 21 public: |
21 // If this texture layer requires special preparation logic for each frame d
riven by | 22 // If this texture layer requires special preparation logic for each frame d
riven by |
22 // the compositor, pass in a non-nil client. Pass in a nil client pointer if
texture updates | 23 // the compositor, pass in a non-nil client. Pass in a nil client pointer if
texture updates |
23 // are driven by an external process. | 24 // are driven by an external process. |
24 static scoped_refptr<TextureLayer> create(TextureLayerClient*); | 25 static scoped_refptr<TextureLayer> create(TextureLayerClient*); |
25 | 26 |
26 void clearClient() { m_client = 0; } | 27 void clearClient() { m_client = 0; } |
27 | 28 |
28 virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE; | 29 virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE; |
29 | 30 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 bool m_premultipliedAlpha; | 66 bool m_premultipliedAlpha; |
66 bool m_rateLimitContext; | 67 bool m_rateLimitContext; |
67 bool m_contextLost; | 68 bool m_contextLost; |
68 bool m_contentCommitted; | 69 bool m_contentCommitted; |
69 | 70 |
70 unsigned m_textureId; | 71 unsigned m_textureId; |
71 }; | 72 }; |
72 | 73 |
73 } | 74 } |
74 #endif | 75 #endif |
OLD | NEW |