summaryrefslogtreecommitdiffstats
path: root/content/renderer/pepper_plugin_delegate_impl.cc
diff options
context:
space:
mode:
authorpiman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-31 19:17:52 +0000
committerpiman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-31 19:17:52 +0000
commit4dadd1488df25a60eeb907a158653a2a7a7459e8 (patch)
tree463898eb541747ed76132f275ba176f773482a50 /content/renderer/pepper_plugin_delegate_impl.cc
parent1950891c3ac95a2d42511f7f97c0a8cb7f928210 (diff)
downloadchromium_src-4dadd1488df25a60eeb907a158653a2a7a7459e8.zip
chromium_src-4dadd1488df25a60eeb907a158653a2a7a7459e8.tar.gz
chromium_src-4dadd1488df25a60eeb907a158653a2a7a7459e8.tar.bz2
Lost context fixes
This makes sure that after a GPU context lost event, we don't try to re-create a context based on the lost one. BUG=chromium-os:13537 TEST=with pepper flash, run multiple flash sites in multiple tabs, make sure they use the GPU process. kill the gpu process, and check that renderers don't crash. Review URL: http://codereview.chromium.org/6726048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80042 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/pepper_plugin_delegate_impl.cc')
-rw-r--r--content/renderer/pepper_plugin_delegate_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/renderer/pepper_plugin_delegate_impl.cc b/content/renderer/pepper_plugin_delegate_impl.cc
index 9bf35ce..7c94c1e 100644
--- a/content/renderer/pepper_plugin_delegate_impl.cc
+++ b/content/renderer/pepper_plugin_delegate_impl.cc
@@ -500,7 +500,7 @@ webkit::ppapi::PluginDelegate::PlatformContext3D*
WebGraphicsContext3DCommandBufferImpl* context =
static_cast<WebGraphicsContext3DCommandBufferImpl*>(
render_view_->webview()->graphicsContext3D());
- if (!context)
+ if (!context || context->isContextLost())
return NULL;
ggl::Context* parent_context = context->context();