Index: src/gpu/vk/GrVkPipelineStateCache.cpp |
diff --git a/src/gpu/vk/GrVkPipelineStateCache.cpp b/src/gpu/vk/GrVkPipelineStateCache.cpp |
index 5e4013df149de19cef40d20ab07b0637ed981030..d404a8d444e61a7d4ad013c675d6283b3335cc73 100644 |
--- a/src/gpu/vk/GrVkPipelineStateCache.cpp |
+++ b/src/gpu/vk/GrVkPipelineStateCache.cpp |
@@ -11,6 +11,7 @@ |
#include "GrProcessor.h" |
#include "GrVkPipelineState.h" |
#include "GrVkPipelineStateBuilder.h" |
+#include "SkOpts.h" |
#include "glsl/GrGLSLFragmentProcessor.h" |
#include "glsl/GrGLSLProgramDataManager.h" |
@@ -112,8 +113,8 @@ sk_sp<GrVkPipelineState> GrVkResourceProvider::PipelineStateCache::refPipelineSt |
int keyLength = desc.fStateKey.count(); |
SkASSERT(0 == (keyLength % 4)); |
// Seed the checksum with the checksum of the programDesc then add the vulkan key to it. |
- desc.fChecksum = SkChecksum::Murmur3(desc.fStateKey.begin(), keyLength, |
- desc.fProgramDesc.getChecksum()); |
+ desc.fChecksum = SkOpts::hash(desc.fStateKey.begin(), keyLength, |
+ desc.fProgramDesc.getChecksum()); |
Entry* entry = nullptr; |
if (Entry** entryptr = fHashTable.find(desc)) { |