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

Issue 10387182: Browser Plugin: PpapiCommandBufferProxy should see a lost context if the embedder has deleted the P… (Closed)

Created:
8 years, 7 months ago by Fady Samuel
Modified:
8 years, 7 months ago
Reviewers:
piman
CC:
chromium-reviews
Visibility:
Public.

Description

Browser Plugin: PpapiCommandBufferProxy should see a lost context if the embedder has deleted the PluginInstance In cross-process navigation we swap out PluginInstances and delete the swapped out instance. PpapiCommandBufferProxy is sitting in WebGraphicsContext3DCommandBufferImpl, and is unaware of the destruction. It attempts to talk to the embedder to flush over and over again and hangs the guest renderer. With this change, the renderer's compositor will realize that the context is lost, and will drop it. BUG=none TEST=manually. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137981

Patch Set 1 #

Total comments: 4

Patch Set 2 : Updated per piman@'s suggestions #

Total comments: 4

Patch Set 3 : Updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -18 lines) Patch
M ppapi/proxy/ppapi_command_buffer_proxy.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppapi_command_buffer_proxy.cc View 1 2 3 chunks +15 lines, -7 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M ppapi/proxy/ppb_graphics_3d_proxy.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_graphics_3d_proxy.cc View 1 1 chunk +12 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Fady Samuel
8 years, 7 months ago (2012-05-17 20:41:49 UTC) #1
piman
It's useful to clean up this case, but I would like to understand why we ...
8 years, 7 months ago (2012-05-18 02:42:45 UTC) #2
Fady Samuel
On 2012/05/18 02:42:45, piman wrote: > It's useful to clean up this case, but I ...
8 years, 7 months ago (2012-05-18 02:55:42 UTC) #3
Fady Samuel
Addressed your initial comments. Yes, I agree this isn't the ideal solution, and we shouldn't ...
8 years, 7 months ago (2012-05-18 19:27:48 UTC) #4
piman
You're missing the changes to the messages definition in this CL. http://codereview.chromium.org/10387182/diff/5002/ppapi/proxy/ppapi_command_buffer_proxy.cc File ppapi/proxy/ppapi_command_buffer_proxy.cc (right): ...
8 years, 7 months ago (2012-05-18 20:01:43 UTC) #5
Fady Samuel
https://chromiumcodereview.appspot.com/10387182/diff/5002/ppapi/proxy/ppapi_command_buffer_proxy.cc File ppapi/proxy/ppapi_command_buffer_proxy.cc (right): https://chromiumcodereview.appspot.com/10387182/diff/5002/ppapi/proxy/ppapi_command_buffer_proxy.cc#newcode269 ppapi/proxy/ppapi_command_buffer_proxy.cc:269: last_state_ = state; On 2012/05/18 20:01:43, piman wrote: > ...
8 years, 7 months ago (2012-05-18 20:44:42 UTC) #6
piman
lgtm
8 years, 7 months ago (2012-05-18 20:48:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/10387182/4
8 years, 7 months ago (2012-05-18 20:49:00 UTC) #8
commit-bot: I haz the power
8 years, 7 months ago (2012-05-19 00:04:37 UTC) #9
Change committed as 137981

Powered by Google App Engine
This is Rietveld 408576698