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

Side by Side 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: PipelineStage enum relocation 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 unified diff | Download patch
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "GrContext.h" 9 #include "GrContext.h"
10 10
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 } 211 }
212 if (resourceBytes) { 212 if (resourceBytes) {
213 *resourceBytes = fResourceCache->getBudgetedResourceBytes(); 213 *resourceBytes = fResourceCache->getBudgetedResourceBytes();
214 } 214 }
215 } 215 }
216 216
217 GrTextContext* GrContext::createTextContext(GrRenderTarget* renderTarget, 217 GrTextContext* GrContext::createTextContext(GrRenderTarget* renderTarget,
218 const SkDeviceProperties& 218 const SkDeviceProperties&
219 leakyProperties, 219 leakyProperties,
220 bool enableDistanceFieldFonts) { 220 bool enableDistanceFieldFonts) {
221 if (fGpu->caps()->pathRenderingSupport() && renderTarget->isMultisampled()) { 221 if (fGpu->caps()->pathRenderingSupport() &&
222 renderTarget->isMultisampled(GrRenderTarget::kAnywhere_PipelineStage)) {
Chris Dalton 2015/03/20 07:01:45 The nvpr requirement is for a mulitsample stencil
222 GrStencilBuffer* sb = renderTarget->renderTargetPriv().attachStencilBuff er(); 223 GrStencilBuffer* sb = renderTarget->renderTargetPriv().attachStencilBuff er();
223 if (sb) { 224 if (sb) {
224 return GrStencilAndCoverTextContext::Create(this, leakyProperties); 225 return GrStencilAndCoverTextContext::Create(this, leakyProperties);
225 } 226 }
226 } 227 }
227 228
228 return GrDistanceFieldTextContext::Create(this, leakyProperties, enableDista nceFieldFonts); 229 return GrDistanceFieldTextContext::Create(this, leakyProperties, enableDista nceFieldFonts);
229 } 230 }
230 231
231 //////////////////////////////////////////////////////////////////////////////// 232 ////////////////////////////////////////////////////////////////////////////////
(...skipping 1765 matching lines...) Expand 10 before | Expand all | Expand 10 after
1997 } 1998 }
1998 } 1999 }
1999 2000
2000 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { 2001 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) {
2001 fGpu->removeGpuTraceMarker(marker); 2002 fGpu->removeGpuTraceMarker(marker);
2002 if (fDrawBuffer) { 2003 if (fDrawBuffer) {
2003 fDrawBuffer->removeGpuTraceMarker(marker); 2004 fDrawBuffer->removeGpuTraceMarker(marker);
2004 } 2005 }
2005 } 2006 }
2006 2007
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698