OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_MAC_H_ | 5 #ifndef SKIA_EXT_PLATFORM_DEVICE_MAC_H_ |
6 #define SKIA_EXT_PLATFORM_DEVICE_MAC_H_ | 6 #define SKIA_EXT_PLATFORM_DEVICE_MAC_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <ApplicationServices/ApplicationServices.h> | |
10 #include "third_party/skia/include/core/SkDevice.h" | 9 #include "third_party/skia/include/core/SkDevice.h" |
11 | 10 |
| 11 typedef struct CGContext* CGContextRef; |
| 12 typedef struct CGRect CGRect; |
| 13 |
12 class SkMatrix; | 14 class SkMatrix; |
13 class SkPath; | 15 class SkPath; |
14 class SkRegion; | 16 class SkRegion; |
15 | 17 |
16 namespace skia { | 18 namespace skia { |
17 | 19 |
18 // A device is basically a wrapper around SkBitmap that provides a surface for | 20 // A device is basically a wrapper around SkBitmap that provides a surface for |
19 // SkCanvas to draw into. Our device provides a surface CoreGraphics can also | 21 // SkCanvas to draw into. Our device provides a surface CoreGraphics can also |
20 // write to. It also provides functionality to play well with CG drawing | 22 // write to. It also provides functionality to play well with CG drawing |
21 // functions. | 23 // functions. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 64 |
63 // Loads the specified Skia transform into the device context | 65 // Loads the specified Skia transform into the device context |
64 static void LoadTransformToCGContext(CGContextRef context, | 66 static void LoadTransformToCGContext(CGContextRef context, |
65 const SkMatrix& matrix); | 67 const SkMatrix& matrix); |
66 }; | 68 }; |
67 | 69 |
68 } // namespace skia | 70 } // namespace skia |
69 | 71 |
70 #endif // SKIA_EXT_PLATFORM_DEVICE_MAC_H_ | 72 #endif // SKIA_EXT_PLATFORM_DEVICE_MAC_H_ |
71 | 73 |
OLD | NEW |