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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.h

Issue 2533503002: Report decoded webfont blob size to memory-infra (Closed)
Patch Set: Created 4 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Computer, Inc. 2 * Copyright (C) 2007 Apple Computer, Inc.
3 * Copyright (c) 2007, 2008, 2009, Google Inc. All rights reserved. 3 * Copyright (c) 2007, 2008, 2009, Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 SharedBuffer*, 57 SharedBuffer*,
58 String& otsParseMessage); 58 String& otsParseMessage);
59 ~FontCustomPlatformData(); 59 ~FontCustomPlatformData();
60 60
61 FontPlatformData fontPlatformData( 61 FontPlatformData fontPlatformData(
62 float size, 62 float size,
63 bool bold, 63 bool bold,
64 bool italic, 64 bool italic,
65 FontOrientation = FontOrientation::Horizontal); 65 FontOrientation = FontOrientation::Horizontal);
66 66
67 size_t dataSize() const { return m_dataSize; }
67 static bool supportsFormat(const String&); 68 static bool supportsFormat(const String&);
68 69
69 private: 70 private:
70 explicit FontCustomPlatformData(sk_sp<SkTypeface>); 71 FontCustomPlatformData(sk_sp<SkTypeface>, size_t dataSize);
71 sk_sp<SkTypeface> m_typeface; 72 sk_sp<SkTypeface> m_typeface;
73 size_t m_dataSize;
72 }; 74 };
73 75
74 } // namespace blink 76 } // namespace blink
75 77
76 #endif // FontCustomPlatformData_h 78 #endif // FontCustomPlatformData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698