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

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

Issue 2068523002: Fix compile error (uninitialized variable use) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Let's abort if this ever happens. It shouldn't. Created 4 years, 6 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/GrVkGpuCommandBuffer.cpp
diff --git a/src/gpu/vk/GrVkGpuCommandBuffer.cpp b/src/gpu/vk/GrVkGpuCommandBuffer.cpp
index e9a13d4517263709ad117dd0257acdd3a2e08c1e..f6104a33083693f28cca8a91c17b47bddaa260a7 100644
--- a/src/gpu/vk/GrVkGpuCommandBuffer.cpp
+++ b/src/gpu/vk/GrVkGpuCommandBuffer.cpp
@@ -40,6 +40,11 @@ void get_vk_load_store_ops(GrGpuCommandBuffer::LoadAndStoreOp op,
*loadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE;
*storeOp = VK_ATTACHMENT_STORE_OP_DONT_CARE;
break;
+ default:
+ SK_ABORT("Invalid LoadAndStoreOp");
+ *loadOp = VK_ATTACHMENT_LOAD_OP_LOAD;
+ *storeOp = VK_ATTACHMENT_STORE_OP_STORE;
+ break;
}
}
« 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