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

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: 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
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..de42619f0d3ea4cce1fb84f81775db3229a5bf99 100644
--- a/cc/layers/texture_layer_impl.h
+++ b/cc/layers/texture_layer_impl.h
@@ -18,9 +18,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));
+ int id) {
+ return make_scoped_ptr(new TextureLayerImpl(tree_impl, id));
}
virtual ~TextureLayerImpl();
@@ -32,12 +31,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 +53,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 +70,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_;

Powered by Google App Engine
This is Rietveld 408576698