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

Unified Diff: src/gpu/vk/GrVkPipeline.cpp

Issue 1930323003: Unbreak vulkan after stencil constant name changes (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/vk/GrVkPipeline.cpp
diff --git a/src/gpu/vk/GrVkPipeline.cpp b/src/gpu/vk/GrVkPipeline.cpp
index 53e9dba08f7e63faaeccfc05dd020632c97a408b..2a9c6e2dd46d069c1ca948d7ef3cea8c40ca0eb6 100644
--- a/src/gpu/vk/GrVkPipeline.cpp
+++ b/src/gpu/vk/GrVkPipeline.cpp
@@ -109,7 +109,7 @@ VkStencilOp stencil_op_to_vk_stencil_op(GrStencilOp op) {
VK_STENCIL_OP_ZERO, // kZero_StencilOp
VK_STENCIL_OP_INVERT, // kInvert_StencilOp
};
- GR_STATIC_ASSERT(SK_ARRAY_COUNT(gTable) == kStencilOpCount);
+ GR_STATIC_ASSERT(SK_ARRAY_COUNT(gTable) == kStencilOpCnt);
GR_STATIC_ASSERT(0 == kKeep_StencilOp);
GR_STATIC_ASSERT(1 == kReplace_StencilOp);
GR_STATIC_ASSERT(2 == kIncWrap_StencilOp);
@@ -118,7 +118,7 @@ VkStencilOp stencil_op_to_vk_stencil_op(GrStencilOp op) {
GR_STATIC_ASSERT(5 == kDecClamp_StencilOp);
GR_STATIC_ASSERT(6 == kZero_StencilOp);
GR_STATIC_ASSERT(7 == kInvert_StencilOp);
- SkASSERT((unsigned)op < kStencilOpCount);
+ SkASSERT((unsigned)op < kStencilOpCnt);
return gTable[op];
}
@@ -133,7 +133,7 @@ VkCompareOp stencil_func_to_vk_compare_op(GrStencilFunc basicFunc) {
VK_COMPARE_OP_EQUAL, // kEqual_StencilFunc,
VK_COMPARE_OP_NOT_EQUAL, // kNotEqual_StencilFunc,
};
- GR_STATIC_ASSERT(SK_ARRAY_COUNT(gTable) == kBasicStencilFuncCount);
+ GR_STATIC_ASSERT(SK_ARRAY_COUNT(gTable) == kBasicStencilFuncCnt);
GR_STATIC_ASSERT(0 == kAlways_StencilFunc);
GR_STATIC_ASSERT(1 == kNever_StencilFunc);
GR_STATIC_ASSERT(2 == kGreater_StencilFunc);
@@ -142,7 +142,7 @@ VkCompareOp stencil_func_to_vk_compare_op(GrStencilFunc basicFunc) {
GR_STATIC_ASSERT(5 == kLEqual_StencilFunc);
GR_STATIC_ASSERT(6 == kEqual_StencilFunc);
GR_STATIC_ASSERT(7 == kNotEqual_StencilFunc);
- SkASSERT((unsigned)basicFunc < kBasicStencilFuncCount);
+ SkASSERT((unsigned)basicFunc < kBasicStencilFuncCnt);
return gTable[basicFunc];
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698