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

Issue 417005: Add acknowledgement messages for PluginMsg_UpdateGeometry (Closed)

Created:
11 years, 1 month ago by Mark Mentovai
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, darin (slow to review), jam
Visibility:
Public.

Description

Add acknowledgement messages for PluginMsg_UpdateGeometry. On the Mac, use these acknowledgements to know when it's safe to dump old TransportDIBs in the renderer process. The Mac TransportDIB implementation uses base::SharedMemory, which cannot be disposed of if an in-flight UpdateGeometry message refers to the shared memory file descriptor. BUG=27510, 26754 TEST=1. From bug 25710: a. Visit http://www.dkmsoftware.com/Yubotu.htm b. Click "Play Now" c. Resize vigorously. Expect: no sad plug-in icon. 2. Test case from bug 26754 (affected machines only): a. Visit http://news.google.com/ b. Click the [+] to the left of a YouTube link. On affected machines, you'll get a sad plug-in icon. c. Click the [+] to the left of a different YouTube link. Expect: no crash. 3. Test case from bug 26754 comment 9 (affected machines only): a. Have lots of bookmarks (import Safari defaults) b. Right-click on bookmark bar, and choose "Open All Bookmarks" Expect: no crash. This change may not actually fix the third test case. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33264

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -13 lines) Patch
M chrome/common/plugin_messages.h View 2 3 4 5 6 7 3 chunks +21 lines, -1 line 0 comments Download
M chrome/common/plugin_messages_internal.h View 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/plugin/webplugin_delegate_stub.cc View 3 4 5 6 7 1 chunk +6 lines, -1 line 0 comments Download
M chrome/plugin/webplugin_proxy.h View 3 4 5 6 7 1 chunk +6 lines, -1 line 0 comments Download
M chrome/plugin/webplugin_proxy.cc View 3 4 5 6 7 2 chunks +13 lines, -1 line 0 comments Download
M chrome/renderer/webplugin_delegate_proxy.h View 2 3 4 5 6 7 3 chunks +27 lines, -0 lines 0 comments Download
M chrome/renderer/webplugin_delegate_proxy.cc View 1 2 3 4 5 6 7 6 chunks +73 lines, -9 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Mark Mentovai
11 years, 1 month ago (2009-11-20 06:46:31 UTC) #1
darin (slow to review)
It's very unfortunate (perf wise) to have to use this sync IPC here. Does it ...
11 years, 1 month ago (2009-11-20 07:16:53 UTC) #2
Mark Mentovai
darin wrote: > It's very unfortunate (perf wise) to have to use this sync IPC ...
11 years, 1 month ago (2009-11-20 07:25:24 UTC) #3
darin (slow to review)
On Thu, Nov 19, 2009 at 11:25 PM, <mark@chromium.org> wrote: > darin wrote: > >> ...
11 years, 1 month ago (2009-11-20 07:37:08 UTC) #4
darin (slow to review)
On Thu, Nov 19, 2009 at 11:36 PM, Darin Fisher <darin@chromium.org> wrote: > > > ...
11 years, 1 month ago (2009-11-20 07:38:29 UTC) #5
Amanda Walker
After reading the description in bug 27510, LGTM as long as we open a new ...
11 years, 1 month ago (2009-11-20 14:51:07 UTC) #6
darin (slow to review)
Is it really too much work to change this to ACK based now? -Darin On ...
11 years, 1 month ago (2009-11-20 17:03:26 UTC) #7
Amanda Walker
I'm wary of doing so for Mstone-4 at this point, but I'll leave it to ...
11 years, 1 month ago (2009-11-20 17:11:21 UTC) #8
Mark Mentovai
This is ready for another look. I took an ACK-based approach, but did not add ...
11 years ago (2009-11-29 04:46:58 UTC) #9
jam
Since the new message and new parameter are only needed for mac, can they all ...
11 years ago (2009-11-29 18:37:03 UTC) #10
mmentovai_google.com
John Abd-El-Malek wrote: > Since the new message and new parameter are only needed for ...
11 years ago (2009-11-29 19:02:24 UTC) #11
jam
On Sun, Nov 29, 2009 at 11:02 AM, Mark Mentovai <mmentovai@google.com>wrote: > John Abd-El-Malek wrote: ...
11 years ago (2009-11-30 02:15:26 UTC) #12
mmentovai_google.com
I uploaded a version that restores the #ifdefs. Mark John Abd-El-Malek wrote: > On Sun, ...
11 years ago (2009-11-30 02:50:55 UTC) #13
Amanda Walker
LGTM. I'm not at all convinced that we only want it on the Mac (seems ...
11 years ago (2009-11-30 03:24:09 UTC) #14
Mark Mentovai
11 years ago (2009-11-30 03:27:05 UTC) #15
amanda@chromium.org wrote:
> I'm not at all convinced that we only want it on the Mac (seems to me that
> debouncing resizes is helpful for the same reasons as debouncing paints, which
> we do everywhere), but I don't think that discussion should hold up this fix.

I agree.  When we have something that debounces, it should be
operative on all platforms.

I don't think debouncing is in scope for M4.  And with debouncing,
there will only be one UpdateGeometry in flight at a time, so the
ack_key stuff can come out.

Mark

Powered by Google App Engine
This is Rietveld 408576698