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

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

Issue 2137893002: Update histograms.xml to supplement crrev.com/2095293002 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review #4 Created 4 years, 5 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 | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 { 318 {
319 // interventionResult takes 0-3 values. 319 // interventionResult takes 0-3 values.
320 int interventionResult = 0; 320 int interventionResult = 0;
321 if (m_isLongLimitExceeded) 321 if (m_isLongLimitExceeded)
322 interventionResult |= 1 << 0; 322 interventionResult |= 1 << 0;
323 if (isTriggered) 323 if (isTriggered)
324 interventionResult |= 1 << 1; 324 interventionResult |= 1 << 1;
325 const int boundary = 1 << 2; 325 const int boundary = 1 << 2;
326 326
327 DEFINE_STATIC_LOCAL(EnumerationHistogram, interventionHistogram, ("WebFont.I nterventionResult", boundary)); 327 DEFINE_STATIC_LOCAL(EnumerationHistogram, interventionHistogram, ("WebFont.I nterventionResult", boundary));
328 DEFINE_STATIC_LOCAL(EnumerationHistogram, missCachedInterventionHistogram, ( "WebFont.MissCachedInterventionResult", boundary)); 328 DEFINE_STATIC_LOCAL(EnumerationHistogram, missedCacheInterventionHistogram, ("WebFont.InterventionResult.MissedCache", boundary));
329 interventionHistogram.count(interventionResult); 329 interventionHistogram.count(interventionResult);
330 if (isLoadedFromNetwork) 330 if (isLoadedFromNetwork)
331 missCachedInterventionHistogram.count(interventionResult); 331 missedCacheInterventionHistogram.count(interventionResult);
332 } 332 }
333 333
334 } // namespace blink 334 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698