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

Issue 1955893002: Allow gpu ResourceHandle class to be shared for multiple purposes (Closed)

Created:
4 years, 7 months ago by egdaniel
Modified:
4 years, 7 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Allow gpu ResourceHandle class to be shared for multiple purposes Currently this class was just used for resource handles when building up a shader. However, I want to now use this class for things like objects owned/held by the GrVkResourceProvider which are used by other classes. An example of this will be for GrVkRenderTargets to hold a handle to a collection of compatible render passes without having to own/hold onto the render passes themselves. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1955893002 Committed: https://skia.googlesource.com/skia/+/167ab9198025e577efe033612d2e009633abb54b

Patch Set 1 #

Patch Set 2 : Add file #

Total comments: 4

Patch Set 3 : Use subclass to add some type safety" #

Total comments: 1

Patch Set 4 : cleanup #

Patch Set 5 : Updated ot use struct #

Total comments: 1

Patch Set 6 : review nit #

Total comments: 9

Patch Set 7 : review updates #

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -24 lines) Patch
M gyp/gpu.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A src/gpu/GrResourceHandle.h View 1 2 3 4 5 6 7 8 1 chunk +36 lines, -0 lines 0 comments Download
M src/gpu/glsl/GrGLSLProgramDataManager.h View 1 2 3 4 5 6 7 4 chunks +3 lines, -24 lines 0 comments Download

Messages

Total messages: 25 (8 generated)
egdaniel
4 years, 7 months ago (2016-05-06 14:35:25 UTC) #3
bsalomon
On 2016/05/06 14:35:25, egdaniel wrote: Do we want some way to make this type safe? ...
4 years, 7 months ago (2016-05-06 14:54:53 UTC) #4
robertphillips
https://codereview.chromium.org/1955893002/diff/20001/src/gpu/GrResourceHandle.h File src/gpu/GrResourceHandle.h (right): https://codereview.chromium.org/1955893002/diff/20001/src/gpu/GrResourceHandle.h#newcode1 src/gpu/GrResourceHandle.h:1: /* space these over 1 ? https://codereview.chromium.org/1955893002/diff/20001/src/gpu/GrResourceHandle.h#newcode20 src/gpu/GrResourceHandle.h:20: 1 ...
4 years, 7 months ago (2016-05-06 15:09:00 UTC) #5
egdaniel
https://codereview.chromium.org/1955893002/diff/20001/src/gpu/GrResourceHandle.h File src/gpu/GrResourceHandle.h (right): https://codereview.chromium.org/1955893002/diff/20001/src/gpu/GrResourceHandle.h#newcode1 src/gpu/GrResourceHandle.h:1: /* On 2016/05/06 15:09:00, robertphillips wrote: > space these ...
4 years, 7 months ago (2016-05-06 17:08:01 UTC) #6
bsalomon
https://codereview.chromium.org/1955893002/diff/40001/src/gpu/GrResourceHandle.h File src/gpu/GrResourceHandle.h (right): https://codereview.chromium.org/1955893002/diff/40001/src/gpu/GrResourceHandle.h#newcode33 src/gpu/GrResourceHandle.h:33: #define GR_CREATE_RESOURCE_HANDLE_CLASS(name) \ What do you think about simplifying ...
4 years, 7 months ago (2016-05-06 17:37:54 UTC) #7
egdaniel
updated to use struct as template since we can't initialize a const char inside of ...
4 years, 7 months ago (2016-05-06 18:35:54 UTC) #8
bsalomon
lgtm w/ comment inline
4 years, 7 months ago (2016-05-06 18:39:59 UTC) #9
bsalomon
4 years, 7 months ago (2016-05-06 18:40:07 UTC) #10
bsalomon
https://codereview.chromium.org/1955893002/diff/80001/src/gpu/GrResourceHandle.h File src/gpu/GrResourceHandle.h (right): https://codereview.chromium.org/1955893002/diff/80001/src/gpu/GrResourceHandle.h#newcode14 src/gpu/GrResourceHandle.h:14: // version of the class. No function should ever ...
4 years, 7 months ago (2016-05-06 18:40:57 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1955893002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1955893002/100001
4 years, 7 months ago (2016-05-06 18:47:02 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-Clang-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-Clang-x86_64-Debug-Trybot/builds/8402)
4 years, 7 months ago (2016-05-06 18:53:33 UTC) #16
robertphillips
Does this deserve any sort of unit test ? https://codereview.chromium.org/1955893002/diff/100001/src/gpu/GrResourceHandle.h File src/gpu/GrResourceHandle.h (right): https://codereview.chromium.org/1955893002/diff/100001/src/gpu/GrResourceHandle.h#newcode12 src/gpu/GrResourceHandle.h:12: ...
4 years, 7 months ago (2016-05-09 13:13:11 UTC) #17
bsalomon
https://codereview.chromium.org/1955893002/diff/100001/src/gpu/GrResourceHandle.h File src/gpu/GrResourceHandle.h (right): https://codereview.chromium.org/1955893002/diff/100001/src/gpu/GrResourceHandle.h#newcode12 src/gpu/GrResourceHandle.h:12: On 2016/05/09 13:13:11, robertphillips wrote: > indexed version ? ...
4 years, 7 months ago (2016-05-09 13:25:23 UTC) #18
egdaniel
https://codereview.chromium.org/1955893002/diff/100001/src/gpu/GrResourceHandle.h File src/gpu/GrResourceHandle.h (right): https://codereview.chromium.org/1955893002/diff/100001/src/gpu/GrResourceHandle.h#newcode12 src/gpu/GrResourceHandle.h:12: On 2016/05/09 13:25:23, bsalomon wrote: > On 2016/05/09 13:13:11, ...
4 years, 7 months ago (2016-05-09 17:19:54 UTC) #19
bsalomon
lgtm https://codereview.chromium.org/1955893002/diff/100001/src/gpu/GrResourceHandle.h File src/gpu/GrResourceHandle.h (right): https://codereview.chromium.org/1955893002/diff/100001/src/gpu/GrResourceHandle.h#newcode12 src/gpu/GrResourceHandle.h:12: On 2016/05/09 17:19:54, egdaniel wrote: > On 2016/05/09 ...
4 years, 7 months ago (2016-05-09 17:26:51 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1955893002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1955893002/160001
4 years, 7 months ago (2016-05-09 17:41:54 UTC) #23
commit-bot: I haz the power
4 years, 7 months ago (2016-05-09 18:03:56 UTC) #25
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://skia.googlesource.com/skia/+/167ab9198025e577efe033612d2e009633abb54b

Powered by Google App Engine
This is Rietveld 408576698