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

Issue 9651002: Add C++ wrappers for output parameters. (Closed)

Created:
8 years, 9 months ago by brettw
Modified:
8 years, 9 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Add C++ wrappers for output parameters. Define helper routines for doing array output using the new PP_OutputArray struct. Define routines in the completion callback factory for doing output parameters as parameters to the callback function. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=126781

Patch Set 1 #

Total comments: 22

Patch Set 2 : With swapping #

Total comments: 4

Patch Set 3 : Heap allocated dispatcher #

Patch Set 4 : Review comments #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+997 lines, -50 lines) Patch
A ppapi/cpp/array_output.h View 1 2 3 4 5 1 chunk +260 lines, -0 lines 0 comments Download
A ppapi/cpp/array_output.cc View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
M ppapi/cpp/completion_callback.h View 1 2 chunks +95 lines, -0 lines 0 comments Download
A ppapi/cpp/output_traits.h View 1 1 chunk +231 lines, -0 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M ppapi/utility/completion_callback_factory.h View 1 2 3 17 chunks +374 lines, -50 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
brettw
Okay, this is ready for review. I extracted just the C++ wrapper part from the ...
8 years, 9 months ago (2012-03-08 20:01:01 UTC) #1
dmichael (off chromium)
Is there some dev interface you could port to this so that it's getting exercised ...
8 years, 9 months ago (2012-03-09 18:23:27 UTC) #2
brettw
I tried a different approach to avoid the weird copy constructors on the array output ...
8 years, 9 months ago (2012-03-11 05:15:42 UTC) #3
brettw
I think I'd prefer to heap allocate the dispatcher. Lemme know what you think before ...
8 years, 9 months ago (2012-03-11 05:40:43 UTC) #4
dmichael (off chromium)
I agree, heap allocating the dispatcher will be cleaner. I think it would make sense ...
8 years, 9 months ago (2012-03-13 05:04:04 UTC) #5
brettw
Oh, sorry. The NewRequiredCallback stuff has already landed but was in my git history. It's ...
8 years, 9 months ago (2012-03-13 05:16:21 UTC) #6
brettw
PTAL
8 years, 9 months ago (2012-03-13 23:26:03 UTC) #7
dmichael (off chromium)
lgtm http://codereview.chromium.org/9651002/diff/15007/ppapi/cpp/array_output.h File ppapi/cpp/array_output.h (right): http://codereview.chromium.org/9651002/diff/15007/ppapi/cpp/array_output.h#newcode98 ppapi/cpp/array_output.h:98: std::vector<T>* output_; you should probably disallow copy & ...
8 years, 9 months ago (2012-03-14 18:47:08 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brettw@chromium.org/9651002/14003
8 years, 9 months ago (2012-03-14 19:34:00 UTC) #9
commit-bot: I haz the power
8 years, 9 months ago (2012-03-14 23:17:15 UTC) #10
Change committed as 126781

Powered by Google App Engine
This is Rietveld 408576698