Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(592)

Side by Side Diff: webkit/compositor_bindings/web_external_texture_layer_impl.h

Issue 12481008: Remove cross-repo OVERRIDE annotations and IWYU-ify comp bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix forward decl in web_float_animation_curve_impl.h Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h"
12 12
13 namespace WebKit { 13 namespace WebKit {
14 14
15 class WebLayerImpl; 15 class WebLayerImpl;
16 struct WebFloatRect;
16 17
17 class WebExternalTextureLayerImpl : public WebExternalTextureLayer, 18 class WebExternalTextureLayerImpl : public WebExternalTextureLayer,
18 public cc::TextureLayerClient { 19 public cc::TextureLayerClient {
19 public: 20 public:
20 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebExternalTextureLayerImpl( 21 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebExternalTextureLayerImpl(
21 WebExternalTextureLayerClient*); 22 WebExternalTextureLayerClient*);
22 virtual ~WebExternalTextureLayerImpl(); 23 virtual ~WebExternalTextureLayerImpl();
23 24
24 // WebExternalTextureLayer implementation. 25 // WebExternalTextureLayer implementation.
25 virtual WebLayer* layer() OVERRIDE; 26 virtual WebLayer* layer();
26 virtual void setTextureId(unsigned) OVERRIDE; 27 virtual void setTextureId(unsigned);
27 virtual void setFlipped(bool) OVERRIDE; 28 virtual void setFlipped(bool);
28 virtual void setUVRect(const WebFloatRect&) OVERRIDE; 29 virtual void setUVRect(const WebFloatRect&);
29 virtual void setOpaque(bool) OVERRIDE; 30 virtual void setOpaque(bool);
30 virtual void setPremultipliedAlpha(bool) OVERRIDE; 31 virtual void setPremultipliedAlpha(bool);
31 virtual void willModifyTexture() OVERRIDE; 32 virtual void willModifyTexture();
32 virtual void setRateLimitContext(bool) OVERRIDE; 33 virtual void setRateLimitContext(bool);
33 34
34 // TextureLayerClient implementation. 35 // TextureLayerClient implementation.
35 virtual unsigned prepareTexture(cc::ResourceUpdateQueue&) OVERRIDE; 36 virtual unsigned prepareTexture(cc::ResourceUpdateQueue&) OVERRIDE;
36 virtual WebGraphicsContext3D* context() OVERRIDE; 37 virtual WebGraphicsContext3D* context() OVERRIDE;
37 38
38 private: 39 private:
39 WebExternalTextureLayerClient* client_; 40 WebExternalTextureLayerClient* client_;
40 scoped_ptr<WebLayerImpl> layer_; 41 scoped_ptr<WebLayerImpl> layer_;
41 }; 42 };
42 43
43 } 44 }
44 45
45 #endif // WebExternalTextureLayerImpl_h 46 #endif // WebExternalTextureLayerImpl_h
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_content_layer_impl.h ('k') | webkit/compositor_bindings/web_float_animation_curve_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698