diff options
author | piman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-10 01:47:41 +0000 |
---|---|---|
committer | piman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-10 01:47:41 +0000 |
commit | aa351637499a15c75ade4e29d92d861be2bad5eb (patch) | |
tree | 94e5ecf69d4988455641fe004b49d05fbeefb439 /webkit/plugins/ppapi/ppb_context_3d_impl.h | |
parent | 63de8affc2abbfe6c2bf10c6a6696b4c4cdc92b8 (diff) | |
download | chromium_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/ppb_context_3d_impl.h')
-rw-r--r-- | webkit/plugins/ppapi/ppb_context_3d_impl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/plugins/ppapi/ppb_context_3d_impl.h b/webkit/plugins/ppapi/ppb_context_3d_impl.h index 0021984..3ae9b0bd 100644 --- a/webkit/plugins/ppapi/ppb_context_3d_impl.h +++ b/webkit/plugins/ppapi/ppb_context_3d_impl.h @@ -5,6 +5,7 @@ #ifndef WEBKIT_PLUGINS_PPAPI_PPB_CONTEXT_3D_IMPL_H_ #define WEBKIT_PLUGINS_PPAPI_PPB_CONTEXT_3D_IMPL_H_ +#include "base/scoped_callback_factory.h" #include "base/scoped_ptr.h" #include "ppapi/c/dev/ppb_context_3d_dev.h" #include "webkit/plugins/ppapi/plugin_delegate.h" @@ -63,6 +64,7 @@ class PPB_Context3D_Impl : public Resource { private: void Destroy(); bool CreateImplementation(); + void OnContextLost(); // Plugin instance this context is associated with. PluginInstance* instance_; @@ -77,6 +79,8 @@ class PPB_Context3D_Impl : public Resource { PPB_Surface3D_Impl* draw_surface_; PPB_Surface3D_Impl* read_surface_; + base::ScopedCallbackFactory<PPB_Context3D_Impl> callback_factory_; + DISALLOW_COPY_AND_ASSIGN(PPB_Context3D_Impl); }; |