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

Issue 11412232: gpu: Add async upload functions. (Closed)

Created:
8 years ago by epenner
Modified:
8 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium
Base URL:
http://git.chromium.org/chromium/src.git@ASYNC_uploads
Visibility:
Public.

Description

gpu: Add async upload functions. Just adding the API first to unblock other CLs and so we can start to use the API. Async tasks are just done synchronously, and the completion query is set immediately when it executes in the GPU process. BUG=161337 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170516

Patch Set 1 #

Total comments: 2

Patch Set 2 : Just a name change #

Total comments: 9

Patch Set 3 : Address feedback #

Patch Set 4 : Rebase. #

Patch Set 5 : Add autogenerated code. #

Total comments: 21

Patch Set 6 : Address feedback. #

Total comments: 2

Patch Set 7 : Make functions void. #

Patch Set 8 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+626 lines, -0 lines) Patch
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h View 1 2 3 4 5 6 1 chunk +22 lines, -0 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 2 3 2 chunks +15 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_c_lib_autogen.h View 1 2 3 4 5 6 2 chunks +18 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_cmd_helper_autogen.h View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.cc View 1 2 3 4 5 6 1 chunk +90 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_autogen.h View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_autogen.h View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_autogen.h View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_impl_autogen.h View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/query_tracker.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M gpu/command_buffer/cmd_buffer_functions.txt View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format_autogen.h View 1 2 3 4 1 chunk +158 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format_test_autogen.h View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_ids_autogen.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/feature_info.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gl_utils.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 1 chunk +90 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/query_manager.cc View 1 2 3 4 5 2 chunks +50 lines, -0 lines 0 comments Download
M third_party/khronos/GLES2/gl2chromium.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/khronos/GLES2/gl2ext.h View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/khronos/README.chromium View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
epenner
8 years ago (2012-11-28 22:16:17 UTC) #1
reveman
https://codereview.chromium.org/11412232/diff/1/gpu/command_buffer/client/gles2_implementation.cc File gpu/command_buffer/client/gles2_implementation.cc (right): https://codereview.chromium.org/11412232/diff/1/gpu/command_buffer/client/gles2_implementation.cc#newcode3690 gpu/command_buffer/client/gles2_implementation.cc:3690: if (!pixels) { this won't work. |pixels| is an ...
8 years ago (2012-11-29 00:25:23 UTC) #2
epennerAtGoogle
https://codereview.chromium.org/11412232/diff/1/gpu/command_buffer/client/gles2_implementation.cc File gpu/command_buffer/client/gles2_implementation.cc (right): https://codereview.chromium.org/11412232/diff/1/gpu/command_buffer/client/gles2_implementation.cc#newcode3690 gpu/command_buffer/client/gles2_implementation.cc:3690: if (!pixels) { On 2012/11/29 00:25:23, David Reveman wrote: ...
8 years ago (2012-11-29 00:38:11 UTC) #3
greggman
It seems like this can be a client side only function similar to glMapTexSubImage2DCHROMIUM. glAsyncTexImage2DCHROMIUM ...
8 years ago (2012-11-29 02:18:17 UTC) #4
epennerAtGoogle
At the moment yes this would as purely client side changes, but this CL is ...
8 years ago (2012-11-29 03:47:22 UTC) #5
reveman
https://codereview.chromium.org/11412232/diff/1013/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/11412232/diff/1013/gpu/command_buffer/service/feature_info.cc#newcode238 gpu/command_buffer/service/feature_info.cc:238: AddExtensionString("GL_CHROMIUM_async_tasks"); On 2012/11/29 03:47:23, epennerAtGoogle wrote: > On 2012/11/29 ...
8 years ago (2012-11-29 04:13:31 UTC) #6
greggman
On 2012/11/29 03:47:22, epennerAtGoogle wrote: > At the moment yes this would as purely client ...
8 years ago (2012-11-29 04:38:58 UTC) #7
greggman
please run build_gles2_cmd_decoder.py and upload the files it changes to this CL Otherwise the one ...
8 years ago (2012-11-29 04:45:18 UTC) #8
epennerAtGoogle
https://codereview.chromium.org/11412232/diff/1013/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/11412232/diff/1013/gpu/command_buffer/service/feature_info.cc#newcode238 gpu/command_buffer/service/feature_info.cc:238: AddExtensionString("GL_CHROMIUM_async_tasks"); On 2012/11/29 04:13:32, David Reveman wrote: > On ...
8 years ago (2012-11-29 19:28:42 UTC) #9
epennerAtGoogle
On 2012/11/29 04:45:18, greggman wrote: > please run build_gles2_cmd_decoder.py and upload the files it changes ...
8 years ago (2012-11-29 19:54:31 UTC) #10
epenner
Addressed feedback and added autogenerated code. PTAL.
8 years ago (2012-11-30 01:21:11 UTC) #11
greggman
https://codereview.chromium.org/11412232/diff/5039/gpu/command_buffer/client/gles2_implementation.cc File gpu/command_buffer/client/gles2_implementation.cc (right): https://codereview.chromium.org/11412232/diff/5039/gpu/command_buffer/client/gles2_implementation.cc#newcode3231 gpu/command_buffer/client/gles2_implementation.cc:3231: BufferTracker::Buffer* buffer = GetBoundPixelUnpackTransferBufferIfValid( GetBoundPixelUnpackTransferBufferIfValid generates GL errors so ...
8 years ago (2012-11-30 03:01:51 UTC) #12
reveman
https://codereview.chromium.org/11412232/diff/5039/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h File content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h (right): https://codereview.chromium.org/11412232/diff/5039/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h#newcode609 content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h:609: // Async task functions. Async pixel transfer functions? https://codereview.chromium.org/11412232/diff/5039/gpu/command_buffer/client/gles2_implementation.cc ...
8 years ago (2012-11-30 03:10:20 UTC) #13
epennerAtGoogle
Sorry about that. I think I erased some of the name changes while messing with ...
8 years ago (2012-11-30 04:14:22 UTC) #14
greggman
One more thing. The functions return true or false. Why? That seems very un GL ...
8 years ago (2012-11-30 04:27:27 UTC) #15
greggman
https://codereview.chromium.org/11412232/diff/11014/gpu/command_buffer/client/gles2_implementation.cc File gpu/command_buffer/client/gles2_implementation.cc (right): https://codereview.chromium.org/11412232/diff/11014/gpu/command_buffer/client/gles2_implementation.cc#newcode3268 gpu/command_buffer/client/gles2_implementation.cc:3268: if (height == 0 || width == 0) { ...
8 years ago (2012-11-30 04:32:12 UTC) #16
epennerAtGoogle
I removed the boolean. I agree I wasn't seeing the need for it in the ...
8 years ago (2012-11-30 06:16:26 UTC) #17
greggman
lgtm
8 years ago (2012-11-30 07:05:41 UTC) #18
reveman
lgtm https://codereview.chromium.org/11412232/diff/5039/gpu/command_buffer/service/query_manager.cc File gpu/command_buffer/service/query_manager.cc (right): https://codereview.chromium.org/11412232/diff/5039/gpu/command_buffer/service/query_manager.cc#newcode192 gpu/command_buffer/service/query_manager.cc:192: // to return a count of tasks completed ...
8 years ago (2012-11-30 10:02:59 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/11412232/14026
8 years ago (2012-11-30 15:42:58 UTC) #20
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests
8 years ago (2012-11-30 16:41:28 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/11412232/14026
8 years ago (2012-11-30 17:13:45 UTC) #22
commit-bot: I haz the power
8 years ago (2012-11-30 19:57:19 UTC) #23
Message was sent while issue was closed.
Change committed as 170516

Powered by Google App Engine
This is Rietveld 408576698