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

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

Issue 1083133002: Rename GrStencilBuffer to GrStencilAttachment (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Align data member 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/GrClipMaskManager.cpp ('k') | src/gpu/GrDrawTarget.h » ('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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 Attachment();
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
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
OLDNEW
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | src/gpu/GrDrawTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698