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_BITMAP_PLATFORM_DEVICE_MAC_H_ | 5 #ifndef SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_ |
6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_ | 6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "skia/ext/platform_canvas.h" |
12 #include "skia/ext/platform_device.h" | 13 #include "skia/ext/platform_device.h" |
13 #include "skia/ext/refptr.h" | 14 #include "skia/ext/refptr.h" |
14 | 15 |
15 namespace skia { | 16 namespace skia { |
16 | 17 |
17 // A device is basically a wrapper around SkBitmap that provides a surface for | 18 // A device is basically a wrapper around SkBitmap that provides a surface for |
18 // SkCanvas to draw into. Our device provides a surface CoreGraphics can also | 19 // SkCanvas to draw into. Our device provides a surface CoreGraphics can also |
19 // write to. BitmapPlatformDevice creates a bitmap using | 20 // write to. BitmapPlatformDevice creates a bitmap using |
20 // CGCreateBitmapContext() in a format that Skia supports and can then use this | 21 // CGCreateBitmapContext() in a format that Skia supports and can then use this |
21 // to draw text into, etc. This pixel data is provided to the bitmap that the | 22 // to draw text into, etc. This pixel data is provided to the bitmap that the |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 SkMatrix transform_; | 88 SkMatrix transform_; |
88 | 89 |
89 // The current clipping | 90 // The current clipping |
90 SkRegion clip_region_; | 91 SkRegion clip_region_; |
91 DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice); | 92 DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice); |
92 }; | 93 }; |
93 | 94 |
94 } // namespace skia | 95 } // namespace skia |
95 | 96 |
96 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_ | 97 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_ |
OLD | NEW |