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

Side by Side Diff: content/renderer/compositor_bindings/web_external_texture_layer_impl.h

Issue 317163002: Moving compositor_bindings from webkit to content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changing dependencies due to failing ios bots Created 6 years, 6 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
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 WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H_
6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H_ 6 #define CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H_
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
11 #include "cc/layers/texture_layer_client.h" 11 #include "cc/layers/texture_layer_client.h"
12 #include "content/common/content_export.h"
12 #include "third_party/WebKit/public/platform/WebExternalTextureLayer.h" 13 #include "third_party/WebKit/public/platform/WebExternalTextureLayer.h"
13 #include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export. h"
14 14
15 namespace cc { 15 namespace cc {
16 class SingleReleaseCallback; 16 class SingleReleaseCallback;
17 class TextureMailbox; 17 class TextureMailbox;
18 } 18 }
19 19
20 namespace blink { 20 namespace blink {
21 struct WebFloatRect; 21 struct WebFloatRect;
22 struct WebExternalTextureMailbox; 22 struct WebExternalTextureMailbox;
23 } 23 }
24 24
25 namespace webkit { 25 namespace content {
26 26
27 class WebLayerImpl; 27 class WebLayerImpl;
28 class WebExternalBitmapImpl; 28 class WebExternalBitmapImpl;
29 29
30 class WebExternalTextureLayerImpl 30 class WebExternalTextureLayerImpl
31 : public blink::WebExternalTextureLayer, 31 : public blink::WebExternalTextureLayer,
32 public cc::TextureLayerClient, 32 public cc::TextureLayerClient,
33 public base::SupportsWeakPtr<WebExternalTextureLayerImpl> { 33 public base::SupportsWeakPtr<WebExternalTextureLayerImpl> {
34 public: 34 public:
35 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebExternalTextureLayerImpl( 35 CONTENT_EXPORT explicit WebExternalTextureLayerImpl(
36 blink::WebExternalTextureLayerClient*); 36 blink::WebExternalTextureLayerClient*);
37 virtual ~WebExternalTextureLayerImpl(); 37 virtual ~WebExternalTextureLayerImpl();
38 38
39 // blink::WebExternalTextureLayer implementation. 39 // blink::WebExternalTextureLayer implementation.
40 virtual blink::WebLayer* layer(); 40 virtual blink::WebLayer* layer();
41 virtual void clearTexture(); 41 virtual void clearTexture();
42 virtual void setOpaque(bool opaque); 42 virtual void setOpaque(bool opaque);
43 virtual void setPremultipliedAlpha(bool premultiplied); 43 virtual void setPremultipliedAlpha(bool premultiplied);
44 virtual void setBlendBackgroundColor(bool blend); 44 virtual void setBlendBackgroundColor(bool blend);
45 virtual void setRateLimitContext(bool rate_limit); 45 virtual void setRateLimitContext(bool rate_limit);
(...skipping 14 matching lines...) Expand all
60 60
61 WebExternalBitmapImpl* AllocateBitmap(); 61 WebExternalBitmapImpl* AllocateBitmap();
62 62
63 blink::WebExternalTextureLayerClient* client_; 63 blink::WebExternalTextureLayerClient* client_;
64 scoped_ptr<WebLayerImpl> layer_; 64 scoped_ptr<WebLayerImpl> layer_;
65 ScopedVector<WebExternalBitmapImpl> free_bitmaps_; 65 ScopedVector<WebExternalBitmapImpl> free_bitmaps_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(WebExternalTextureLayerImpl); 67 DISALLOW_COPY_AND_ASSIGN(WebExternalTextureLayerImpl);
68 }; 68 };
69 69
70 } // namespace webkit 70 } // namespace content
71 71
72 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H _ 72 #endif // CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_ H_
73
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698