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

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

Issue 227413011: Remove old texture path in TextureLayer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 8 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 WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H_ 5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H_
6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H_ 6 #define WEBKIT_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"
(...skipping 27 matching lines...) Expand all
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);
46 46
47 // TextureLayerClient implementation. 47 // TextureLayerClient implementation.
48 virtual unsigned PrepareTexture() OVERRIDE;
49 virtual bool PrepareTextureMailbox( 48 virtual bool PrepareTextureMailbox(
50 cc::TextureMailbox* mailbox, 49 cc::TextureMailbox* mailbox,
51 scoped_ptr<cc::SingleReleaseCallback>* release_callback, 50 scoped_ptr<cc::SingleReleaseCallback>* release_callback,
52 bool use_shared_memory) OVERRIDE; 51 bool use_shared_memory) OVERRIDE;
53 52
54 private: 53 private:
55 static void DidReleaseMailbox( 54 static void DidReleaseMailbox(
56 base::WeakPtr<WebExternalTextureLayerImpl> layer, 55 base::WeakPtr<WebExternalTextureLayerImpl> layer,
57 const blink::WebExternalTextureMailbox& mailbox, 56 const blink::WebExternalTextureMailbox& mailbox,
58 WebExternalBitmapImpl* bitmap, 57 WebExternalBitmapImpl* bitmap,
59 unsigned sync_point, 58 unsigned sync_point,
60 bool lost_resource); 59 bool lost_resource);
61 60
62 WebExternalBitmapImpl* AllocateBitmap(); 61 WebExternalBitmapImpl* AllocateBitmap();
63 62
64 blink::WebExternalTextureLayerClient* client_; 63 blink::WebExternalTextureLayerClient* client_;
65 scoped_ptr<WebLayerImpl> layer_; 64 scoped_ptr<WebLayerImpl> layer_;
66 ScopedVector<WebExternalBitmapImpl> free_bitmaps_; 65 ScopedVector<WebExternalBitmapImpl> free_bitmaps_;
67 66
68 DISALLOW_COPY_AND_ASSIGN(WebExternalTextureLayerImpl); 67 DISALLOW_COPY_AND_ASSIGN(WebExternalTextureLayerImpl);
69 }; 68 };
70 69
71 } // namespace webkit 70 } // namespace webkit
72 71
73 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H _ 72 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H _
OLDNEW
« no previous file with comments | « ui/compositor/layer.cc ('k') | webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698