Chromium Code Reviews

Issue 2712002: First pass at implementing real Flush callbacks. This does not currently... (Closed)

Created:
10 years, 6 months ago by brettw
Modified:
9 years, 7 months ago
Reviewers:
darin (slow to review)
CC:
chromium-reviews, jam, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

First pass at implementing real Flush callbacks. This does not currently include a test since that needs some work on threading and the testing interface. I plan on doing that in a separate pass. TEST=none BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=49415

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Stats (+295 lines, -40 lines)
M DEPS View 1 chunk +1 line, -1 line 0 comments
M chrome/test/ui/ppapi_uitest.cc View 2 chunks +10 lines, -1 line 0 comments
M webkit/glue/plugins/pepper_device_context_2d.h View 2 chunks +70 lines, -4 lines 0 comments
M webkit/glue/plugins/pepper_device_context_2d.cc View 9 chunks +141 lines, -31 lines 0 comments
M webkit/glue/plugins/pepper_plugin_instance.h View 4 chunks +27 lines, -0 lines 0 comments
M webkit/glue/plugins/pepper_plugin_instance.cc View 5 chunks +46 lines, -3 lines 0 comments

Messages

Total messages: 6 (0 generated)
brettw
10 years, 6 months ago (2010-06-08 17:16:05 UTC) #1
darin (slow to review)
http://codereview.chromium.org/2712002/diff/1/4 File webkit/glue/plugins/pepper_device_context_2d.cc (right): http://codereview.chromium.org/2712002/diff/1/4#newcode479 webkit/glue/plugins/pepper_device_context_2d.cc:479: painted_flush_callbacks_[i].Execute(GetResource()); do we need to worry about re-entrancy here? ...
10 years, 6 months ago (2010-06-08 19:13:02 UTC) #2
brettw
New snap up http://codereview.chromium.org/2712002/diff/1/4 File webkit/glue/plugins/pepper_device_context_2d.cc (right): http://codereview.chromium.org/2712002/diff/1/4#newcode479 webkit/glue/plugins/pepper_device_context_2d.cc:479: painted_flush_callbacks_[i].Execute(GetResource()); Things will get added to ...
10 years, 6 months ago (2010-06-09 16:58:26 UTC) #3
darin (slow to review)
On 2010/06/09 16:58:26, brettw wrote: > New snap up > > http://codereview.chromium.org/2712002/diff/1/4 > File webkit/glue/plugins/pepper_device_context_2d.cc ...
10 years, 6 months ago (2010-06-09 19:56:17 UTC) #4
darin (slow to review)
On 2010/06/09 19:56:17, darin wrote: > On 2010/06/09 16:58:26, brettw wrote: > > New snap ...
10 years, 6 months ago (2010-06-09 19:57:44 UTC) #5
darin (slow to review)
10 years, 6 months ago (2010-06-09 19:58:18 UTC) #6
LGTM

On Wed, Jun 9, 2010 at 12:56 PM, <darin@chromium.org> wrote:

> On 2010/06/09 16:58:26, brettw wrote:
>
>> New snap up
>>
>
>  http://codereview.chromium.org/2712002/diff/1/4
>> File webkit/glue/plugins/pepper_device_context_2d.cc (right):
>>
>
>  http://codereview.chromium.org/2712002/diff/1/4#newcode479
>> webkit/glue/plugins/pepper_device_context_2d.cc:479:
>> painted_flush_callbacks_[i].Execute(GetResource());
>> Things will get added to the painted flush callbacks only when the
>> renderer
>> paints. When the plugin requests a paint, things will go on the unpainted
>>
> flush
>
>> callback queue. So we should be OK here.
>>
>
> What if BindToInstance(NULL) is called during a flush callback?
>
>
>
>  I'll file a bug on not allowing multiple flush calls without a callback.
>> Currently the test depends on this (otherwise, I need to wait for the
>> callback
>> before continuing the test, and unfortunately a "run pending messages"
>>
> function
>
>> won't fix the problem.
>>
>
> Hmm... I'm not sure I follow, but I like disallowing multiple flushes.
>
>
> http://codereview.chromium.org/2712002/show
>

Powered by Google App Engine