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

Issue 27730003: Avoid memory allocation for PPB_FileIO Read when callback is blocking. (Closed)

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

Description

Avoid memory allocation for PPB_FileIO Read when callback is blocking. Performs file read directly into caller's buffer. BUG=194304 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=230282

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : No mallocs for Query blocking. #

Total comments: 2

Patch Set 4 : Address David's comments. #

Total comments: 2

Patch Set 5 : Address David's second round of comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -25 lines) Patch
M ppapi/api/pp_array_output.idl View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
M ppapi/api/ppb_file_io.idl View 1 2 3 4 4 chunks +9 lines, -3 lines 0 comments Download
M ppapi/c/pp_array_output.h View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
M ppapi/c/ppb_file_io.h View 1 2 3 4 5 chunks +10 lines, -4 lines 0 comments Download
M ppapi/cpp/file_io.h View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download
M ppapi/proxy/file_io_resource.cc View 1 2 2 chunks +31 lines, -10 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
bbudge
7 years, 2 months ago (2013-10-17 21:14:20 UTC) #1
dmichael (off chromium)
lgtm, sorry it took me so long to get to this. I think it might ...
7 years, 2 months ago (2013-10-22 18:02:58 UTC) #2
bbudge
I've tried to make the docs a little clearer in the blocking callback case. I ...
7 years, 2 months ago (2013-10-22 20:51:04 UTC) #3
dmichael (off chromium)
Maybe apply the same comments in the C++ versions. O/w, lgtm, thanks! https://codereview.chromium.org/27730003/diff/152001/ppapi/api/ppb_file_io.idl File ppapi/api/ppb_file_io.idl ...
7 years, 2 months ago (2013-10-22 21:07:51 UTC) #4
bbudge
https://codereview.chromium.org/27730003/diff/152001/ppapi/api/ppb_file_io.idl File ppapi/api/ppb_file_io.idl (right): https://codereview.chromium.org/27730003/diff/152001/ppapi/api/ppb_file_io.idl#newcode125 ppapi/api/ppb_file_io.idl:125: * <code>info</code> must remain valid until after the callback ...
7 years, 2 months ago (2013-10-22 22:13:33 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/27730003/232001
7 years, 2 months ago (2013-10-22 22:19:24 UTC) #6
commit-bot: I haz the power
7 years, 2 months ago (2013-10-23 01:49:44 UTC) #7
Message was sent while issue was closed.
Change committed as 230282

Powered by Google App Engine
This is Rietveld 408576698