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

Side by Side Diff: third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp

Issue 2014533002: Move FontResourceClient to Oilpan heap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "core/css/RemoteFontFaceSource.h" 5 #include "core/css/RemoteFontFaceSource.h"
6 6
7 #include "core/css/CSSCustomFontData.h" 7 #include "core/css/CSSCustomFontData.h"
8 #include "core/css/CSSFontFace.h" 8 #include "core/css/CSSFontFace.h"
9 #include "core/css/CSSFontSelector.h" 9 #include "core/css/CSSFontSelector.h"
10 #include "core/dom/Document.h" 10 #include "core/dom/Document.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 if (m_face) 180 if (m_face)
181 m_face->didBeginLoad(); 181 m_face->didBeginLoad();
182 } 182 }
183 183
184 DEFINE_TRACE(RemoteFontFaceSource) 184 DEFINE_TRACE(RemoteFontFaceSource)
185 { 185 {
186 visitor->trace(m_font); 186 visitor->trace(m_font);
187 visitor->trace(m_fontSelector); 187 visitor->trace(m_fontSelector);
188 CSSFontFaceSource::trace(visitor); 188 CSSFontFaceSource::trace(visitor);
189 FontResourceClient::trace(visitor);
189 } 190 }
190 191
191 void RemoteFontFaceSource::FontLoadHistograms::loadStarted() 192 void RemoteFontFaceSource::FontLoadHistograms::loadStarted()
192 { 193 {
193 if (!m_loadStartTime) 194 if (!m_loadStartTime)
194 m_loadStartTime = currentTimeMS(); 195 m_loadStartTime = currentTimeMS();
195 } 196 }
196 197
197 void RemoteFontFaceSource::FontLoadHistograms::fallbackFontPainted(DisplayPeriod period) 198 void RemoteFontFaceSource::FontLoadHistograms::fallbackFontPainted(DisplayPeriod period)
198 { 199 {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 interventionResult |= 1 << 0; 285 interventionResult |= 1 << 0;
285 if (triggered) 286 if (triggered)
286 interventionResult |= 1 << 1; 287 interventionResult |= 1 << 1;
287 const int boundary = 1 << 2; 288 const int boundary = 1 << 2;
288 289
289 DEFINE_STATIC_LOCAL(EnumerationHistogram, interventionHistogram, ("WebFont.I nterventionResult", boundary)); 290 DEFINE_STATIC_LOCAL(EnumerationHistogram, interventionHistogram, ("WebFont.I nterventionResult", boundary));
290 interventionHistogram.count(interventionResult); 291 interventionHistogram.count(interventionResult);
291 } 292 }
292 293
293 } // namespace blink 294 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/RemoteFontFaceSource.h ('k') | third_party/WebKit/Source/core/fetch/FontResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698