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

Issue 16831004: Perform glReadPixels with PBOs in the gpu, if PBOs are available. (Closed)

Created:
7 years, 6 months ago by hubbe
Modified:
7 years, 5 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, jam, apatrick_chromium
Visibility:
Public.

Description

Perform glReadPixels with PBOs in the gpu, if PBOs are available. Make GL_ASYNC_PIXEL_TRANSFERS_COMPLETED_CHROMIUM wait for readpixel transfers. Add signalQuery to get a callback when the transfer is done. PLEASE NOTE: glMapBuffer does not wait for the readpixels transfer to complete anymore. Nobody is currently relying on that behaviour. Update gl_helper.cc and gl_renderer.cc to use queries. BUG=249925 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209625

Patch Set 1 #

Patch Set 2 : minor cleanup #

Patch Set 3 : make tests work #

Patch Set 4 : fix gpu_unittests #

Patch Set 5 : moved extension check into feature_info #

Patch Set 6 : preserve sync readpixels behaviour #

Patch Set 7 : use webglid where approperiate #

Total comments: 16

Patch Set 8 : fixed 2 nits #

Patch Set 9 : signalQuery merged #

Patch Set 10 : comments addressed #

Patch Set 11 : comments addressed #

Patch Set 12 : gpu_unittests fixed #

Patch Set 13 : oops, did not mean to upload license.py #

Total comments: 13

Patch Set 14 : fixed (some) comments, added new query type #

Total comments: 2

Patch Set 15 : comments addressed #

Patch Set 16 : revert gl_in_process_context.cc, deal with out-of-order callbacks in gl_helper.cc #

Total comments: 10

Patch Set 17 : nits fixed #

Patch Set 18 : 80 chars #

Patch Set 19 : fixed missing comma #

