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

Issue 12213073: Re-land: Mark async texture uploads as completed from the upload thread. (Closed)

Created:
7 years, 10 months ago by reveman
Modified:
7 years, 10 months ago
Reviewers:
greggman, epenner, nduca
CC:
chromium-reviews, apatrick_chromium
Visibility:
Public.

Description

Re-land: Mark async texture uploads as completed from the upload thread. This reduces the latency between when an upload completes and when the client is notified. BUG=173802 NOTRY=True Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=183010

Patch Set 1 #

Total comments: 17

Patch Set 2 : Keep replies. #

Total comments: 2

Patch Set 3 : Avoid unnecessary polling by GpuCommandBufferStub. #

Total comments: 2

Patch Set 4 : add check to make sure shared memory is valid in AsyncPixelTransfersCompletedQuery::End. #

Patch Set 5 : Fix shutdown issue #

Total comments: 2

Patch Set 6 : fix typo #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -49 lines) Patch
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/async_pixel_transfer_delegate_mock.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/common_decoder.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/common_decoder.cc View 1 2 3 4 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 2 chunks +5 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/query_manager.h View 1 2 5 chunks +28 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/query_manager.cc View 1 2 3 7 chunks +83 lines, -21 lines 0 comments Download
M ui/gl/async_pixel_transfer_delegate.h View 1 2 chunks +5 lines, -1 line 0 comments Download
M ui/gl/async_pixel_transfer_delegate_android.cc View 1 2 3 4 5 6 8 chunks +35 lines, -18 lines 0 comments Download
M ui/gl/async_pixel_transfer_delegate_stub.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M ui/gl/async_pixel_transfer_delegate_stub.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
reveman
https://codereview.chromium.org/12213073/diff/1/ui/gl/DEPS File ui/gl/DEPS (right): https://codereview.chromium.org/12213073/diff/1/ui/gl/DEPS#newcode4 ui/gl/DEPS:4: "+gpu/command_buffer/common", I assume that this is not cool. We ...
7 years, 10 months ago (2013-02-07 19:33:47 UTC) #1
reveman
https://codereview.chromium.org/12213073/diff/1/ui/gl/async_pixel_transfer_delegate_android.cc File ui/gl/async_pixel_transfer_delegate_android.cc (right): https://codereview.chromium.org/12213073/diff/1/ui/gl/async_pixel_transfer_delegate_android.cc#newcode306 ui/gl/async_pixel_transfer_delegate_android.cc:306: base::Lock transfer_in_progress_lock_; we could use base::subtle::Atomic32 here instead if ...
7 years, 10 months ago (2013-02-07 19:59:02 UTC) #2
epenner
https://codereview.chromium.org/12213073/diff/1/gpu/command_buffer/service/async_pixel_transfer_delegate_mock.h File gpu/command_buffer/service/async_pixel_transfer_delegate_mock.h (right): https://codereview.chromium.org/12213073/diff/1/gpu/command_buffer/service/async_pixel_transfer_delegate_mock.h#newcode37 gpu/command_buffer/service/async_pixel_transfer_delegate_mock.h:37: uint32 submit_count)); It was a bit unclear to me ...
7 years, 10 months ago (2013-02-07 20:22:56 UTC) #3
epenner
https://codereview.chromium.org/12213073/diff/1/ui/gl/async_pixel_transfer_delegate_android.cc File ui/gl/async_pixel_transfer_delegate_android.cc (right): https://codereview.chromium.org/12213073/diff/1/ui/gl/async_pixel_transfer_delegate_android.cc#newcode36 ui/gl/async_pixel_transfer_delegate_android.cc:36: class TextureUploadStats Can this be another change? I don't ...
7 years, 10 months ago (2013-02-07 20:36:34 UTC) #4
reveman
I also forgot to mention that this patch change async query result from always being ...
7 years, 10 months ago (2013-02-07 21:30:52 UTC) #5
epenner
I think I understand this more and I think it could be hugely simplified by ...
7 years, 10 months ago (2013-02-07 21:59:47 UTC) #6
epenner
Dang. I realized the normal PostTaskAndReply doesn't do what I said. It will mark the ...
7 years, 10 months ago (2013-02-07 22:52:23 UTC) #7
epenner
Or maybe post the reply custom from the upload thread.
7 years, 10 months ago (2013-02-07 22:55:16 UTC) #8
epenner
On 2013/02/07 22:52:23, epenner wrote: > Dang. I realized the normal PostTaskAndReply doesn't do what ...
7 years, 10 months ago (2013-02-07 23:10:01 UTC) #9
reveman
I think you're right, removing the replies from AsyncPixelTransferDelegateAndroid as part of this CL is ...
7 years, 10 months ago (2013-02-08 04:29:44 UTC) #10
epenner
From a quick look it's looking really good! I'll look at it closely tonight. > ...
7 years, 10 months ago (2013-02-08 05:23:28 UTC) #11
reveman
On 2013/02/08 05:23:28, epenner wrote: > From a quick look it's looking really good! I'll ...
7 years, 10 months ago (2013-02-08 05:55:55 UTC) #12
epenner
LGTM However, I think we need a GPU reviewer for the Query changes. The query ...
7 years, 10 months ago (2013-02-08 06:02:01 UTC) #13
reveman
On 2013/02/08 05:55:55, David Reveman wrote: > On 2013/02/08 05:23:28, epenner wrote: > > From ...
7 years, 10 months ago (2013-02-08 06:12:02 UTC) #14
reveman
> We should be safe if we use base::Unretained() and make sure not to ref ...
7 years, 10 months ago (2013-02-08 06:26:33 UTC) #15
reveman
Gregg, please have a look at QueryManager changes in patch when you have a chance.
7 years, 10 months ago (2013-02-08 06:29:48 UTC) #16
epenner
> oops, accidentally hit send. so lets say it looks something like this: > > ...
7 years, 10 months ago (2013-02-08 18:59:46 UTC) #17
reveman
On 2013/02/08 18:59:46, epenner wrote: > > oops, accidentally hit send. so lets say it ...
7 years, 10 months ago (2013-02-08 21:32:37 UTC) #18
epenner
Sounds good. Assumptions seem solid to me unless I'm missing something big. Personally I'd prefer ...
7 years, 10 months ago (2013-02-08 23:03:52 UTC) #19
greggman
https://codereview.chromium.org/12213073/diff/7002/gpu/command_buffer/service/query_manager.cc File gpu/command_buffer/service/query_manager.cc (right): https://codereview.chromium.org/12213073/diff/7002/gpu/command_buffer/service/query_manager.cc#newcode210 gpu/command_buffer/service/query_manager.cc:210: Buffer buffer = manager()->decoder()->GetSharedMemoryBuffer(shm_id()); Is there any chance this ...
7 years, 10 months ago (2013-02-11 17:34:09 UTC) #20
reveman
https://codereview.chromium.org/12213073/diff/7002/gpu/command_buffer/service/query_manager.cc File gpu/command_buffer/service/query_manager.cc (right): https://codereview.chromium.org/12213073/diff/7002/gpu/command_buffer/service/query_manager.cc#newcode210 gpu/command_buffer/service/query_manager.cc:210: Buffer buffer = manager()->decoder()->GetSharedMemoryBuffer(shm_id()); On 2013/02/11 17:34:09, greggman wrote: ...
7 years, 10 months ago (2013-02-11 23:27:13 UTC) #21
greggman
lgtm
7 years, 10 months ago (2013-02-11 23:40:17 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/12213073/5003
7 years, 10 months ago (2013-02-12 00:29:52 UTC) #23
commit-bot: I haz the power
Change committed as 181883
7 years, 10 months ago (2013-02-12 06:34:21 UTC) #24
reveman
This latest problem fixes the problem reported here: https://code.google.com/p/chromium/issues/detail?id=175863 During shutdown we were calling ProcessPendingTransferQueries() ...
7 years, 10 months ago (2013-02-13 20:20:42 UTC) #25
greggman
lgtm https://codereview.chromium.org/12213073/diff/16001/ui/gl/async_pixel_transfer_delegate_android.cc File ui/gl/async_pixel_transfer_delegate_android.cc (right): https://codereview.chromium.org/12213073/diff/16001/ui/gl/async_pixel_transfer_delegate_android.cc#newcode437 ui/gl/async_pixel_transfer_delegate_android.cc:437: // In practice, they are complete when the ...
7 years, 10 months ago (2013-02-13 20:31:10 UTC) #26
reveman
https://codereview.chromium.org/12213073/diff/16001/ui/gl/async_pixel_transfer_delegate_android.cc File ui/gl/async_pixel_transfer_delegate_android.cc (right): https://codereview.chromium.org/12213073/diff/16001/ui/gl/async_pixel_transfer_delegate_android.cc#newcode437 ui/gl/async_pixel_transfer_delegate_android.cc:437: // In practice, they are complete when the CPU ...
7 years, 10 months ago (2013-02-13 20:40:55 UTC) #27
reveman
Eric, I just rebased this onto your safe shared memory change. PTAL.
7 years, 10 months ago (2013-02-15 21:51:08 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/12213073/27001
7 years, 10 months ago (2013-02-15 21:57:45 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/12213073/27001
7 years, 10 months ago (2013-02-15 22:25:10 UTC) #30
epenner
lgtm
7 years, 10 months ago (2013-02-15 23:07:58 UTC) #31
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
7 years, 10 months ago (2013-02-16 18:15:37 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/12213073/27001
7 years, 10 months ago (2013-02-16 22:37:10 UTC) #33
commit-bot: I haz the power
7 years, 10 months ago (2013-02-16 22:37:36 UTC) #34
Message was sent while issue was closed.
Change committed as 183010

Powered by Google App Engine
This is Rietveld 408576698