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

Unified Diff: tools/viewer/sk_app/VulkanWindowContext.cpp

Issue 2370953002: Revert of Fix bufferIndex check in VulkanWindowContext (Closed)
Patch Set: Created 4 years, 3 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: tools/viewer/sk_app/VulkanWindowContext.cpp
diff --git a/tools/viewer/sk_app/VulkanWindowContext.cpp b/tools/viewer/sk_app/VulkanWindowContext.cpp
index 91ab054eaf26adf65f0a27271284e67124036d06..8d7dceeb8c45952456dc8ab2b726b866f7fcabec 100644
--- a/tools/viewer/sk_app/VulkanWindowContext.cpp
+++ b/tools/viewer/sk_app/VulkanWindowContext.cpp
@@ -412,7 +412,7 @@
SkASSERT(fBackbuffers);
++fCurrentBackbufferIndex;
- if (fCurrentBackbufferIndex >= fImageCount) {
+ if (fCurrentBackbufferIndex > fImageCount) {
fCurrentBackbufferIndex = 0;
}
« 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