OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "skia/ext/vector_platform_device_emf_win.h" | 5 #include "skia/ext/vector_platform_device_emf_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "skia/ext/bitmap_platform_device.h" | 11 #include "skia/ext/bitmap_platform_device.h" |
12 #include "skia/ext/skia_utils_win.h" | 12 #include "skia/ext/skia_utils_win.h" |
13 #include "third_party/skia/include/core/SkFontHost.h" | |
14 #include "third_party/skia/include/core/SkPathEffect.h" | 13 #include "third_party/skia/include/core/SkPathEffect.h" |
15 #include "third_party/skia/include/core/SkTemplates.h" | 14 #include "third_party/skia/include/core/SkTemplates.h" |
16 #include "third_party/skia/include/core/SkUtils.h" | 15 #include "third_party/skia/include/core/SkUtils.h" |
17 #include "third_party/skia/include/ports/SkTypeface_win.h" | 16 #include "third_party/skia/include/ports/SkTypeface_win.h" |
18 | 17 |
19 namespace skia { | 18 namespace skia { |
20 | 19 |
21 #define CHECK_FOR_NODRAW_ANNOTATION(paint) \ | 20 #define CHECK_FOR_NODRAW_ANNOTATION(paint) \ |
22 do { if (paint.isNoDrawAnnotation()) { return; } } while (0) | 21 do { if (paint.isNoDrawAnnotation()) { return; } } while (0) |
23 | 22 |
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
974 pixels, | 973 pixels, |
975 reinterpret_cast<const BITMAPINFO*>(&hdr), | 974 reinterpret_cast<const BITMAPINFO*>(&hdr), |
976 DIB_RGB_COLORS, | 975 DIB_RGB_COLORS, |
977 SRCCOPY); | 976 SRCCOPY); |
978 } | 977 } |
979 EndPlatformPaint(); | 978 EndPlatformPaint(); |
980 Cleanup(); | 979 Cleanup(); |
981 } | 980 } |
982 | 981 |
983 } // namespace skia | 982 } // namespace skia |
OLD | NEW |