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