From 4dbbd04314cc0606f8d3bafe515c97e52c180f73 Mon Sep 17 00:00:00 2001 From: halcanary Date: Tue, 7 Jun 2016 17:21:10 -0700 Subject: SkLeanWindows.h: #include "Windows.h" fewer places $ git grep -l '' include src include/private/SkLeanWindows.h $ git grep -l SkLeanWindows.h | grep '\.h$' include/ports/SkTypeface_win.h include/utils/win/SkHRESULT.h include/utils/win/SkTScopedComPtr.h include/views/SkEvent.h src/core/SkMathPriv.h src/ports/SkTypeface_win_dw.h src/utils/SkThreadUtils_win.h src/utils/win/SkWGL.h The same for `#include ` that was found in SkMath.h. Those functions that needed it are moved to SkMathPriv.h. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2041943002 CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_chromium_compile_dbg_ng,win_chromium_compile_rel_ng Review-Url: https://codereview.chromium.org/2041943002 --- src/views/win/SkOSWindow_win.cpp | 2 ++ src/views/win/skia_win.cpp | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src/views') diff --git a/src/views/win/SkOSWindow_win.cpp b/src/views/win/SkOSWindow_win.cpp index a5aafd05d1..c93d60b2d6 100644 --- a/src/views/win/SkOSWindow_win.cpp +++ b/src/views/win/SkOSWindow_win.cpp @@ -8,6 +8,8 @@ #if defined(SK_BUILD_FOR_WIN) +#include "SkLeanWindows.h" + #include #include #include "win/SkWGL.h" diff --git a/src/views/win/skia_win.cpp b/src/views/win/skia_win.cpp index 8996ddac4d..fc07bd46da 100644 --- a/src/views/win/skia_win.cpp +++ b/src/views/win/skia_win.cpp @@ -4,10 +4,11 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ -#include -#include #include "SkTypes.h" + +#include + #include "SkApplication.h" #include "SkOSWindow_Win.h" -- cgit v1.2.3