Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1280)

Unified Diff: src/gpu/GrPipelineBuilder.h

Issue 1440513002: Enable AA stencil clip for mixed samples (Closed) Base URL: https://skia.googlesource.com/skia.git@reverts2.2
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrPipelineBuilder.h
diff --git a/src/gpu/GrPipelineBuilder.h b/src/gpu/GrPipelineBuilder.h
index 2bafd9aeabf2cee84cbdbff5191ac88da23bb273..010685b3e2a85dce11a8082aa741810da0a37319 100644
--- a/src/gpu/GrPipelineBuilder.h
+++ b/src/gpu/GrPipelineBuilder.h
@@ -209,7 +209,8 @@ public:
* than the color buffer. In is scenario, the higher sample rate is resolved during blending.
*/
bool hasMixedSamples() const {
- return this->isHWAntialias() && !fRenderTarget->isUnifiedMultisampled();
+ return fRenderTarget->hasMixedSamples() &&
+ (this->isHWAntialias() || !fStencilSettings.isDisabled());
}
/// @}
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698