OLD | NEW |
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 "sky/engine/config.h" | |
6 #include "sky/engine/core/css/RemoteFontFaceSource.h" | 5 #include "sky/engine/core/css/RemoteFontFaceSource.h" |
7 | 6 |
8 #include "sky/engine/core/css/CSSCustomFontData.h" | 7 #include "sky/engine/core/css/CSSCustomFontData.h" |
9 #include "sky/engine/core/css/CSSFontFace.h" | 8 #include "sky/engine/core/css/CSSFontFace.h" |
10 #include "sky/engine/core/css/FontLoader.h" | 9 #include "sky/engine/core/css/FontLoader.h" |
11 #include "sky/engine/platform/fonts/FontCache.h" | 10 #include "sky/engine/platform/fonts/FontCache.h" |
12 #include "sky/engine/platform/fonts/FontDescription.h" | 11 #include "sky/engine/platform/fonts/FontDescription.h" |
13 #include "sky/engine/platform/fonts/SimpleFontData.h" | 12 #include "sky/engine/platform/fonts/SimpleFontData.h" |
14 #include "sky/engine/public/platform/Platform.h" | 13 #include "sky/engine/public/platform/Platform.h" |
15 #include "sky/engine/wtf/CurrentTime.h" | 14 #include "sky/engine/wtf/CurrentTime.h" |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 if (size < 50 * 1024) | 181 if (size < 50 * 1024) |
183 return "WebFont.DownloadTime.1.10KBTo50KB"; | 182 return "WebFont.DownloadTime.1.10KBTo50KB"; |
184 if (size < 100 * 1024) | 183 if (size < 100 * 1024) |
185 return "WebFont.DownloadTime.2.50KBTo100KB"; | 184 return "WebFont.DownloadTime.2.50KBTo100KB"; |
186 if (size < 1024 * 1024) | 185 if (size < 1024 * 1024) |
187 return "WebFont.DownloadTime.3.100KBTo1MB"; | 186 return "WebFont.DownloadTime.3.100KBTo1MB"; |
188 return "WebFont.DownloadTime.4.Over1MB"; | 187 return "WebFont.DownloadTime.4.Over1MB"; |
189 } | 188 } |
190 | 189 |
191 } // namespace blink | 190 } // namespace blink |
OLD | NEW |