Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / webkit / renderer / compositor_bindings / web_external_texture_layer_impl.cc
index 8657b38..1ddf541 100644 (file)
@@ -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) {
@@ -62,11 +60,6 @@ void WebExternalTextureLayerImpl::setRateLimitContext(bool rate_limit) {
   static_cast<TextureLayer*>(layer_->layer())->SetRateLimitContext(rate_limit);
 }
 
-unsigned WebExternalTextureLayerImpl::PrepareTexture() {
-  NOTREACHED();
-  return 0;
-}
-
 bool WebExternalTextureLayerImpl::PrepareTextureMailbox(
     cc::TextureMailbox* mailbox,
     scoped_ptr<cc::SingleReleaseCallback>* release_callback,