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

Issue 1974983002: Refactor Vulkan image, texture, RTs so that create and getter handles match. (Closed)

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

Description

Refactor Vulkan image, texture, RTs so that create and getter handles match. This allows allows us to track and notify clients when either side changes and image layout. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1974983002 Committed: https://skia.googlesource.com/skia/+/b2df0c2702329be6380a943d548e7377a51d8565

Patch Set 1 #

Patch Set 2 : clean up #

Total comments: 3

Patch Set 3 : Remove templated create #

Total comments: 11

Patch Set 4 : Review cleanup #

Patch Set 5 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+401 lines, -420 lines) Patch
M gm/imagefromyuvtextures.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M include/gpu/vk/GrVkTypes.h View 1 2 3 4 1 chunk +9 lines, -5 lines 0 comments Download
M src/gpu/vk/GrVkCommandBuffer.h View 1 chunk +22 lines, -2 lines 0 comments Download
M src/gpu/vk/GrVkCommandBuffer.cpp View 5 chunks +14 lines, -12 lines 0 comments Download
M src/gpu/vk/GrVkGpu.cpp View 15 chunks +28 lines, -29 lines 0 comments Download
M src/gpu/vk/GrVkImage.h View 1 2 3 2 chunks +60 lines, -58 lines 0 comments Download
M src/gpu/vk/GrVkImage.cpp View 1 2 3 3 chunks +29 lines, -17 lines 0 comments Download
M src/gpu/vk/GrVkPipelineState.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/vk/GrVkPipelineState.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/vk/GrVkRenderTarget.h View 1 2 3 5 chunks +35 lines, -26 lines 0 comments Download
M src/gpu/vk/GrVkRenderTarget.cpp View 1 2 3 12 chunks +56 lines, -75 lines 0 comments Download
M src/gpu/vk/GrVkStencilAttachment.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/vk/GrVkStencilAttachment.cpp View 1 2 3 2 chunks +8 lines, -8 lines 0 comments Download
M src/gpu/vk/GrVkTexture.h View 1 2 3 4 chunks +6 lines, -11 lines 0 comments Download
M src/gpu/vk/GrVkTexture.cpp View 1 2 3 4 10 chunks +45 lines, -73 lines 0 comments Download
M src/gpu/vk/GrVkTextureRenderTarget.h View 1 2 3 3 chunks +29 lines, -32 lines 0 comments Download
M src/gpu/vk/GrVkTextureRenderTarget.cpp View 1 2 3 5 chunks +46 lines, -58 lines 0 comments Download
M tests/VkWrapTests.cpp View 6 chunks +6 lines, -6 lines 0 comments Download
M tools/viewer/sk_app/VulkanWindowContext.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (5 generated)
egdaniel
The main motivation for this change is to make sure the backend object that we ...
4 years, 7 months ago (2016-05-12 20:49:21 UTC) #3
bsalomon
https://codereview.chromium.org/1974983002/diff/20001/src/gpu/vk/GrVkTexture.cpp File src/gpu/vk/GrVkTexture.cpp (right): https://codereview.chromium.org/1974983002/diff/20001/src/gpu/vk/GrVkTexture.cpp#newcode24 src/gpu/vk/GrVkTexture.cpp:24: bool /*isBorrowed*/) unused constructor param?
4 years, 7 months ago (2016-05-13 13:25:48 UTC) #4
egdaniel
https://codereview.chromium.org/1974983002/diff/20001/src/gpu/vk/GrVkTexture.cpp File src/gpu/vk/GrVkTexture.cpp (right): https://codereview.chromium.org/1974983002/diff/20001/src/gpu/vk/GrVkTexture.cpp#newcode24 src/gpu/vk/GrVkTexture.cpp:24: bool /*isBorrowed*/) On 2016/05/13 13:25:48, bsalomon wrote: > unused ...
4 years, 7 months ago (2016-05-13 13:29:59 UTC) #5
bsalomon
On 2016/05/13 13:29:59, egdaniel wrote: > https://codereview.chromium.org/1974983002/diff/20001/src/gpu/vk/GrVkTexture.cpp > File src/gpu/vk/GrVkTexture.cpp (right): > > https://codereview.chromium.org/1974983002/diff/20001/src/gpu/vk/GrVkTexture.cpp#newcode24 > ...
4 years, 7 months ago (2016-05-13 14:29:50 UTC) #6
egdaniel
https://codereview.chromium.org/1974983002/diff/20001/src/gpu/vk/GrVkTexture.cpp File src/gpu/vk/GrVkTexture.cpp (right): https://codereview.chromium.org/1974983002/diff/20001/src/gpu/vk/GrVkTexture.cpp#newcode24 src/gpu/vk/GrVkTexture.cpp:24: bool /*isBorrowed*/) On 2016/05/13 13:29:59, egdaniel wrote: > On ...
4 years, 7 months ago (2016-05-13 15:06:53 UTC) #7
bsalomon
lgtm, but Jim should probably have a look as well.
4 years, 7 months ago (2016-05-13 15:11:07 UTC) #8
jvanverth1
A few comments from me: https://codereview.chromium.org/1974983002/diff/40001/include/gpu/vk/GrVkTypes.h File include/gpu/vk/GrVkTypes.h (right): https://codereview.chromium.org/1974983002/diff/40001/include/gpu/vk/GrVkTypes.h#newcode42 include/gpu/vk/GrVkTypes.h:42: void updateImageLayout(VkImageLayout layout) { ...
4 years, 7 months ago (2016-05-13 16:14:41 UTC) #9
egdaniel
https://codereview.chromium.org/1974983002/diff/40001/include/gpu/vk/GrVkTypes.h File include/gpu/vk/GrVkTypes.h (right): https://codereview.chromium.org/1974983002/diff/40001/include/gpu/vk/GrVkTypes.h#newcode42 include/gpu/vk/GrVkTypes.h:42: void updateImageLayout(VkImageLayout layout) { fImageLayout = layout; } On ...
4 years, 7 months ago (2016-05-13 18:00:05 UTC) #10
jvanverth1
lgtm
4 years, 7 months ago (2016-05-13 18:04:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974983002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974983002/80001
4 years, 7 months ago (2016-05-13 18:08:01 UTC) #14
commit-bot: I haz the power
4 years, 7 months ago (2016-05-13 18:30:42 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://skia.googlesource.com/skia/+/b2df0c2702329be6380a943d548e7377a51d8565

Powered by Google App Engine
This is Rietveld 408576698