summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/ppapi_plugin_instance.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/plugins/ppapi/ppapi_plugin_instance.cc')
-rw-r--r--webkit/plugins/ppapi/ppapi_plugin_instance.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.cc b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
index ee815f3..421d676 100644
--- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc
+++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
@@ -417,6 +417,18 @@ void PluginInstance::CommitBackingTexture() {
container_->commitBackingTexture();
}
+void PluginInstance::InstanceCrashed() {
+ // Force free all resources and vars.
+ ResourceTracker::Get()->InstanceCrashed(pp_instance());
+
+ // Free any associated graphics.
+ SetFullscreen(false);
+ bound_graphics_ = NULL;
+ InvalidateRect(gfx::Rect());
+
+ // TODO(brettw) show a crashed plugin screen.
+}
+
PP_Var PluginInstance::GetWindowObject() {
if (!container_)
return PP_MakeUndefined();