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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 leakyProperties, | 234 leakyProperties, |
235 bool enableDistanceFieldFonts) { | 235 bool enableDistanceFieldFonts) { |
236 if (fGpu->caps()->pathRenderingSupport() && renderTarget->isMultisampled())
{ | 236 if (fGpu->caps()->pathRenderingSupport() && renderTarget->isMultisampled())
{ |
237 GrStencilBuffer* sb = renderTarget->renderTargetPriv().attachStencilBuff
er(); | 237 GrStencilBuffer* sb = renderTarget->renderTargetPriv().attachStencilBuff
er(); |
238 if (sb) { | 238 if (sb) { |
239 return GrStencilAndCoverTextContext::Create(this, gpuDevice, leakyPr
operties); | 239 return GrStencilAndCoverTextContext::Create(this, gpuDevice, leakyPr
operties); |
240 } | 240 } |
241 } | 241 } |
242 | 242 |
243 #ifdef USE_BITMAP_TEXTBLOBS | 243 #ifdef USE_BITMAP_TEXTBLOBS |
244 return GrAtlasTextContext::Create(this, gpuDevice, leakyProperties); | 244 return GrAtlasTextContext::Create(this, gpuDevice, leakyProperties, enableDi
stanceFieldFonts); |
245 #else | 245 #else |
246 return GrDistanceFieldTextContext::Create(this, gpuDevice, leakyProperties, | 246 return GrDistanceFieldTextContext::Create(this, gpuDevice, leakyProperties, |
247 enableDistanceFieldFonts); | 247 enableDistanceFieldFonts); |
248 #endif | 248 #endif |
249 } | 249 } |
250 | 250 |
251 //////////////////////////////////////////////////////////////////////////////// | 251 //////////////////////////////////////////////////////////////////////////////// |
252 enum ScratchTextureFlags { | 252 enum ScratchTextureFlags { |
253 kExact_ScratchTextureFlag = 0x1, | 253 kExact_ScratchTextureFlag = 0x1, |
254 kNoPendingIO_ScratchTextureFlag = 0x2, | 254 kNoPendingIO_ScratchTextureFlag = 0x2, |
(...skipping 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2030 } | 2030 } |
2031 } | 2031 } |
2032 | 2032 |
2033 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { | 2033 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { |
2034 fGpu->removeGpuTraceMarker(marker); | 2034 fGpu->removeGpuTraceMarker(marker); |
2035 if (fDrawBuffer) { | 2035 if (fDrawBuffer) { |
2036 fDrawBuffer->removeGpuTraceMarker(marker); | 2036 fDrawBuffer->removeGpuTraceMarker(marker); |
2037 } | 2037 } |
2038 } | 2038 } |
2039 | 2039 |
OLD | NEW |