| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #if defined(PrecompileCore_h_) | 5 #if defined(PrecompileCore_h_) |
| 6 #error You shouldn't include the precompiled header file more than once. | 6 #error You shouldn't include the precompiled header file more than once. |
| 7 #endif | 7 #endif |
| 8 #define PrecompileCore_h_ | 8 #define PrecompileCore_h_ |
| 9 | 9 |
| 10 #if defined(_MSC_VER) |
| 10 #include "build/win/Precompile.h" | 11 #include "build/win/Precompile.h" |
| 12 #elif defined(__APPLE__) |
| 13 #include "build/mac/Prefix.h" |
| 14 #else |
| 15 #error implement |
| 16 #endif |
| 11 | 17 |
| 12 // In Blink a lot of operations center around dom and Document, or around | 18 // In Blink a lot of operations center around dom and Document, or around |
| 13 // layout/rendering and LayoutObject. Those two headers are in turn pulling | 19 // layout/rendering and LayoutObject. Those two headers are in turn pulling |
| 14 // in large parts of Blink's other headers which means that every compilation | 20 // in large parts of Blink's other headers which means that every compilation |
| 15 // unit is compiling large parts of Blink. By precompiling Document.h | 21 // unit is compiling large parts of Blink. By precompiling Document.h |
| 16 // and LayoutObject.h we only have to compile those parts once rather | 22 // and LayoutObject.h we only have to compile those parts once rather |
| 17 // than 1500 times. It can make a large difference in compilation | 23 // than 1500 times. It can make a large difference in compilation |
| 18 // times (3-4 times faster). | 24 // times (3-4 times faster). |
| 19 #include "core/dom/Document.h" | 25 #include "core/dom/Document.h" |
| 20 #include "core/layout/LayoutObject.h" | 26 #include "core/layout/LayoutObject.h" |
| OLD | NEW |