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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "skia/ext/platform_device_mac.h" | 9 #include "skia/ext/platform_device_mac.h" |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // around to another routine willing to deal with the bitmap data directly. | 57 // around to another routine willing to deal with the bitmap data directly. |
58 BitmapPlatformDevice(const BitmapPlatformDevice& other); | 58 BitmapPlatformDevice(const BitmapPlatformDevice& other); |
59 virtual ~BitmapPlatformDevice(); | 59 virtual ~BitmapPlatformDevice(); |
60 | 60 |
61 virtual SkDeviceFactory* getDeviceFactory(); | 61 virtual SkDeviceFactory* getDeviceFactory(); |
62 | 62 |
63 // See warning for copy constructor above. | 63 // See warning for copy constructor above. |
64 BitmapPlatformDevice& operator=(const BitmapPlatformDevice& other); | 64 BitmapPlatformDevice& operator=(const BitmapPlatformDevice& other); |
65 | 65 |
66 virtual CGContextRef GetBitmapContext(); | 66 virtual CGContextRef GetBitmapContext(); |
67 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region); | 67 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region, |
| 68 const SkClipStack&); |
68 | 69 |
69 virtual void DrawToContext(CGContextRef context, int x, int y, | 70 virtual void DrawToContext(CGContextRef context, int x, int y, |
70 const CGRect* src_rect); | 71 const CGRect* src_rect); |
71 virtual void makeOpaque(int x, int y, int width, int height); | 72 virtual void makeOpaque(int x, int y, int width, int height); |
72 virtual bool IsVectorial(); | 73 virtual bool IsVectorial(); |
73 | 74 |
74 // Returns the color value at the specified location. This does not | 75 // Returns the color value at the specified location. This does not |
75 // consider any transforms that may be set on the device. | 76 // consider any transforms that may be set on the device. |
76 SkColor getColorAt(int x, int y); | 77 SkColor getColorAt(int x, int y); |
77 | 78 |
(...skipping 12 matching lines...) Expand all Loading... |
90 virtual void onAccessBitmap(SkBitmap*); | 91 virtual void onAccessBitmap(SkBitmap*); |
91 | 92 |
92 // Data associated with this device, guaranteed non-null. We hold a reference | 93 // Data associated with this device, guaranteed non-null. We hold a reference |
93 // to this object. | 94 // to this object. |
94 BitmapPlatformDeviceData* data_; | 95 BitmapPlatformDeviceData* data_; |
95 }; | 96 }; |
96 | 97 |
97 } // namespace skia | 98 } // namespace skia |
98 | 99 |
99 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_ | 100 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_ |
OLD | NEW |