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

Side by Side Diff: src/gpu/vk/GrVkProgramDataManager.h

Issue 1774963003: Buffer fix for VkProgram caching (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments Created 4 years, 9 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/vk/GrVkBuffer.cpp ('k') | src/gpu/vk/GrVkProgramDataManager.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 #ifndef GrVkProgramDataManager_DEFINED 8 #ifndef GrVkProgramDataManager_DEFINED
9 #define GrVkProgramDataManager_DEFINED 9 #define GrVkProgramDataManager_DEFINED
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 SkDEBUGCODE( 56 SkDEBUGCODE(
57 GrSLType fType; 57 GrSLType fType;
58 int fArrayCount; 58 int fArrayCount;
59 uint32_t fSetNumber; 59 uint32_t fSetNumber;
60 ); 60 );
61 }; 61 };
62 62
63 template<int N> inline void setMatrices(UniformHandle, int arrayCount, 63 template<int N> inline void setMatrices(UniformHandle, int arrayCount,
64 const float matrices[]) const; 64 const float matrices[]) const;
65 65
66 void* getBufferPtrAndMarkDirty(const Uniform& uni) const;
67
66 uint32_t fVertexUniformSize; 68 uint32_t fVertexUniformSize;
67 uint32_t fFragmentUniformSize; 69 uint32_t fFragmentUniformSize;
68 70
69 SkTArray<Uniform, true> fUniforms; 71 SkTArray<Uniform, true> fUniforms;
70 72
71 mutable SkAutoMalloc fVertexUniformData; 73 mutable SkAutoMalloc fVertexUniformData;
72 mutable SkAutoMalloc fFragmentUniformData; 74 mutable SkAutoMalloc fFragmentUniformData;
75 mutable bool fVertexUniformsDirty;
76 mutable bool fFragmentUniformsDirty;
73 }; 77 };
74 78
75 #endif 79 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkBuffer.cpp ('k') | src/gpu/vk/GrVkProgramDataManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698