Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 /* | |
| 6 * Precompiled header for WebKit when built on Windows using | |
| 7 * GYP-generated project files. Not used by other build | |
| 8 * configurations. | |
| 9 * | |
| 10 * Using precompiled headers speeds the build up significantly. On a | |
| 11 * fast machine (HP Z600, 12 GB of RAM), an ~18% decrease in full | |
| 12 * build time was measured with only the stdlib headers added. More | |
| 13 * with the Blink specific headers. | |
| 14 */ | |
| 15 | |
| 16 #if defined(PrecompileCore_h_) | |
| 17 #error You shouldn't include the precompiled header file more than once. | |
| 18 #endif | |
| 19 | |
| 20 #define PrecompileCore_h_ | |
| 21 | |
| 22 #define _USE_MATH_DEFINES // Make math.h behave on Windows as on other platforms . | |
| 23 | |
| 24 #include <Windows.h> | |
| 25 | |
| 26 #include <algorithm> | |
| 27 #include <ciso646> | |
| 28 #include <cmath> | |
| 29 #include <cstddef> | |
| 30 #include <errno.h> | |
| 31 #include <fcntl.h> | |
| 32 #include <limits.h> | |
| 33 #include <limits> | |
| 34 #include <math.h> | |
| 35 #include <stdarg.h> | |
| 36 #include <stddef.h> | |
| 37 #include <stdio.h> | |
| 38 #include <stdlib.h> | |
| 39 #include <string.h> | |
| 40 #include <string> | |
| 41 #include <time.h> | |
| 42 #include <utility> | |
| 43 | |
| 44 // In Blink a lot of operations center around dom and Document, or around | |
| 45 // layout/rendering and LayoutObject. Those two headers are in turn pulling | |
| 46 // in large parts of Blink's other headers which means that every compilation | |
| 47 // unit is compiling large parts of Blink. By precompiling Document.h and | |
| 48 // LayoutObject.h we only have to compile those parts once rather than | |
| 49 // 1500 times. It can make a large difference in compilation times. | |
| 50 // config.h contains some base macros that headers can expect are present. | |
| 51 #include "config.h" | |
|
Nico
2015/06/25 23:14:45
This looks wrong. https://www.webkit.org/coding/co
| |
| 52 #include "core/dom/Document.h" | |
| 53 #include "core/layout/LayoutObject.h" | |
| OLD | NEW |