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

Issue 22606005: Add CompletionTask to PPAPI TrackedCallback. (Closed)

Created:
7 years, 4 months ago by bbudge
Modified:
7 years, 4 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Add CompletionTask to PPAPI TrackedCallback. TrackedCallback handles re-entry into the Plugin. Add a way to insert a task into this process so resources can perform any completion work on the proper thread without having to duplicate this re-entry work. BUG= R=dmichael@chromium.org, yzshen@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216789

Patch Set 1 : #

Total comments: 9

Patch Set 2 : #

Total comments: 4

Patch Set 3 : Unit tests. #

Patch Set 4 : Update comments. #

Total comments: 2

Patch Set 5 : Check that completion task precedes callback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -6 lines) Patch
M ppapi/shared_impl/tracked_callback.h View 1 2 3 3 chunks +14 lines, -1 line 0 comments Download
M ppapi/shared_impl/tracked_callback.cc View 1 2 3 4 chunks +30 lines, -3 lines 0 comments Download
M ppapi/shared_impl/tracked_callback_unittest.cc View 1 2 3 4 5 chunks +56 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
bbudge
I don't need this yet, but David and I discussed this a way to simplify ...
7 years, 4 months ago (2013-08-07 20:58:00 UTC) #1
bbudge
https://codereview.chromium.org/22606005/diff/3001/ppapi/shared_impl/tracked_callback.h File ppapi/shared_impl/tracked_callback.h (right): https://codereview.chromium.org/22606005/diff/3001/ppapi/shared_impl/tracked_callback.h#newcode88 ppapi/shared_impl/tracked_callback.h:88: // Task to perform any cleanup or output before ...
7 years, 4 months ago (2013-08-07 21:01:54 UTC) #2
yzshen1
https://codereview.chromium.org/22606005/diff/3001/ppapi/shared_impl/tracked_callback.cc File ppapi/shared_impl/tracked_callback.cc (right): https://codereview.chromium.org/22606005/diff/3001/ppapi/shared_impl/tracked_callback.cc#newcode132 ppapi/shared_impl/tracked_callback.cc:132: result = RunCompletionTask(result); One thing that may be tricky ...
7 years, 4 months ago (2013-08-07 21:09:10 UTC) #3
teravest
https://codereview.chromium.org/22606005/diff/3001/ppapi/shared_impl/tracked_callback.cc File ppapi/shared_impl/tracked_callback.cc (right): https://codereview.chromium.org/22606005/diff/3001/ppapi/shared_impl/tracked_callback.cc#newcode226 ppapi/shared_impl/tracked_callback.cc:226: return result; nit: I think you want to call ...
7 years, 4 months ago (2013-08-08 16:49:52 UTC) #4
dmichael (off chromium)
https://chromiumcodereview.appspot.com/22606005/diff/3001/ppapi/shared_impl/tracked_callback.cc File ppapi/shared_impl/tracked_callback.cc (right): https://chromiumcodereview.appspot.com/22606005/diff/3001/ppapi/shared_impl/tracked_callback.cc#newcode132 ppapi/shared_impl/tracked_callback.cc:132: result = RunCompletionTask(result); I think the answer is "don't ...
7 years, 4 months ago (2013-08-08 17:29:58 UTC) #5
bbudge
https://codereview.chromium.org/22606005/diff/3001/ppapi/shared_impl/tracked_callback.cc File ppapi/shared_impl/tracked_callback.cc (right): https://codereview.chromium.org/22606005/diff/3001/ppapi/shared_impl/tracked_callback.cc#newcode132 ppapi/shared_impl/tracked_callback.cc:132: result = RunCompletionTask(result); On 2013/08/07 21:09:10, yzshen1 wrote: > ...
7 years, 4 months ago (2013-08-08 18:33:59 UTC) #6
dmichael (off chromium)
Could you add testing of this to the unit test? Other than that, I think ...
7 years, 4 months ago (2013-08-08 20:45:44 UTC) #7
yzshen1
LGTM https://codereview.chromium.org/22606005/diff/11001/ppapi/shared_impl/tracked_callback.cc File ppapi/shared_impl/tracked_callback.cc (right): https://codereview.chromium.org/22606005/diff/11001/ppapi/shared_impl/tracked_callback.cc#newcode137 ppapi/shared_impl/tracked_callback.cc:137: // shouldn't happen, but avoid strange failures). nit: ...
7 years, 4 months ago (2013-08-08 23:55:49 UTC) #8
bbudge
https://codereview.chromium.org/22606005/diff/11001/ppapi/shared_impl/tracked_callback.cc File ppapi/shared_impl/tracked_callback.cc (right): https://codereview.chromium.org/22606005/diff/11001/ppapi/shared_impl/tracked_callback.cc#newcode137 ppapi/shared_impl/tracked_callback.cc:137: // shouldn't happen, but avoid strange failures). On 2013/08/08 ...
7 years, 4 months ago (2013-08-09 18:56:25 UTC) #9
dmichael (off chromium)
lgtm, thanks for the unit test! https://chromiumcodereview.appspot.com/22606005/diff/31001/ppapi/shared_impl/tracked_callback_unittest.cc File ppapi/shared_impl/tracked_callback_unittest.cc (right): https://chromiumcodereview.appspot.com/22606005/diff/31001/ppapi/shared_impl/tracked_callback_unittest.cc#newcode196 ppapi/shared_impl/tracked_callback_unittest.cc:196: int32_t CompletionTask(CallbackRunInfo* info, ...
7 years, 4 months ago (2013-08-09 21:14:00 UTC) #10
bbudge
https://codereview.chromium.org/22606005/diff/31001/ppapi/shared_impl/tracked_callback_unittest.cc File ppapi/shared_impl/tracked_callback_unittest.cc (right): https://codereview.chromium.org/22606005/diff/31001/ppapi/shared_impl/tracked_callback_unittest.cc#newcode196 ppapi/shared_impl/tracked_callback_unittest.cc:196: int32_t CompletionTask(CallbackRunInfo* info, int32_t result) { On 2013/08/09 21:14:01, ...
7 years, 4 months ago (2013-08-09 21:36:29 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/22606005/39001
7 years, 4 months ago (2013-08-09 21:40:40 UTC) #12
bbudge
7 years, 4 months ago (2013-08-10 00:20:21 UTC) #13
Message was sent while issue was closed.
Committed patchset #5 manually as r216789 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698