summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-03 14:40:57 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-03 14:40:57 +0000
commit67dbcf209c7b2c81712623815e8ada0cdaf9e8d5 (patch)
tree33a1b122e66c7a3cbd924f74f3ffd35f1a101ef9 /webkit
parentee70451f8c386f8cca7c085ab69c5bd4431bd462 (diff)
downloadchromium_src-67dbcf209c7b2c81712623815e8ada0cdaf9e8d5.zip
chromium_src-67dbcf209c7b2c81712623815e8ada0cdaf9e8d5.tar.gz
chromium_src-67dbcf209c7b2c81712623815e8ada0cdaf9e8d5.tar.bz2
cc: Remove TextureLayer::SetTextureId and TextureLayer::WillModifyTexture
These are not used anymore except for clearing the client-provided texture, so this removes 1 of 4 TextureLayer paths, and simplifies externally-exposed state. BUG=337922 Review URL: https://codereview.chromium.org/213743005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261380 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc b/webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc
index 8657b38..bdec725 100644
--- a/webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc
+++ b/webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc
@@ -39,9 +39,7 @@ blink::WebLayer* WebExternalTextureLayerImpl::layer() { return layer_.get(); }
void WebExternalTextureLayerImpl::clearTexture() {
TextureLayer *layer = static_cast<TextureLayer*>(layer_->layer());
- layer->WillModifyTexture();
- layer->SetTextureMailbox(cc::TextureMailbox(),
- scoped_ptr<cc::SingleReleaseCallback>());
+ layer->ClearTexture();
}
void WebExternalTextureLayerImpl::setOpaque(bool opaque) {