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

Side by Side Diff: content/common/font_config_ipc_linux.h

Issue 2295273002: Remove comment from FontConfigIPC::makeTypeface. (Closed)
Patch Set: Created 4 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_FONT_CONFIG_IPC_LINUX_H_ 5 #ifndef CONTENT_COMMON_FONT_CONFIG_IPC_LINUX_H_
6 #define CONTENT_COMMON_FONT_CONFIG_IPC_LINUX_H_ 6 #define CONTENT_COMMON_FONT_CONFIG_IPC_LINUX_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/containers/mru_cache.h" 9 #include "base/containers/mru_cache.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 21 matching lines...) Expand all
32 public: 32 public:
33 explicit FontConfigIPC(int fd); 33 explicit FontConfigIPC(int fd);
34 ~FontConfigIPC() override; 34 ~FontConfigIPC() override;
35 35
36 bool matchFamilyName(const char familyName[], 36 bool matchFamilyName(const char familyName[],
37 SkFontStyle requested, 37 SkFontStyle requested,
38 FontIdentity* outFontIdentifier, 38 FontIdentity* outFontIdentifier,
39 SkString* outFamilyName, 39 SkString* outFamilyName,
40 SkFontStyle* outStyle) override; 40 SkFontStyle* outStyle) override;
41 41
42 // Returns a new SkTypeface instance or a ref'ed one from the cache. The
43 // caller should adopt the pointer.
44 sk_sp<SkTypeface> makeTypeface(const FontIdentity& identity) override 42 sk_sp<SkTypeface> makeTypeface(const FontIdentity& identity) override
45 WARN_UNUSED_RESULT; 43 WARN_UNUSED_RESULT;
46 44
47 enum Method { 45 enum Method {
48 METHOD_MATCH = 0, 46 METHOD_MATCH = 0,
49 METHOD_OPEN = 1, 47 METHOD_OPEN = 1,
50 }; 48 };
51 49
52 enum { 50 enum {
53 kMaxFontFamilyLength = 2048 51 kMaxFontFamilyLength = 2048
(...skipping 20 matching lines...) Expand all
74 sk_sp<SkTypeface>, 72 sk_sp<SkTypeface>,
75 SkFontConfigInterfaceFontIdentityHash> 73 SkFontConfigInterfaceFontIdentityHash>
76 mapped_typefaces_; 74 mapped_typefaces_;
77 75
78 DISALLOW_COPY_AND_ASSIGN(FontConfigIPC); 76 DISALLOW_COPY_AND_ASSIGN(FontConfigIPC);
79 }; 77 };
80 78
81 } // namespace content 79 } // namespace content
82 80
83 #endif // CONTENT_COMMON_FONT_CONFIG_IPC_LINUX_H_ 81 #endif // CONTENT_COMMON_FONT_CONFIG_IPC_LINUX_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698