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

Issue 14273026: cc: Make async readback path use async glRreadPixels. (Closed)

Created:
7 years, 8 months ago by danakj
Modified:
7 years, 7 months ago
Reviewers:
piman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, jam, apatrick_chromium, backer, enne (OOO), jamesr
Visibility:
Public.

Description

cc: Make async readback path use async glReadPixels. The current async readback path for the compositor did a synchronous glReadPixels, but since the whole thing is asynchronous, there's no need for the glReadPixels call to be synchronous. This mimics the code from GLHelper to make the glReadPixels into an async call. Tested by all the compositor pixel tests. Depends on: https://codereview.chromium.org/14126014/ R=piman BUG=179896 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197519

Patch Set 1 #

Patch Set 2 : There, I fixed it #

Total comments: 16

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : swizzlebeforeunmap #

Patch Set 6 : addcomment #

Patch Set 7 : forlanding #

Patch Set 8 : forlanding #

Unified diffs Side-by-side diffs Delta from patch set Stats (+447 lines, -84 lines) Patch
M cc/output/direct_renderer.h View 2 chunks +7 lines, -2 lines 0 comments Download
M cc/output/direct_renderer.cc View 1 chunk +2 lines, -7 lines 0 comments Download
M cc/output/gl_renderer.h View 1 2 6 chunks +29 lines, -2 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 8 chunks +177 lines, -34 lines 0 comments Download
M cc/output/software_renderer.h View 1 chunk +3 lines, -2 lines 0 comments Download
M cc/output/software_renderer.cc View 1 2 1 chunk +8 lines, -3 lines 0 comments Download
M cc/resources/resource_provider.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M cc/test/pixel_test.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M cc/test/pixel_test.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -3 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.h View 1 5 chunks +37 lines, -1 line 0 comments Download
M cc/test/test_web_graphics_context_3d.cc View 1 9 chunks +110 lines, -15 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 4 chunks +26 lines, -12 lines 0 comments Download
M cc/trees/thread_proxy.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 5 6 2 chunks +22 lines, -1 line 0 comments Download
M content/common/gpu/client/gl_helper.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
danakj
7 years, 8 months ago (2013-04-26 18:58:05 UTC) #1
danakj
Updated this on https://codereview.chromium.org/14126014/ now that all its problems have been solved. Real async gl ...
7 years, 8 months ago (2013-04-27 00:04:34 UTC) #2
piman
https://codereview.chromium.org/14273026/diff/3016/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/14273026/diff/3016/cc/output/gl_renderer.cc#newcode2115 cc/output/gl_renderer.cc:2115: if (is_async) { I think you can make your ...
7 years, 8 months ago (2013-04-27 00:42:25 UTC) #3
danakj
Thanks! PTAL https://codereview.chromium.org/14273026/diff/3016/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/14273026/diff/3016/cc/output/gl_renderer.cc#newcode2115 cc/output/gl_renderer.cc:2115: if (is_async) { On 2013/04/27 00:42:25, piman ...
7 years, 7 months ago (2013-04-29 14:59:05 UTC) #4
piman
https://codereview.chromium.org/14273026/diff/3016/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/14273026/diff/3016/cc/trees/thread_proxy.cc#newcode548 cc/trees/thread_proxy.cc:548: } { On 2013/04/29 14:59:05, danakj wrote: > On ...
7 years, 7 months ago (2013-04-29 17:29:13 UTC) #5
danakj
https://codereview.chromium.org/14273026/diff/18017/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/14273026/diff/18017/cc/output/gl_renderer.cc#newcode2196 cc/output/gl_renderer.cc:2196: if (src_pixels) { On 2013/04/29 17:29:13, piman wrote: > ...
7 years, 7 months ago (2013-04-29 17:30:54 UTC) #6
danakj
https://codereview.chromium.org/14273026/diff/3016/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/14273026/diff/3016/cc/trees/thread_proxy.cc#newcode548 cc/trees/thread_proxy.cc:548: } { On 2013/04/29 17:29:13, piman wrote: > On ...
7 years, 7 months ago (2013-04-30 01:30:51 UTC) #7
piman
LGTM, thanks!
7 years, 7 months ago (2013-04-30 01:43:42 UTC) #8
danakj
Thank you :)
7 years, 7 months ago (2013-04-30 01:44:33 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/14273026/33001
7 years, 7 months ago (2013-04-30 01:44:42 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/14273026/47002
7 years, 7 months ago (2013-04-30 18:58:38 UTC) #11
commit-bot: I haz the power
Failed to trigger a try job on win_rel HTTP Error 400: Bad Request
7 years, 7 months ago (2013-04-30 20:28:41 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/14273026/48018
7 years, 7 months ago (2013-04-30 20:29:00 UTC) #13
aelias_OOO_until_Jul13
Oops, I accidentally uploaded to the wrong issue and didn't ctrl-C it in time. Please ...
7 years, 7 months ago (2013-04-30 23:50:45 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/14273026/48018
7 years, 7 months ago (2013-04-30 23:51:57 UTC) #15
danakj
I didnt know you could do that, hah
7 years, 7 months ago (2013-04-30 23:56:53 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/14273026/48018
7 years, 7 months ago (2013-05-01 00:01:48 UTC) #17
commit-bot: I haz the power
7 years, 7 months ago (2013-05-01 00:04:03 UTC) #18
Message was sent while issue was closed.
Change committed as 197519

Powered by Google App Engine
This is Rietveld 408576698