OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 WebExternalTextureLayerImpl_h | 5 #ifndef WebExternalTextureLayerImpl_h |
6 #define WebExternalTextureLayerImpl_h | 6 #define WebExternalTextureLayerImpl_h |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "cc/texture_layer_client.h" | 9 #include "cc/texture_layer_client.h" |
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebExternalTextureL
ayer.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebExternalTextureL
ayer.h" |
| 11 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h" |
11 | 12 |
12 namespace WebKit { | 13 namespace WebKit { |
13 | 14 |
14 class WebLayerImpl; | 15 class WebLayerImpl; |
15 | 16 |
16 class WebExternalTextureLayerImpl : public WebExternalTextureLayer, | 17 class WebExternalTextureLayerImpl : public WebExternalTextureLayer, |
17 public cc::TextureLayerClient { | 18 public cc::TextureLayerClient { |
18 public: | 19 public: |
19 explicit WebExternalTextureLayerImpl(WebExternalTextureLayerClient*); | 20 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebExternalTextureLayerImpl( |
| 21 WebExternalTextureLayerClient*); |
20 virtual ~WebExternalTextureLayerImpl(); | 22 virtual ~WebExternalTextureLayerImpl(); |
21 | 23 |
22 // WebExternalTextureLayer implementation. | 24 // WebExternalTextureLayer implementation. |
23 virtual WebLayer* layer() OVERRIDE; | 25 virtual WebLayer* layer() OVERRIDE; |
24 virtual void setTextureId(unsigned) OVERRIDE; | 26 virtual void setTextureId(unsigned) OVERRIDE; |
25 virtual void setFlipped(bool) OVERRIDE; | 27 virtual void setFlipped(bool) OVERRIDE; |
26 virtual void setUVRect(const WebFloatRect&) OVERRIDE; | 28 virtual void setUVRect(const WebFloatRect&) OVERRIDE; |
27 virtual void setOpaque(bool) OVERRIDE; | 29 virtual void setOpaque(bool) OVERRIDE; |
28 virtual void setPremultipliedAlpha(bool) OVERRIDE; | 30 virtual void setPremultipliedAlpha(bool) OVERRIDE; |
29 virtual void willModifyTexture() OVERRIDE; | 31 virtual void willModifyTexture() OVERRIDE; |
30 virtual void setRateLimitContext(bool) OVERRIDE; | 32 virtual void setRateLimitContext(bool) OVERRIDE; |
31 | 33 |
32 // TextureLayerClient implementation. | 34 // TextureLayerClient implementation. |
33 virtual unsigned prepareTexture(cc::ResourceUpdateQueue&) OVERRIDE; | 35 virtual unsigned prepareTexture(cc::ResourceUpdateQueue&) OVERRIDE; |
34 virtual WebGraphicsContext3D* context() OVERRIDE; | 36 virtual WebGraphicsContext3D* context() OVERRIDE; |
35 | 37 |
36 private: | 38 private: |
37 WebExternalTextureLayerClient* m_client; | 39 WebExternalTextureLayerClient* m_client; |
38 scoped_ptr<WebLayerImpl> m_layer; | 40 scoped_ptr<WebLayerImpl> m_layer; |
39 }; | 41 }; |
40 | 42 |
41 } | 43 } |
42 | 44 |
43 #endif // WebExternalTextureLayerImpl_h | 45 #endif // WebExternalTextureLayerImpl_h |
OLD | NEW |