Index: src/gpu/gl/GrGLGpu.cpp |
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp |
index d309dc1b937353b0607166253461463690077bb4..1c07291de0781331b8dc4147c0bd42faf04de6bd 100644 |
--- a/src/gpu/gl/GrGLGpu.cpp |
+++ b/src/gpu/gl/GrGLGpu.cpp |
@@ -494,7 +494,7 @@ |
fHWBufferState[kXferCpuToGpu_GrBufferType].invalidate(); |
fHWBufferState[kXferGpuToCpu_GrBufferType].invalidate(); |
- fHWDrawFace = GrDrawFace::kInvalid; |
+ fHWDrawFace = GrPipelineBuilder::kInvalid_DrawFace; |
if (kGL_GrGLStandard == this->glStandard()) { |
// Desktop-only state that we never change |
@@ -2793,7 +2793,7 @@ |
blendInfo.reset(); |
this->flushBlend(blendInfo, GrSwizzle()); |
this->flushColorWrite(true); |
- this->flushDrawFace(GrDrawFace::kBoth); |
+ this->flushDrawFace(GrPipelineBuilder::kBoth_DrawFace); |
if (!fHWStencilSettings.isDisabled()) { |
GL_CALL(Disable(GR_GL_STENCIL_TEST)); |
} |
@@ -3359,18 +3359,18 @@ |
} |
} |
-void GrGLGpu::flushDrawFace(GrDrawFace face) { |
+void GrGLGpu::flushDrawFace(GrPipelineBuilder::DrawFace face) { |
if (fHWDrawFace != face) { |
switch (face) { |
- case GrDrawFace::kCCW: |
+ case GrPipelineBuilder::kCCW_DrawFace: |
GL_CALL(Enable(GR_GL_CULL_FACE)); |
GL_CALL(CullFace(GR_GL_BACK)); |
break; |
- case GrDrawFace::kCW: |
+ case GrPipelineBuilder::kCW_DrawFace: |
GL_CALL(Enable(GR_GL_CULL_FACE)); |
GL_CALL(CullFace(GR_GL_FRONT)); |
break; |
- case GrDrawFace::kBoth: |
+ case GrPipelineBuilder::kBoth_DrawFace: |
GL_CALL(Disable(GR_GL_CULL_FACE)); |
break; |
default: |
@@ -4088,7 +4088,7 @@ |
blendInfo.reset(); |
this->flushBlend(blendInfo, GrSwizzle::RGBA()); |
this->flushColorWrite(true); |
- this->flushDrawFace(GrDrawFace::kBoth); |
+ this->flushDrawFace(GrPipelineBuilder::kBoth_DrawFace); |
this->flushHWAAState(glRT, false, false); |
this->disableScissor(); |
GrStencilSettings stencil; |
@@ -4176,7 +4176,7 @@ |
blendInfo.reset(); |
this->flushBlend(blendInfo, GrSwizzle::RGBA()); |
this->flushColorWrite(true); |
- this->flushDrawFace(GrDrawFace::kBoth); |
+ this->flushDrawFace(GrPipelineBuilder::kBoth_DrawFace); |
this->flushHWAAState(nullptr, false, false); |
this->disableScissor(); |
GrStencilSettings stencil; |
@@ -4384,7 +4384,7 @@ |
blendInfo.reset(); |
this->flushBlend(blendInfo, GrSwizzle::RGBA()); |
this->flushColorWrite(true); |
- this->flushDrawFace(GrDrawFace::kBoth); |
+ this->flushDrawFace(GrPipelineBuilder::kBoth_DrawFace); |
this->flushHWAAState(nullptr, false, false); |
this->disableScissor(); |
GrStencilSettings stencil; |