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 #ifndef SKIA_EXT_PLATFORM_DEVICE_H_ | 5 #ifndef SKIA_EXT_PLATFORM_DEVICE_H_ |
6 #define SKIA_EXT_PLATFORM_DEVICE_H_ | 6 #define SKIA_EXT_PLATFORM_DEVICE_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
11 #include <windows.h> | 11 #include <windows.h> |
12 #include <vector> | 12 #include <vector> |
13 #endif | 13 #endif |
14 | 14 |
15 #include "skia/ext/native_drawing_context.h" | 15 #include "skia/ext/native_drawing_context.h" |
16 #include "third_party/skia/include/core/SkBitmapDevice.h" | 16 #include "third_party/skia/include/core/SkBitmapDevice.h" |
17 #include "third_party/skia/include/core/SkTypes.h" | 17 #include "third_party/skia/include/core/SkTypes.h" |
18 | 18 |
19 class SkMatrix; | 19 class SkMatrix; |
20 class SkPath; | |
21 | 20 |
22 namespace skia { | 21 namespace skia { |
23 | 22 |
24 class PlatformDevice; | 23 class PlatformDevice; |
25 class ScopedPlatformPaint; | 24 class ScopedPlatformPaint; |
26 | 25 |
27 // The following routines provide accessor points for the functionality | 26 // The following routines provide accessor points for the functionality |
28 // exported by the various PlatformDevice ports. | 27 // exported by the various PlatformDevice ports. |
29 // All calls to PlatformDevice::* should be routed through these | 28 // All calls to PlatformDevice::* should be routed through these |
30 // helper functions. | 29 // helper functions. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // only during one pass of rendering. | 66 // only during one pass of rendering. |
68 virtual NativeDrawingContext BeginPlatformPaint(const SkMatrix& transform, | 67 virtual NativeDrawingContext BeginPlatformPaint(const SkMatrix& transform, |
69 const SkIRect& clip_bounds); | 68 const SkIRect& clip_bounds); |
70 | 69 |
71 friend class ScopedPlatformPaint; | 70 friend class ScopedPlatformPaint; |
72 }; | 71 }; |
73 | 72 |
74 } // namespace skia | 73 } // namespace skia |
75 | 74 |
76 #endif // SKIA_EXT_PLATFORM_DEVICE_H_ | 75 #endif // SKIA_EXT_PLATFORM_DEVICE_H_ |
OLD | NEW |