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

Side by Side Diff: src/gpu/GrContext.cpp

Issue 1082843002: Initial CL to add distance field support to GrAtlasTextContext (Closed) Base URL: https://skia.googlesource.com/skia.git@attryst2
Patch Set: windows warnigns Created 5 years, 8 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
« no previous file with comments | « src/gpu/GrAtlasTextContext.cpp ('k') | src/gpu/GrDistanceFieldTextContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 leakyProperties, 235 leakyProperties,
236 bool enableDistanceFieldFonts) { 236 bool enableDistanceFieldFonts) {
237 if (fGpu->caps()->pathRenderingSupport() && renderTarget->isMultisampled()) { 237 if (fGpu->caps()->pathRenderingSupport() && renderTarget->isMultisampled()) {
238 GrStencilAttachment* sb = renderTarget->renderTargetPriv().attachStencil Attachment(); 238 GrStencilAttachment* sb = renderTarget->renderTargetPriv().attachStencil Attachment();
239 if (sb) { 239 if (sb) {
240 return GrStencilAndCoverTextContext::Create(this, gpuDevice, leakyPr operties); 240 return GrStencilAndCoverTextContext::Create(this, gpuDevice, leakyPr operties);
241 } 241 }
242 } 242 }
243 243
244 #ifdef USE_BITMAP_TEXTBLOBS 244 #ifdef USE_BITMAP_TEXTBLOBS
245 return GrAtlasTextContext::Create(this, gpuDevice, leakyProperties); 245 return GrAtlasTextContext::Create(this, gpuDevice, leakyProperties, enableDi stanceFieldFonts);
246 #else 246 #else
247 return GrDistanceFieldTextContext::Create(this, gpuDevice, leakyProperties, 247 return GrDistanceFieldTextContext::Create(this, gpuDevice, leakyProperties,
248 enableDistanceFieldFonts); 248 enableDistanceFieldFonts);
249 #endif 249 #endif
250 } 250 }
251 251
252 //////////////////////////////////////////////////////////////////////////////// 252 ////////////////////////////////////////////////////////////////////////////////
253 enum ScratchTextureFlags { 253 enum ScratchTextureFlags {
254 kExact_ScratchTextureFlag = 0x1, 254 kExact_ScratchTextureFlag = 0x1,
255 kNoPendingIO_ScratchTextureFlag = 0x2, 255 kNoPendingIO_ScratchTextureFlag = 0x2,
(...skipping 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after
2031 } 2031 }
2032 } 2032 }
2033 2033
2034 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { 2034 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) {
2035 fGpu->removeGpuTraceMarker(marker); 2035 fGpu->removeGpuTraceMarker(marker);
2036 if (fDrawBuffer) { 2036 if (fDrawBuffer) {
2037 fDrawBuffer->removeGpuTraceMarker(marker); 2037 fDrawBuffer->removeGpuTraceMarker(marker);
2038 } 2038 }
2039 } 2039 }
2040 2040
OLDNEW
« no previous file with comments | « src/gpu/GrAtlasTextContext.cpp ('k') | src/gpu/GrDistanceFieldTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698