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

Unified Diff: cc/layers/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/texture_layer_client.h ('k') | cc/layers/texture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/texture_layer_impl.h
diff --git a/cc/layers/texture_layer_impl.h b/cc/layers/texture_layer_impl.h
index 50511feacecc9e16f8dc48ced08a249baab630d8..82eec95283d618f4a78d409e52b3b2d23bee16c1 100644
--- a/cc/layers/texture_layer_impl.h
+++ b/cc/layers/texture_layer_impl.h
@@ -17,10 +17,8 @@ class ScopedResource;
class CC_EXPORT TextureLayerImpl : public LayerImpl {
public:
- static scoped_ptr<TextureLayerImpl> Create(LayerTreeImpl* tree_impl,
- int id,
- bool uses_mailbox) {
- return make_scoped_ptr(new TextureLayerImpl(tree_impl, id, uses_mailbox));
+ static scoped_ptr<TextureLayerImpl> Create(LayerTreeImpl* tree_impl, int id) {
+ return make_scoped_ptr(new TextureLayerImpl(tree_impl, id));
}
virtual ~TextureLayerImpl();
@@ -32,12 +30,9 @@ class CC_EXPORT TextureLayerImpl : public LayerImpl {
ResourceProvider* resource_provider) OVERRIDE;
virtual void AppendQuads(QuadSink* quad_sink,
AppendQuadsData* append_quads_data) OVERRIDE;
- virtual void DidDraw(ResourceProvider* resource_provider) OVERRIDE;
virtual Region VisibleContentOpaqueRegion() const OVERRIDE;
virtual void ReleaseResources() OVERRIDE;
- unsigned texture_id() const { return texture_id_; }
-
// These setter methods don't cause any implicit damage, so the texture client
// must explicitly invalidate if they intend to cause a visible change in the
// layer's output.
@@ -57,12 +52,11 @@ class CC_EXPORT TextureLayerImpl : public LayerImpl {
scoped_ptr<SingleReleaseCallback> release_callback);
private:
- TextureLayerImpl(LayerTreeImpl* tree_impl, int id, bool uses_mailbox);
+ TextureLayerImpl(LayerTreeImpl* tree_impl, int id);
virtual const char* LayerTypeAsString() const OVERRIDE;
void FreeTextureMailbox();
- unsigned texture_id_;
ResourceProvider::ResourceId external_texture_resource_;
bool premultiplied_alpha_;
bool blend_background_color_;
@@ -75,7 +69,6 @@ class CC_EXPORT TextureLayerImpl : public LayerImpl {
TextureMailbox texture_mailbox_;
scoped_ptr<SingleReleaseCallback> release_callback_;
- bool uses_mailbox_;
bool own_mailbox_;
bool valid_texture_copy_;
« no previous file with comments | « cc/layers/texture_layer_client.h ('k') | cc/layers/texture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698