Index: src/gpu/gl/GrGLGpu.cpp |
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp |
index cd6bf39adc76c71f3ee6c3172fe24e164eb49f71..5388387c3b0104a198ab58bae9b6c5b974fde7ce 100644 |
--- a/src/gpu/gl/GrGLGpu.cpp |
+++ b/src/gpu/gl/GrGLGpu.cpp |
@@ -1476,7 +1476,7 @@ |
GrGLRenderTarget* glRT = static_cast<GrGLRenderTarget*>(pipeline.getRenderTarget()); |
this->flushStencil(pipeline.getStencil()); |
this->flushScissor(pipeline.getScissorState(), glRT->getViewport(), glRT->origin()); |
- this->flushHWAAState(glRT, pipeline.isHWAntialiasState(), !pipeline.getStencil().isDisabled()); |
+ this->flushHWAAState(glRT, pipeline.isHWAntialiasState()); |
// This must come after textures are flushed because a texture may need |
// to be msaa-resolved (which will modify bound FBO state). |
@@ -1897,22 +1897,6 @@ |
} |
} |
return true; |
-} |
- |
-void GrGLGpu::setColocatedSampleLocations(GrRenderTarget* rt, bool useColocatedSampleLocations) { |
- GrGLRenderTarget* target = static_cast<GrGLRenderTarget*>(rt->asRenderTarget()); |
- SkASSERT(0 != target->renderFBOID()); |
- |
- if (!rt->isStencilBufferMultisampled() || |
- useColocatedSampleLocations == target->usesColocatedSampleLocations()) { |
- return; |
- } |
- |
- GL_CALL(NamedFramebufferParameteri(target->renderFBOID(), |
- GR_GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS, |
- useColocatedSampleLocations)); |
- |
- target->flagAsUsingColocatedSampleLocations(useColocatedSampleLocations); |
} |
void GrGLGpu::flushRenderTarget(GrGLRenderTarget* target, const SkIRect* bound) { |
@@ -2162,18 +2146,8 @@ |
} |
} |
-void GrGLGpu::flushHWAAState(GrRenderTarget* rt, bool useHWAA, bool stencilEnabled) { |
+void GrGLGpu::flushHWAAState(GrRenderTarget* rt, bool useHWAA) { |
SkASSERT(!useHWAA || rt->isStencilBufferMultisampled()); |
- |
- if (rt->hasMixedSamples() && stencilEnabled && |
- this->glCaps().glslCaps()->programmableSampleLocationsSupport()) { |
- if (useHWAA) { |
- this->setColocatedSampleLocations(rt, false); |
- } else { |
- this->setColocatedSampleLocations(rt, true); |
- } |
- useHWAA = true; |
- } |
if (this->glCaps().multisampleDisableSupport()) { |
if (useHWAA) { |
@@ -2954,7 +2928,7 @@ |
this->flushBlend(blendInfo); |
this->flushColorWrite(true); |
this->flushDrawFace(GrPipelineBuilder::kBoth_DrawFace); |
- this->flushHWAAState(dstRT, false, false); |
+ this->flushHWAAState(dstRT, false); |
this->disableScissor(); |
GrStencilSettings stencil; |
stencil.setDisabled(); |