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

Side by Side Diff: sky/engine/core/css/FontFaceSet.h

Issue 679113005: Hollow out more of the tracing system in oilpan (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/css/FontFace.cpp ('k') | sky/engine/core/css/FontFaceSet.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 (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met: 5 * modification, are permitted provided that the following conditions are met:
6 * 6 *
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // ActiveDOMObject 97 // ActiveDOMObject
98 virtual void suspend() override; 98 virtual void suspend() override;
99 virtual void resume() override; 99 virtual void resume() override;
100 virtual void stop() override; 100 virtual void stop() override;
101 101
102 static PassRefPtr<FontFaceSet> from(Document&); 102 static PassRefPtr<FontFaceSet> from(Document&);
103 static void didLayout(Document&); 103 static void didLayout(Document&);
104 104
105 void addFontFacesToFontFaceCache(FontFaceCache*, CSSFontSelector*); 105 void addFontFacesToFontFaceCache(FontFaceCache*, CSSFontSelector*);
106 106
107 #if ENABLE(OILPAN)
108 virtual void trace(Visitor*) override;
109 #endif
110
111 private: 107 private:
112 static PassRefPtr<FontFaceSet> create(Document& document) 108 static PassRefPtr<FontFaceSet> create(Document& document)
113 { 109 {
114 return adoptRef(new FontFaceSet(document)); 110 return adoptRef(new FontFaceSet(document));
115 } 111 }
116 112
117 class FontLoadHistogram { 113 class FontLoadHistogram {
118 public: 114 public:
119 enum Status { NoWebFonts, HadBlankText, DidNotHaveBlankText, Reported }; 115 enum Status { NoWebFonts, HadBlankText, DidNotHaveBlankText, Reported };
120 FontLoadHistogram() : m_status(NoWebFonts), m_count(0), m_recorded(false ) { } 116 FontLoadHistogram() : m_status(NoWebFonts), m_count(0), m_recorded(false ) { }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 ListHashSet<RefPtr<FontFace> > m_nonCSSConnectedFaces; 148 ListHashSet<RefPtr<FontFace> > m_nonCSSConnectedFaces;
153 149
154 AsyncMethodRunner<FontFaceSet> m_asyncRunner; 150 AsyncMethodRunner<FontFaceSet> m_asyncRunner;
155 151
156 FontLoadHistogram m_histogram; 152 FontLoadHistogram m_histogram;
157 }; 153 };
158 154
159 } // namespace blink 155 } // namespace blink
160 156
161 #endif // FontFaceSet_h 157 #endif // FontFaceSet_h
OLDNEW
« no previous file with comments | « sky/engine/core/css/FontFace.cpp ('k') | sky/engine/core/css/FontFaceSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698