Index: src/gpu/gl/GrGpuGL.cpp |
diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp |
index 75c9b3af3098a09ad1753509f26855130ccd2b63..c83a668ea38cfe6d95dfe3fe9213ac1f9b6d378b 100644 |
--- a/src/gpu/gl/GrGpuGL.cpp |
+++ b/src/gpu/gl/GrGpuGL.cpp |
@@ -1904,9 +1904,9 @@ |
} |
} |
-void GrGpuGL::flushStencil(const GrStencilSettings& stencilSettings, DrawType type) { |
- if (kStencilPath_DrawType != type && fHWStencilSettings != stencilSettings) { |
- if (stencilSettings.isDisabled()) { |
+void GrGpuGL::flushStencil(DrawType type) { |
+ if (kStencilPath_DrawType != type && fHWStencilSettings != fStencilSettings) { |
+ if (fStencilSettings.isDisabled()) { |
if (kNo_TriState != fHWStencilTestEnabled) { |
GL_CALL(Disable(GR_GL_STENCIL_TEST)); |
fHWStencilTestEnabled = kNo_TriState; |
@@ -1917,24 +1917,24 @@ |
fHWStencilTestEnabled = kYes_TriState; |
} |
} |
- if (!stencilSettings.isDisabled()) { |
+ if (!fStencilSettings.isDisabled()) { |
if (this->caps()->twoSidedStencilSupport()) { |
set_gl_stencil(this->glInterface(), |
- stencilSettings, |
+ fStencilSettings, |
GR_GL_FRONT, |
GrStencilSettings::kFront_Face); |
set_gl_stencil(this->glInterface(), |
- stencilSettings, |
+ fStencilSettings, |
GR_GL_BACK, |
GrStencilSettings::kBack_Face); |
} else { |
set_gl_stencil(this->glInterface(), |
- stencilSettings, |
+ fStencilSettings, |
GR_GL_FRONT_AND_BACK, |
GrStencilSettings::kFront_Face); |
} |
} |
- fHWStencilSettings = stencilSettings; |
+ fHWStencilSettings = fStencilSettings; |
} |
} |