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

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

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 EDT Created 5 years, 3 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/GrStencilAndCoverPathRenderer.cpp ('k') | src/gpu/GrTessellatingPathRenderer.cpp » ('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 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "GrStencilAndCoverTextContext.h" 8 #include "GrStencilAndCoverTextContext.h"
9 #include "GrAtlasTextContext.h" 9 #include "GrAtlasTextContext.h"
10 #include "GrDrawContext.h" 10 #include "GrDrawContext.h"
(...skipping 15 matching lines...) Expand all
26 const SkSurfaceProps& surfaceProps) 26 const SkSurfaceProps& surfaceProps)
27 : GrTextContext(context, drawContext, surfaceProps) 27 : GrTextContext(context, drawContext, surfaceProps)
28 , fStroke(SkStrokeRec::kFill_InitStyle) 28 , fStroke(SkStrokeRec::kFill_InitStyle)
29 , fQueuedGlyphCount(0) 29 , fQueuedGlyphCount(0)
30 , fFallbackGlyphsIdx(kGlyphBufferSize) { 30 , fFallbackGlyphsIdx(kGlyphBufferSize) {
31 } 31 }
32 32
33 GrStencilAndCoverTextContext* 33 GrStencilAndCoverTextContext*
34 GrStencilAndCoverTextContext::Create(GrContext* context, GrDrawContext* drawCont ext, 34 GrStencilAndCoverTextContext::Create(GrContext* context, GrDrawContext* drawCont ext,
35 const SkSurfaceProps& surfaceProps) { 35 const SkSurfaceProps& surfaceProps) {
36 GrStencilAndCoverTextContext* textContext = SkNEW_ARGS(GrStencilAndCoverText Context, 36 GrStencilAndCoverTextContext* textContext =
37 (context, drawContext , surfaceProps)); 37 new GrStencilAndCoverTextContext(context, drawContext, surfaceProps) ;
38 textContext->fFallbackTextContext = GrAtlasTextContext::Create(context, draw Context, surfaceProps); 38 textContext->fFallbackTextContext = GrAtlasTextContext::Create(context, draw Context, surfaceProps);
39 39
40 return textContext; 40 return textContext;
41 } 41 }
42 42
43 GrStencilAndCoverTextContext::~GrStencilAndCoverTextContext() { 43 GrStencilAndCoverTextContext::~GrStencilAndCoverTextContext() {
44 } 44 }
45 45
46 bool GrStencilAndCoverTextContext::canDraw(const GrRenderTarget* rt, 46 bool GrStencilAndCoverTextContext::canDraw(const GrRenderTarget* rt,
47 const GrClip& clip, 47 const GrClip& clip,
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 487
488 fGlyphs->unref(); 488 fGlyphs->unref();
489 fGlyphs = NULL; 489 fGlyphs = NULL;
490 490
491 SkGlyphCache::AttachCache(fGlyphCache); 491 SkGlyphCache::AttachCache(fGlyphCache);
492 fGlyphCache = NULL; 492 fGlyphCache = NULL;
493 493
494 fViewMatrix = fContextInitialMatrix; 494 fViewMatrix = fContextInitialMatrix;
495 } 495 }
496 496
OLDNEW
« no previous file with comments | « src/gpu/GrStencilAndCoverPathRenderer.cpp ('k') | src/gpu/GrTessellatingPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698