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

Side by Side Diff: src/gpu/vk/GrVkPipelineStateCache.cpp

Issue 2212473002: SkRTConf: eliminate (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: `git grep SK_CONF` now returns nothing Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/gl/builders/GrGLShaderStringBuilder.cpp ('k') | src/images/SkJPEGImageEncoder.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 Google Inc. 2 * Copyright 2016 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "GrVkResourceProvider.h" 8 #include "GrVkResourceProvider.h"
9 9
10 #include "GrVkGpu.h" 10 #include "GrVkGpu.h"
11 #include "GrProcessor.h" 11 #include "GrProcessor.h"
12 #include "GrVkPipelineState.h" 12 #include "GrVkPipelineState.h"
13 #include "GrVkPipelineStateBuilder.h" 13 #include "GrVkPipelineStateBuilder.h"
14 #include "SkRTConf.h"
15 #include "glsl/GrGLSLFragmentProcessor.h" 14 #include "glsl/GrGLSLFragmentProcessor.h"
16 #include "glsl/GrGLSLProgramDataManager.h" 15 #include "glsl/GrGLSLProgramDataManager.h"
17 16
18 #ifdef GR_PIPELINE_STATE_CACHE_STATS 17 #ifdef GR_PIPELINE_STATE_CACHE_STATS
19 SK_CONF_DECLARE(bool, c_DisplayVkPipelineCache, "gpu.displayyVkPipelineCache", f alse, 18 // Display pipeline state cache usage
20 "Display pipeline state cache usage."); 19 static const bool c_DisplayVkPipelineCache{false};
21 #endif 20 #endif
22 21
23 struct GrVkResourceProvider::PipelineStateCache::Entry { 22 struct GrVkResourceProvider::PipelineStateCache::Entry {
24 23
25 Entry() : fPipelineState(nullptr) {} 24 Entry() : fPipelineState(nullptr) {}
26 25
27 static const GrVkPipelineState::Desc& GetKey(const Entry* entry) { 26 static const GrVkPipelineState::Desc& GetKey(const Entry* entry) {
28 return entry->fPipelineState->getDesc(); 27 return entry->fPipelineState->getDesc();
29 } 28 }
30 29
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 entry->fPipelineState = std::move(pipelineState); 147 entry->fPipelineState = std::move(pipelineState);
149 fHashTable.set(entry); 148 fHashTable.set(entry);
150 fLRUList.addToTail(entry); 149 fLRUList.addToTail(entry);
151 return entry->fPipelineState; 150 return entry->fPipelineState;
152 } else { 151 } else {
153 fLRUList.remove(entry); 152 fLRUList.remove(entry);
154 fLRUList.addToTail(entry); 153 fLRUList.addToTail(entry);
155 } 154 }
156 return entry->fPipelineState; 155 return entry->fPipelineState;
157 } 156 }
OLDNEW
« no previous file with comments | « src/gpu/gl/builders/GrGLShaderStringBuilder.cpp ('k') | src/images/SkJPEGImageEncoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698