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