2 * Copyright 2014 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
8 #include "SkRemotableFontMgr.h"
10 #include "SkLazyPtr.h"
12 SkRemotableFontIdentitySet::SkRemotableFontIdentitySet(int count, SkFontIdentity** data)
13 : fCount(count), fData(count)
19 // As a template argument, this must have external linkage.
20 SkRemotableFontIdentitySet* sk_remotable_font_identity_set_new() {
21 return SkNEW(SkRemotableFontIdentitySet);
24 SK_DECLARE_STATIC_LAZY_PTR(SkRemotableFontIdentitySet, empty, sk_remotable_font_identity_set_new);
25 SkRemotableFontIdentitySet* SkRemotableFontIdentitySet::NewEmpty() {
26 return SkRef(empty.get());