Patch Set 20 : fix cc_unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+402 lines, -131 lines) Patch
M cc/output/gl_renderer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +18 lines, -3 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -0 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +6 lines, -0 lines 0 comments Download
M content/common/gpu/client/gl_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +51 lines, -29 lines 0 comments Download
M gpu/GLES2/gl2extchromium.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_cmd_helper_autogen.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +10 lines, -15 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -3 lines 0 comments Download
M gpu/command_buffer/client/query_tracker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -5 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format_autogen.h View 1 2 3 4 5 4 chunks +9 lines, -5 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format_test_autogen.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +4 lines, -1 line 0 comments Download
M gpu/command_buffer/service/feature_info.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/feature_info.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +12 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 14 chunks +162 lines, -46 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_mock.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +28 lines, -15 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/query_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +57 lines, -2 lines 0 comments Download
M gpu/config/gpu_driver_bug_list_json.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +17 lines, -1 line 0 comments Download
M gpu/config/gpu_driver_bug_workaround_type.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -1 line 0 comments Download
M ui/gl/gl_bindings.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
hubbe
7 years, 6 months ago (2013-06-17 18:29:57 UTC) #1
danakj
https://codereview.chromium.org/16831004/diff/18001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/16831004/diff/18001/cc/output/gl_renderer.cc#newcode2254 cc/output/gl_renderer.cc:2254: nit: a single line of whitespace is sufficient. https://codereview.chromium.org/16831004/diff/18001/cc/resources/sync_point_helper.h ...
7 years, 6 months ago (2013-06-17 18:36:48 UTC) #2
hubbe
https://codereview.chromium.org/16831004/diff/18001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/16831004/diff/18001/cc/output/gl_renderer.cc#newcode2254 cc/output/gl_renderer.cc:2254: On 2013/06/17 18:36:48, danakj wrote: > nit: a single ...
7 years, 6 months ago (2013-06-17 19:47:18 UTC) #3
piman
This patch is too big, and does 2 separate things: - add the signalQuery mechanism ...
7 years, 6 months ago (2013-06-17 19:55:06 UTC) #4
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 6 months ago (2013-06-25 20:01:13 UTC) #5
hubbe
Ok, I think it's ready for another look. The signalQuery stuff was broken out and ...
7 years, 6 months ago (2013-06-25 20:02:50 UTC) #6
piman
https://codereview.chromium.org/16831004/diff/18001/gpu/command_buffer/service/query_manager.cc File gpu/command_buffer/service/query_manager.cc (right): https://codereview.chromium.org/16831004/diff/18001/gpu/command_buffer/service/query_manager.cc#newcode225 gpu/command_buffer/service/query_manager.cc:225: this, submit_count, mem_params)); On 2013/06/25 20:02:51, hubbe wrote: > ...
7 years, 6 months ago (2013-06-26 22:17:08 UTC) #7
hubbe
https://codereview.chromium.org/16831004/diff/18001/gpu/command_buffer/service/query_manager.cc File gpu/command_buffer/service/query_manager.cc (right): https://codereview.chromium.org/16831004/diff/18001/gpu/command_buffer/service/query_manager.cc#newcode225 gpu/command_buffer/service/query_manager.cc:225: this, submit_count, mem_params)); On 2013/06/26 22:17:08, piman wrote: > ...
7 years, 5 months ago (2013-06-28 22:17:49 UTC) #8
piman
https://codereview.chromium.org/16831004/diff/40001/gpu/command_buffer/client/gles2_implementation.cc File gpu/command_buffer/client/gles2_implementation.cc (right): https://codereview.chromium.org/16831004/diff/40001/gpu/command_buffer/client/gles2_implementation.cc#newcode3211 gpu/command_buffer/client/gles2_implementation.cc:3211: helper_->Finish(); On 2013/06/28 22:17:49, hubbe wrote: > On 2013/06/26 ...
7 years, 5 months ago (2013-06-28 23:35:46 UTC) #9
hubbe
PTAL https://codereview.chromium.org/16831004/diff/40001/gpu/command_buffer/client/gles2_implementation.cc File gpu/command_buffer/client/gles2_implementation.cc (right): https://codereview.chromium.org/16831004/diff/40001/gpu/command_buffer/client/gles2_implementation.cc#newcode3211 gpu/command_buffer/client/gles2_implementation.cc:3211: helper_->Finish(); On 2013/06/28 23:35:46, piman wrote: > On ...
7 years, 5 months ago (2013-06-29 00:13:56 UTC) #10
hubbe
Sorry, forgot to upload after merge. Only gl_helper.cc and gl_in_process_context.cc should have changed since friday ...
7 years, 5 months ago (2013-07-01 21:17:58 UTC) #11
piman
LGTM + a few nits. https://codereview.chromium.org/16831004/diff/93001/content/common/gpu/client/gl_helper.cc File content/common/gpu/client/gl_helper.cc (right): https://codereview.chromium.org/16831004/diff/93001/content/common/gpu/client/gl_helper.cc#newcode482 content/common/gpu/client/gl_helper.cc:482: request = request_queue_.front(); nit: ...
7 years, 5 months ago (2013-07-01 22:24:08 UTC) #12
hubbe
https://codereview.chromium.org/16831004/diff/93001/content/common/gpu/client/gl_helper.cc File content/common/gpu/client/gl_helper.cc (right): https://codereview.chromium.org/16831004/diff/93001/content/common/gpu/client/gl_helper.cc#newcode482 content/common/gpu/client/gl_helper.cc:482: request = request_queue_.front(); On 2013/07/01 22:24:08, piman wrote: > ...
7 years, 5 months ago (2013-07-01 22:34:40 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/16831004/103001
7 years, 5 months ago (2013-07-01 23:05:16 UTC) #14
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=13336
7 years, 5 months ago (2013-07-01 23:14:19 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/16831004/121001
7 years, 5 months ago (2013-07-02 03:54:47 UTC) #16
commit-bot: I haz the power
7 years, 5 months ago (2013-07-02 06:49:30 UTC) #17
Message was sent while issue was closed.
Change committed as 209625

Powered by Google App Engine
This is Rietveld 408576698