OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |