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

Issue 2732223004: DiscardableHandle Implementation (Closed)

Created:
3 years, 9 months ago by ericrk
Modified:
3 years, 8 months ago
Reviewers:
piman
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

DiscardableHandle Implementation This change adds a DiscardableHandle class, which acts as the primary synchronization mechanism for the GPU Discardable Memory system. This is the first in a sequence of CLs which implement the GPU Discardable Memory system. This class is currently only created/used by unit test code. BUG=706456 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2732223004 Cr-Commit-Position: refs/heads/master@{#460610} Committed: https://chromium.googlesource.com/chromium/src/+/6298c71c94585f0eb01c9fc1b420d04e935b5239

Patch Set 1 #

Patch Set 2 : tweaks #

Patch Set 3 : IsDeleted #

Patch Set 4 : different init modes #

Patch Set 5 : rebase #

Patch Set 6 : byte offset #

Total comments: 12

Patch Set 7 : feedback #

Total comments: 7

Patch Set 8 : remove dcheck #

Patch Set 9 : rebase #

Patch Set 10 : remove unused var #

Unified diffs Side-by-side diffs Delta from patch set Stats (+354 lines, -0 lines) Patch
M gpu/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/common/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A gpu/command_buffer/common/discardable_handle.h View 1 2 3 4 5 6 1 chunk +105 lines, -0 lines 0 comments Download
A gpu/command_buffer/common/discardable_handle.cc View 1 2 3 4 5 6 7 8 9 1 chunk +117 lines, -0 lines 0 comments Download
A gpu/command_buffer/common/discardable_handle_unittest.cc View 1 2 3 4 5 6 1 chunk +129 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (13 generated)
ericrk
This is the first in a sequence of CLs to implement Discardable GPU memory. You ...
3 years, 9 months ago (2017-03-20 21:29:09 UTC) #4
ericrk
3 years, 9 months ago (2017-03-20 21:29:27 UTC) #5
piman
https://codereview.chromium.org/2732223004/diff/100001/gpu/command_buffer/common/discardable_handle.cc File gpu/command_buffer/common/discardable_handle.cc (right): https://codereview.chromium.org/2732223004/diff/100001/gpu/command_buffer/common/discardable_handle.cc#newcode36 gpu/command_buffer/common/discardable_handle.cc:36: DCHECK(base::subtle::NoBarrier_Load(AsAtomic()) >= kHandleLockedStart); Will this be called by the ...
3 years, 9 months ago (2017-03-20 23:51:45 UTC) #6
ericrk
Thanks for the feedback! Refactored into client/service classes, which should make the usage a lot ...
3 years, 9 months ago (2017-03-27 22:58:13 UTC) #10
piman
https://codereview.chromium.org/2732223004/diff/100001/gpu/command_buffer/common/discardable_handle.cc File gpu/command_buffer/common/discardable_handle.cc (right): https://codereview.chromium.org/2732223004/diff/100001/gpu/command_buffer/common/discardable_handle.cc#newcode36 gpu/command_buffer/common/discardable_handle.cc:36: DCHECK(base::subtle::NoBarrier_Load(AsAtomic()) >= kHandleLockedStart); On 2017/03/27 22:58:13, ericrk wrote: > ...
3 years, 9 months ago (2017-03-28 00:43:01 UTC) #11
ericrk
https://codereview.chromium.org/2732223004/diff/100001/gpu/command_buffer/common/discardable_handle.cc File gpu/command_buffer/common/discardable_handle.cc (right): https://codereview.chromium.org/2732223004/diff/100001/gpu/command_buffer/common/discardable_handle.cc#newcode36 gpu/command_buffer/common/discardable_handle.cc:36: DCHECK(base::subtle::NoBarrier_Load(AsAtomic()) >= kHandleLockedStart); On 2017/03/28 00:43:00, piman wrote: > ...
3 years, 9 months ago (2017-03-28 01:12:10 UTC) #12
ericrk
https://codereview.chromium.org/2732223004/diff/100001/gpu/command_buffer/common/discardable_handle.cc File gpu/command_buffer/common/discardable_handle.cc (right): https://codereview.chromium.org/2732223004/diff/100001/gpu/command_buffer/common/discardable_handle.cc#newcode36 gpu/command_buffer/common/discardable_handle.cc:36: DCHECK(base::subtle::NoBarrier_Load(AsAtomic()) >= kHandleLockedStart); On 2017/03/28 01:12:10, ericrk wrote: > ...
3 years, 9 months ago (2017-03-28 01:19:44 UTC) #13
piman
LGTM, thanks for the explanations. Just see comment below. https://codereview.chromium.org/2732223004/diff/100001/gpu/command_buffer/common/discardable_handle.cc File gpu/command_buffer/common/discardable_handle.cc (right): https://codereview.chromium.org/2732223004/diff/100001/gpu/command_buffer/common/discardable_handle.cc#newcode36 gpu/command_buffer/common/discardable_handle.cc:36: ...
3 years, 8 months ago (2017-03-28 21:47:25 UTC) #14
vmiura
Great! Please add a tracking bug for this patch set.
3 years, 8 months ago (2017-03-29 16:40:58 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2732223004/210001
3 years, 8 months ago (2017-03-29 22:22:37 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/237424) cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 8 months ago (2017-03-29 22:34:26 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2732223004/230001
3 years, 8 months ago (2017-03-29 22:55:43 UTC) #23
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 01:06:56 UTC) #26
Message was sent while issue was closed.
Committed patchset #10 (id:230001) as
https://chromium.googlesource.com/chromium/src/+/6298c71c94585f0eb01c9fc1b420...

Powered by Google App Engine
This is Rietveld 408576698