Index: ppapi/proxy/ppb_graphics_3d_proxy.cc |
diff --git a/ppapi/proxy/ppb_graphics_3d_proxy.cc b/ppapi/proxy/ppb_graphics_3d_proxy.cc |
index 75f7d83a920b8f36c5e01b90c0f47b9195c3a4ab..2a708a36dbd49d4bdf0a694722c8d040c09e99a5 100644 |
--- a/ppapi/proxy/ppb_graphics_3d_proxy.cc |
+++ b/ppapi/proxy/ppb_graphics_3d_proxy.cc |
@@ -246,24 +246,32 @@ void PPB_Graphics3D_Proxy::OnMsgSetGetBuffer( |
} |
void PPB_Graphics3D_Proxy::OnMsgGetState(const HostResource& context, |
- gpu::CommandBuffer::State* state) { |
+ gpu::CommandBuffer::State* state, |
+ bool* success) { |
EnterHostFromHostResource<PPB_Graphics3D_API> enter(context); |
- if (enter.failed()) |
+ if (enter.failed()) { |
+ *success = false; |
return; |
+ } |
PP_Graphics3DTrustedState pp_state = enter.object()->GetState(); |
*state = GPUStateFromPPState(pp_state); |
+ *success = true; |
} |
void PPB_Graphics3D_Proxy::OnMsgFlush(const HostResource& context, |
int32 put_offset, |
int32 last_known_get, |
- gpu::CommandBuffer::State* state) { |
+ gpu::CommandBuffer::State* state, |
+ bool* success) { |
EnterHostFromHostResource<PPB_Graphics3D_API> enter(context); |
- if (enter.failed()) |
+ if (enter.failed()) { |
+ *success = false; |
return; |
+ } |
PP_Graphics3DTrustedState pp_state = enter.object()->FlushSyncFast( |
put_offset, last_known_get); |
*state = GPUStateFromPPState(pp_state); |
+ *success = true; |
} |
void PPB_Graphics3D_Proxy::OnMsgAsyncFlush(const HostResource& context, |