Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Unified Diff: ppapi/proxy/ppapi_command_buffer_proxy.cc

Issue 10387182: Browser Plugin: PpapiCommandBufferProxy should see a lost context if the embedder has deleted the P… (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ppapi/proxy/ppb_graphics_3d_proxy.cc » ('j') | ppapi/proxy/ppb_graphics_3d_proxy.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppapi_command_buffer_proxy.cc
diff --git a/ppapi/proxy/ppapi_command_buffer_proxy.cc b/ppapi/proxy/ppapi_command_buffer_proxy.cc
index 5e0f45486aab667646784b8aa7fc6a80696da2fd..5cdcef6642adf10c96f3ae77b0fd1457f779a195 100644
--- a/ppapi/proxy/ppapi_command_buffer_proxy.cc
+++ b/ppapi/proxy/ppapi_command_buffer_proxy.cc
@@ -262,7 +262,8 @@ void PpapiCommandBufferProxy::UpdateState(
const gpu::CommandBuffer::State& state) {
// Handle wraparound. It works as long as we don't have more than 2B state
// updates in flight across which reordering occurs.
- if (state.generation - last_state_.generation < 0x80000000U)
+ if (state.error != gpu::error::kNoError ||
piman 2012/05/18 02:42:46 See comments in the other files, I'd rather the Pp
Fady Samuel 2012/05/18 19:27:48 Done.
+ state.generation - last_state_.generation < 0x80000000U)
last_state_ = state;
}
« no previous file with comments | « no previous file | ppapi/proxy/ppb_graphics_3d_proxy.cc » ('j') | ppapi/proxy/ppb_graphics_3d_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698