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

Issue 1836863002: Change VkPipelineStateCahce to use Hash and LRU LList. (Closed)

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

Description

Change VkPipelineStateCahce to use Hash and LRU LList. This simplifies the caching code and forms the base for a caching template that will be easier to use for other objects within Vulkan. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1836863002 Committed: https://skia.googlesource.com/skia/+/af132770a9462f6bb9cff47254e44675d9241fe8

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : return sp #

Total comments: 3

Patch Set 7 : update macro name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -196 lines) Patch
M src/gpu/vk/GrVkGpu.h View 1 2 3 4 5 1 chunk +4 lines, -5 lines 0 comments Download
M src/gpu/vk/GrVkGpu.cpp View 1 2 3 4 5 4 chunks +23 lines, -19 lines 0 comments Download
M src/gpu/vk/GrVkPipelineStateCache.cpp View 1 2 3 4 5 6 3 chunks +55 lines, -147 lines 0 comments Download
M src/gpu/vk/GrVkResourceProvider.h View 1 2 3 4 5 6 4 chunks +20 lines, -24 lines 0 comments Download
M src/gpu/vk/GrVkResourceProvider.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (5 generated)
egdaniel
4 years, 8 months ago (2016-03-28 14:38:35 UTC) #3
bsalomon
https://codereview.chromium.org/1836863002/diff/80001/src/gpu/vk/GrVkGpu.h File src/gpu/vk/GrVkGpu.h (right): https://codereview.chromium.org/1836863002/diff/80001/src/gpu/vk/GrVkGpu.h#newcode167 src/gpu/vk/GrVkGpu.h:167: sk_sp<GrVkPipelineState>* pipelineState); why not just return a sk_sp<GrVkPipelineState>?
4 years, 8 months ago (2016-03-28 14:51:58 UTC) #4
egdaniel
https://codereview.chromium.org/1836863002/diff/80001/src/gpu/vk/GrVkGpu.h File src/gpu/vk/GrVkGpu.h (right): https://codereview.chromium.org/1836863002/diff/80001/src/gpu/vk/GrVkGpu.h#newcode167 src/gpu/vk/GrVkGpu.h:167: sk_sp<GrVkPipelineState>* pipelineState); On 2016/03/28 14:51:58, bsalomon wrote: > why ...
4 years, 8 months ago (2016-03-28 18:14:46 UTC) #5
bsalomon
lgtm w/ question about macro definition https://codereview.chromium.org/1836863002/diff/100001/src/gpu/vk/GrVkResourceProvider.h File src/gpu/vk/GrVkResourceProvider.h (right): https://codereview.chromium.org/1836863002/diff/100001/src/gpu/vk/GrVkResourceProvider.h#newcode87 src/gpu/vk/GrVkResourceProvider.h:87: #define PIPELINE_STATE_CACHE_STATS Is ...
4 years, 8 months ago (2016-03-28 18:44:29 UTC) #6
egdaniel
https://codereview.chromium.org/1836863002/diff/100001/src/gpu/vk/GrVkResourceProvider.h File src/gpu/vk/GrVkResourceProvider.h (right): https://codereview.chromium.org/1836863002/diff/100001/src/gpu/vk/GrVkResourceProvider.h#newcode87 src/gpu/vk/GrVkResourceProvider.h:87: #define PIPELINE_STATE_CACHE_STATS On 2016/03/28 18:44:29, bsalomon wrote: > Is ...
4 years, 8 months ago (2016-03-28 18:56:39 UTC) #7
egdaniel
https://codereview.chromium.org/1836863002/diff/100001/src/gpu/vk/GrVkResourceProvider.h File src/gpu/vk/GrVkResourceProvider.h (right): https://codereview.chromium.org/1836863002/diff/100001/src/gpu/vk/GrVkResourceProvider.h#newcode87 src/gpu/vk/GrVkResourceProvider.h:87: #define PIPELINE_STATE_CACHE_STATS On 2016/03/28 18:56:39, egdaniel wrote: > On ...
4 years, 8 months ago (2016-03-28 19:24:45 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1836863002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1836863002/120001
4 years, 8 months ago (2016-03-28 19:24:58 UTC) #11
commit-bot: I haz the power
4 years, 8 months ago (2016-03-28 19:39:33 UTC) #13
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/af132770a9462f6bb9cff47254e44675d9241fe8

Powered by Google App Engine
This is Rietveld 408576698