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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
222 if (resourceBytes) { | 222 if (resourceBytes) { |
223 *resourceBytes = fResourceCache->getBudgetedResourceBytes(); | 223 *resourceBytes = fResourceCache->getBudgetedResourceBytes(); |
224 } | 224 } |
225 } | 225 } |
226 | 226 |
227 GrTextContext* GrContext::createTextContext(GrRenderTarget* renderTarget, | 227 GrTextContext* GrContext::createTextContext(GrRenderTarget* renderTarget, |
228 SkGpuDevice* gpuDevice, | 228 SkGpuDevice* gpuDevice, |
229 const SkDeviceProperties& | 229 const SkDeviceProperties& |
230 leakyProperties, | 230 leakyProperties, |
231 bool enableDistanceFieldFonts) { | 231 bool enableDistanceFieldFonts) { |
232 if (fGpu->caps()->pathRenderingSupport() && renderTarget->isMultisampled()) { | 232 if (fGpu->caps()->pathRenderingSupport() && |
233 renderTarget->isMultisampled(GrRenderTarget::BufferBits::kStencil_Buffer Bit)) { | |
Chris Dalton
2015/04/07 23:48:23
We shouldn't need a scope resultion here ("BufferB
vbuzinov
2015/04/08 12:05:30
Done.
| |
233 GrStencilBuffer* sb = renderTarget->renderTargetPriv().attachStencilBuff er(); | 234 GrStencilBuffer* sb = renderTarget->renderTargetPriv().attachStencilBuff er(); |
234 if (sb) { | 235 if (sb) { |
235 return GrStencilAndCoverTextContext::Create(this, gpuDevice, leakyPr operties); | 236 return GrStencilAndCoverTextContext::Create(this, gpuDevice, leakyPr operties); |
236 } | 237 } |
237 } | 238 } |
238 | 239 |
239 #ifdef USE_BITMAP_TEXTBLOBS | 240 #ifdef USE_BITMAP_TEXTBLOBS |
240 return GrAtlasTextContext::Create(this, gpuDevice, leakyProperties); | 241 return GrAtlasTextContext::Create(this, gpuDevice, leakyProperties); |
241 #else | 242 #else |
242 return GrDistanceFieldTextContext::Create(this, gpuDevice, leakyProperties, | 243 return GrDistanceFieldTextContext::Create(this, gpuDevice, leakyProperties, |
(...skipping 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2013 } | 2014 } |
2014 } | 2015 } |
2015 | 2016 |
2016 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { | 2017 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { |
2017 fGpu->removeGpuTraceMarker(marker); | 2018 fGpu->removeGpuTraceMarker(marker); |
2018 if (fDrawBuffer) { | 2019 if (fDrawBuffer) { |
2019 fDrawBuffer->removeGpuTraceMarker(marker); | 2020 fDrawBuffer->removeGpuTraceMarker(marker); |
2020 } | 2021 } |
2021 } | 2022 } |
2022 | 2023 |
OLD | NEW |