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

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: 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() && renderTarget->isMultisampled(kSt encil_GrSampleConfig)) {
Chris Dalton 2015/03/12 07:43:35 >100 columns
vbuzinov 2015/03/13 13:37:22 Done.
222 GrStencilBuffer* sb = renderTarget->renderTargetPriv().attachStencilBuff er(); 222 GrStencilBuffer* sb = renderTarget->renderTargetPriv().attachStencilBuff er();
223 if (sb) { 223 if (sb) {
224 return GrStencilAndCoverTextContext::Create(this, leakyProperties); 224 return GrStencilAndCoverTextContext::Create(this, leakyProperties);
225 } 225 }
226 } 226 }
227 227
228 return GrDistanceFieldTextContext::Create(this, leakyProperties, enableDista nceFieldFonts); 228 return GrDistanceFieldTextContext::Create(this, leakyProperties, enableDista nceFieldFonts);
229 } 229 }
230 230
231 //////////////////////////////////////////////////////////////////////////////// 231 ////////////////////////////////////////////////////////////////////////////////
(...skipping 1765 matching lines...) Expand 10 before | Expand all | Expand 10 after
1997 } 1997 }
1998 } 1998 }
1999 1999
2000 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { 2000 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) {
2001 fGpu->removeGpuTraceMarker(marker); 2001 fGpu->removeGpuTraceMarker(marker);
2002 if (fDrawBuffer) { 2002 if (fDrawBuffer) {
2003 fDrawBuffer->removeGpuTraceMarker(marker); 2003 fDrawBuffer->removeGpuTraceMarker(marker);
2004 } 2004 }
2005 } 2005 }
2006 2006
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698