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

Unified Diff: src/gpu/GrContext.cpp

Issue 1001503002: Implement support for mixed sampled render targets (Closed) Base URL: https://skia.googlesource.com/skia.git@mix1
Patch Set: Undo modification in GrPipelineBuilder Created 5 years, 9 months 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
Index: src/gpu/GrContext.cpp
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 78f29e73bc713d773ce27ce94164244316b83c25..ed4709df64274a7d2c454421e08d8fd9c9ecd4bc 100755
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -218,7 +218,8 @@ GrTextContext* GrContext::createTextContext(GrRenderTarget* renderTarget,
const SkDeviceProperties&
leakyProperties,
bool enableDistanceFieldFonts) {
- if (fGpu->caps()->pathRenderingSupport() && renderTarget->isMultisampled()) {
+ if (fGpu->caps()->pathRenderingSupport() &&
+ renderTarget->isMultisampled(GrRenderTarget::kStencilBuffer_PipelineStage)) {
GrStencilBuffer* sb = renderTarget->renderTargetPriv().attachStencilBuffer();
if (sb) {
return GrStencilAndCoverTextContext::Create(this, leakyProperties);
« no previous file with comments | « include/gpu/GrTypes.h ('k') | src/gpu/GrPipeline.cpp » ('j') | src/gpu/GrPipeline.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698