Chromium Code Reviews| Index: webkit/plugins/ppapi/ppapi_plugin_instance.cc |
| diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.cc b/webkit/plugins/ppapi/ppapi_plugin_instance.cc |
| index 5147b323fdadc56588774bd2cda0a0b56c86de55..0742e5050f43158be793ee098decca7b9311e200 100644 |
| --- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc |
| +++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc |
| @@ -402,7 +402,11 @@ unsigned PluginInstance::GetBackingTextureId() { |
| } |
| void PluginInstance::CommitBackingTexture() { |
| - container_->commitBackingTexture(); |
| + if (fullscreen_container_) { |
| + fullscreen_container_->Invalidate(); |
| + } else { |
| + container_->commitBackingTexture(); |
| + } |
| } |
| PP_Var PluginInstance::GetWindowObject() { |
| @@ -936,6 +940,14 @@ bool PluginInstance::NavigateToURL(const char* url, const char* target) { |
| return true; |
| } |
| +PluginDelegate::PlatformContext3D* PluginInstance::CreateContext3D() { |
| + if (fullscreen_container_) { |
|
brettw
2011/01/06 17:52:32
To match the surrounding style, don't use {} for s
piman
2011/01/06 20:18:25
It has an else clause - it's required in that case
brettw
2011/01/06 20:22:13
Nope, the only thing different about this is if on
piman
2011/01/06 20:38:58
Aaight, done.
|
| + return fullscreen_container_->CreateContext3D(); |
| + } else { |
| + return delegate_->CreateContext3D(); |
| + } |
| +} |
| + |
| bool PluginInstance::PrintPDFOutput(PP_Resource print_output, |
| WebKit::WebCanvas* canvas) { |
| scoped_refptr<PPB_Buffer_Impl> buffer( |