| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 *resourceBytes = fResourceCache->getBudgetedResourceBytes(); | 227 *resourceBytes = fResourceCache->getBudgetedResourceBytes(); |
| 228 } | 228 } |
| 229 } | 229 } |
| 230 | 230 |
| 231 GrTextContext* GrContext::createTextContext(GrRenderTarget* renderTarget, | 231 GrTextContext* GrContext::createTextContext(GrRenderTarget* renderTarget, |
| 232 SkGpuDevice* gpuDevice, | 232 SkGpuDevice* gpuDevice, |
| 233 const SkDeviceProperties& | 233 const SkDeviceProperties& |
| 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 GrStencilAttachment* sb = renderTarget->renderTargetPriv().attachStencil
Buffer(); |
| 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); |
| 245 #else | 245 #else |
| 246 return GrDistanceFieldTextContext::Create(this, gpuDevice, leakyProperties, | 246 return GrDistanceFieldTextContext::Create(this, gpuDevice, leakyProperties, |
| 247 enableDistanceFieldFonts); | 247 enableDistanceFieldFonts); |
| (...skipping 1782 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 |