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

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

Issue 12670009: cc: Chromify TextureLayerClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
« no previous file with comments | « ui/compositor/layer.cc ('k') | webkit/compositor_bindings/web_external_texture_layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_COMPOSITOR_BINDINGS_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H_ 5 #ifndef WEBKIT_COMPOSITOR_BINDINGS_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H_
6 #define WEBKIT_COMPOSITOR_BINDINGS_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H_ 6 #define WEBKIT_COMPOSITOR_BINDINGS_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/layers/texture_layer_client.h" 9 #include "cc/layers/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"
(...skipping 16 matching lines...) Expand all
27 virtual WebKit::WebLayer* layer(); 27 virtual WebKit::WebLayer* layer();
28 virtual void setTextureId(unsigned texture_id); 28 virtual void setTextureId(unsigned texture_id);
29 virtual void setFlipped(bool flipped); 29 virtual void setFlipped(bool flipped);
30 virtual void setUVRect(const WebKit::WebFloatRect& uv_rect); 30 virtual void setUVRect(const WebKit::WebFloatRect& uv_rect);
31 virtual void setOpaque(bool opaque); 31 virtual void setOpaque(bool opaque);
32 virtual void setPremultipliedAlpha(bool premultiplied); 32 virtual void setPremultipliedAlpha(bool premultiplied);
33 virtual void willModifyTexture(); 33 virtual void willModifyTexture();
34 virtual void setRateLimitContext(bool rate_limit); 34 virtual void setRateLimitContext(bool rate_limit);
35 35
36 // TextureLayerClient implementation. 36 // TextureLayerClient implementation.
37 virtual unsigned prepareTexture(cc::ResourceUpdateQueue&) OVERRIDE; 37 virtual unsigned PrepareTexture(cc::ResourceUpdateQueue*) OVERRIDE;
38 virtual WebKit::WebGraphicsContext3D* context() OVERRIDE; 38 virtual WebKit::WebGraphicsContext3D* Context3d() OVERRIDE;
39 39
40 private: 40 private:
41 WebKit::WebExternalTextureLayerClient* client_; 41 WebKit::WebExternalTextureLayerClient* client_;
42 scoped_ptr<WebLayerImpl> layer_; 42 scoped_ptr<WebLayerImpl> layer_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(WebExternalTextureLayerImpl); 44 DISALLOW_COPY_AND_ASSIGN(WebExternalTextureLayerImpl);
45 }; 45 };
46 46
47 } // namespace webkit 47 } // namespace webkit
48 48
49 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H_ 49 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « ui/compositor/layer.cc ('k') | webkit/compositor_bindings/web_external_texture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698