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

Side by Side Diff: src/fonts/SkRemotableFontMgr.cpp

Issue 206683002: A remotable font management interface and DirectWrite implementation. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/fonts/SkFontMgr_indirect.cpp ('k') | src/ports/SkFontHost_win.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2014 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #include "SkRemotableFontMgr.h"
9
10 #include "SkOnce.h"
11
12 SkRemotableFontIdentitySet::SkRemotableFontIdentitySet(int count, SkFontIdentity ** data)
13 : fCount(count), fData(count)
14 {
15 SkASSERT(data);
16 *data = fData;
17 }
18
19 static SkRemotableFontIdentitySet* gEmptyRemotableFontIdentitySet = NULL;
20 static void cleanup_gEmptyRemotableFontIdentitySet() { gEmptyRemotableFontIdenti tySet->unref(); }
21
22 void SkRemotableFontIdentitySet::NewEmptyImpl(int) {
23 gEmptyRemotableFontIdentitySet = new SkRemotableFontIdentitySet();
24 }
25
26 SkRemotableFontIdentitySet* SkRemotableFontIdentitySet::NewEmpty() {
27 SK_DECLARE_STATIC_ONCE(once);
28 SkOnce(&once, SkRemotableFontIdentitySet::NewEmptyImpl, 0,
29 cleanup_gEmptyRemotableFontIdentitySet);
30 gEmptyRemotableFontIdentitySet->ref();
31 return gEmptyRemotableFontIdentitySet;
32 }
OLDNEW
« no previous file with comments | « src/fonts/SkFontMgr_indirect.cpp ('k') | src/ports/SkFontHost_win.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698