Index: src/gpu/gl/GrGLProgramDesc.cpp |
diff --git a/src/gpu/gl/GrGLProgramDesc.cpp b/src/gpu/gl/GrGLProgramDesc.cpp |
index 631cf42adc13c542684e5a04c709b8572ad7747c..299e0473ad77c69fc735497713f8c6c16c1cc9e7 100644 |
--- a/src/gpu/gl/GrGLProgramDesc.cpp |
+++ b/src/gpu/gl/GrGLProgramDesc.cpp |
@@ -130,18 +130,11 @@ bool GrGLProgramDescBuilder::Build(const GrOptDrawState& optState, |
// --------DO NOT MOVE HEADER ABOVE THIS LINE-------------------------------------------------- |
// Because header is a pointer into the dynamic array, we can't push any new data into the key |
// below here. |
- GLKeyHeader* header = desc->atOffset<GLKeyHeader, kHeaderOffset>(); |
+ KeyHeader* header = desc->atOffset<KeyHeader, kHeaderOffset>(); |
// make sure any padding in the header is zeroed. |
memset(header, 0, kHeaderSize); |
- bool isPathRendering = GrGpu::IsPathRenderingDrawType(drawType); |
- if (gpu->caps()->pathRenderingSupport() && isPathRendering) { |
- header->fUseNvpr = true; |
- } else { |
- header->fUseNvpr = false; |
- } |
- |
if (descInfo.fReadsDst) { |
const GrDeviceCoordTexture* dstCopy = optState.getDstCopy(); |
SkASSERT(dstCopy || gpu->caps()->dstReadInShaderSupport()); |