summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/plugin_delegate.h
diff options
context:
space:
mode:
authorpiman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-10 01:47:41 +0000
committerpiman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-10 01:47:41 +0000
commitaa351637499a15c75ade4e29d92d861be2bad5eb (patch)
tree94e5ecf69d4988455641fe004b49d05fbeefb439 /webkit/plugins/ppapi/plugin_delegate.h
parent63de8affc2abbfe6c2bf10c6a6696b4c4cdc92b8 (diff)
downloadchromium_src-aa351637499a15c75ade4e29d92d861be2bad5eb.zip
chromium_src-aa351637499a15c75ade4e29d92d861be2bad5eb.tar.gz
chromium_src-aa351637499a15c75ade4e29d92d861be2bad5eb.tar.bz2
Handle lost contexts in PPAPI.
BUG=chromium-os:12905 and friends TEST=go to youtube with pepper flash, kill gpu process, obeserve no crash. Review URL: http://codereview.chromium.org/6657025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77583 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/ppapi/plugin_delegate.h')
-rw-r--r--webkit/plugins/ppapi/plugin_delegate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/plugins/ppapi/plugin_delegate.h b/webkit/plugins/ppapi/plugin_delegate.h
index 2e367d1..f8185cf 100644
--- a/webkit/plugins/ppapi/plugin_delegate.h
+++ b/webkit/plugins/ppapi/plugin_delegate.h
@@ -162,6 +162,10 @@ class PluginDelegate {
// that is constructed in Initialize() and is valid until this context is
// destroyed.
virtual gpu::CommandBuffer* GetCommandBuffer() = 0;
+
+ // Set an optional callback that will be invoked when the context is lost
+ // (e.g. gpu process crash). Takes ownership of the callback.
+ virtual void SetContextLostCallback(Callback0::Type* callback) = 0;
};
class PlatformAudio {