OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 The Android Open Source Project | 3 * Copyright 2010 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkDevice_DEFINED | 10 #ifndef SkDevice_DEFINED |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 } | 94 } |
95 | 95 |
96 | 96 |
97 /** Returns true if the device's bitmap's config treats every pixel as | 97 /** Returns true if the device's bitmap's config treats every pixel as |
98 implicitly opaque. | 98 implicitly opaque. |
99 */ | 99 */ |
100 virtual bool isOpaque() const = 0; | 100 virtual bool isOpaque() const = 0; |
101 | 101 |
102 /** Return the bitmap config of the device's pixels | 102 /** Return the bitmap config of the device's pixels |
103 */ | 103 */ |
104 SK_ATTR_DEPRECATED("want to hide configness of the device -- don't use") | |
105 virtual SkBitmap::Config config() const = 0; | 104 virtual SkBitmap::Config config() const = 0; |
106 | 105 |
107 /** Return the bitmap associated with this device. Call this each time you n
eed | 106 /** Return the bitmap associated with this device. Call this each time you n
eed |
108 to access the bitmap, as it notifies the subclass to perform any flushin
g | 107 to access the bitmap, as it notifies the subclass to perform any flushin
g |
109 etc. before you examine the pixels. | 108 etc. before you examine the pixels. |
110 @param changePixels set to true if the caller plans to change the pixels | 109 @param changePixels set to true if the caller plans to change the pixels |
111 @return the device's bitmap | 110 @return the device's bitmap |
112 */ | 111 */ |
113 const SkBitmap& accessBitmap(bool changePixels); | 112 const SkBitmap& accessBitmap(bool changePixels); |
114 | 113 |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 SkMetaData* fMetaData; | 426 SkMetaData* fMetaData; |
428 | 427 |
429 #ifdef SK_DEBUG | 428 #ifdef SK_DEBUG |
430 bool fAttachedToCanvas; | 429 bool fAttachedToCanvas; |
431 #endif | 430 #endif |
432 | 431 |
433 typedef SkRefCnt INHERITED; | 432 typedef SkRefCnt INHERITED; |
434 }; | 433 }; |
435 | 434 |
436 #endif | 435 #endif |
OLD | NEW |