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

Side by Side Diff: src/fonts/SkRemotableFontMgr.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/fonts/SkRandomScalerContext.cpp ('k') | src/fonts/SkTestScalerContext.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 "SkRemotableFontMgr.h" 8 #include "SkRemotableFontMgr.h"
9 9
10 #include "SkLazyPtr.h" 10 #include "SkLazyPtr.h"
11 11
12 SkRemotableFontIdentitySet::SkRemotableFontIdentitySet(int count, SkFontIdentity ** data) 12 SkRemotableFontIdentitySet::SkRemotableFontIdentitySet(int count, SkFontIdentity ** data)
13 : fCount(count), fData(count) 13 : fCount(count), fData(count)
14 { 14 {
15 SkASSERT(data); 15 SkASSERT(data);
16 *data = fData; 16 *data = fData;
17 } 17 }
18 18
19 // As a template argument, this must have external linkage. 19 // As a template argument, this must have external linkage.
20 SkRemotableFontIdentitySet* sk_remotable_font_identity_set_new() { 20 SkRemotableFontIdentitySet* sk_remotable_font_identity_set_new() {
21 return SkNEW(SkRemotableFontIdentitySet); 21 return new SkRemotableFontIdentitySet;
22 } 22 }
23 23
24 SK_DECLARE_STATIC_LAZY_PTR(SkRemotableFontIdentitySet, empty, sk_remotable_font_ identity_set_new); 24 SK_DECLARE_STATIC_LAZY_PTR(SkRemotableFontIdentitySet, empty, sk_remotable_font_ identity_set_new);
25 SkRemotableFontIdentitySet* SkRemotableFontIdentitySet::NewEmpty() { 25 SkRemotableFontIdentitySet* SkRemotableFontIdentitySet::NewEmpty() {
26 return SkRef(empty.get()); 26 return SkRef(empty.get());
27 } 27 }
OLDNEW
« no previous file with comments | « src/fonts/SkRandomScalerContext.cpp ('k') | src/fonts/SkTestScalerContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698