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

Unified Diff: src/gpu/GrStencil.cpp

Issue 1816153002: Set up cache in vulkan to reuse GrVkPrograms (aka VkPipelines) (Closed) Base URL: https://skia.googlesource.com/skia.git@progSamplers
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrStencil.h ('k') | src/gpu/gl/GrGLGpu.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrStencil.cpp
diff --git a/src/gpu/GrStencil.cpp b/src/gpu/GrStencil.cpp
index f37aa317ec37b20f9ff0f731278ab27dedc8bf66..9dfe330a5c7af39b530a1732f8bb8a959cc486ee 100644
--- a/src/gpu/GrStencil.cpp
+++ b/src/gpu/GrStencil.cpp
@@ -9,6 +9,8 @@
#include "GrStencil.h"
+#include "GrProcessor.h"
+
////////////////////////////////////////////////////////////////////////////////
// Stencil Rules for Merging user stencil space into clip
@@ -393,3 +395,10 @@ bool GrStencilSettings::GetClipPasses(
}
return false;
}
+
+void GrStencilSettings::genKey(GrProcessorKeyBuilder* b) const {
+ static const int kCount = sizeof(GrStencilSettings) / sizeof(uint32_t);
+ GR_STATIC_ASSERT(0 == sizeof(GrStencilSettings) % sizeof(uint32_t));
+ uint32_t* key = b->add32n(kCount);
+ memcpy(key, this, sizeof(GrStencilSettings));
+}
« no previous file with comments | « src/gpu/GrStencil.h ('k') | src/gpu/gl/GrGLGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698