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 | 11 |
12 namespace WebKit { | 12 namespace WebKit { |
13 | 13 |
14 class WebLayerImpl; | 14 class WebLayerImpl; |
15 | 15 |
16 class WebExternalTextureLayerImpl : public WebExternalTextureLayer, | 16 class WebExternalTextureLayerImpl : public WebExternalTextureLayer, |
17 public cc::TextureLayerChromiumClient { | 17 public cc::TextureLayerClient { |
18 public: | 18 public: |
19 explicit WebExternalTextureLayerImpl(WebExternalTextureLayerClient*); | 19 explicit WebExternalTextureLayerImpl(WebExternalTextureLayerClient*); |
20 virtual ~WebExternalTextureLayerImpl(); | 20 virtual ~WebExternalTextureLayerImpl(); |
21 | 21 |
22 // WebExternalTextureLayer implementation. | 22 // WebExternalTextureLayer implementation. |
23 virtual WebLayer* layer() OVERRIDE; | 23 virtual WebLayer* layer() OVERRIDE; |
24 virtual void setTextureId(unsigned) OVERRIDE; | 24 virtual void setTextureId(unsigned) OVERRIDE; |
25 virtual void setFlipped(bool) OVERRIDE; | 25 virtual void setFlipped(bool) OVERRIDE; |
26 virtual void setUVRect(const WebFloatRect&) OVERRIDE; | 26 virtual void setUVRect(const WebFloatRect&) OVERRIDE; |
27 virtual void setOpaque(bool) OVERRIDE; | 27 virtual void setOpaque(bool) OVERRIDE; |
28 virtual void setPremultipliedAlpha(bool) OVERRIDE; | 28 virtual void setPremultipliedAlpha(bool) OVERRIDE; |
29 virtual void willModifyTexture() OVERRIDE; | 29 virtual void willModifyTexture() OVERRIDE; |
30 virtual void setRateLimitContext(bool) OVERRIDE; | 30 virtual void setRateLimitContext(bool) OVERRIDE; |
31 | 31 |
32 // TextureLayerChromiumClient implementation. | 32 // TextureLayerClient implementation. |
33 virtual unsigned prepareTexture(cc::CCTextureUpdateQueue&) OVERRIDE; | 33 virtual unsigned prepareTexture(cc::TextureUpdateQueue&) OVERRIDE; |
34 virtual WebGraphicsContext3D* context() OVERRIDE; | 34 virtual WebGraphicsContext3D* context() OVERRIDE; |
35 | 35 |
36 private: | 36 private: |
37 WebExternalTextureLayerClient* m_client; | 37 WebExternalTextureLayerClient* m_client; |
38 scoped_ptr<WebLayerImpl> m_layer; | 38 scoped_ptr<WebLayerImpl> m_layer; |
39 }; | 39 }; |
40 | 40 |
41 } | 41 } |
42 | 42 |
43 #endif // WebExternalTextureLayerImpl_h | 43 #endif // WebExternalTextureLayerImpl_h |
OLD | NEW |