diff options
Diffstat (limited to 'webkit/plugins/ppapi/ppapi_plugin_instance.cc')
-rw-r--r-- | webkit/plugins/ppapi/ppapi_plugin_instance.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.cc b/webkit/plugins/ppapi/ppapi_plugin_instance.cc index 4850da8..9334cb7 100644 --- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc +++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc @@ -1722,11 +1722,16 @@ void PluginInstance::UpdateLayer() { DCHECK(bound_graphics_3d_.get()); texture_layer_ = cc::TextureLayer::Create(this); web_layer_.reset(new webkit::WebLayerImpl(texture_layer_)); - if (fullscreen_container_) + if (fullscreen_container_) { fullscreen_container_->SetLayer(web_layer_.get()); - else + // Ignore transparency in fullscreen, since that's what Flash always + // wants to do, and that lets it not recreate a context if + // wmode=transparent was specified. + texture_layer_->SetContentsOpaque(true); + } else { container_->setWebLayer(web_layer_.get()); - texture_layer_->SetContentsOpaque(bound_graphics_3d_->IsOpaque()); + texture_layer_->SetContentsOpaque(bound_graphics_3d_->IsOpaque()); + } } layer_bound_to_fullscreen_ = !!fullscreen_container_; } |