| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
| 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 #ifndef SkBitmapDevice_DEFINED | 9 #ifndef SkBitmapDevice_DEFINED |
| 10 #define SkBitmapDevice_DEFINED | 10 #define SkBitmapDevice_DEFINED |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 */ | 80 */ |
| 81 virtual void getGlobalBounds(SkIRect* bounds) const SK_OVERRIDE; | 81 virtual void getGlobalBounds(SkIRect* bounds) const SK_OVERRIDE; |
| 82 | 82 |
| 83 /** Returns true if the device's bitmap's config treats every pixels as | 83 /** Returns true if the device's bitmap's config treats every pixels as |
| 84 implicitly opaque. | 84 implicitly opaque. |
| 85 */ | 85 */ |
| 86 virtual bool isOpaque() const SK_OVERRIDE { return fBitmap.isOpaque(); } | 86 virtual bool isOpaque() const SK_OVERRIDE { return fBitmap.isOpaque(); } |
| 87 | 87 |
| 88 /** Return the bitmap config of the device's pixels | 88 /** Return the bitmap config of the device's pixels |
| 89 */ | 89 */ |
| 90 virtual SkBitmap::Config config() const SK_OVERRIDE { return fBitmap.getConf
ig(); } | 90 virtual SkBitmap::Config config() const SK_OVERRIDE { return fBitmap.config(
); } |
| 91 | 91 |
| 92 /** | 92 /** |
| 93 * DEPRECATED: This will be made protected once WebKit stops using it. | 93 * DEPRECATED: This will be made protected once WebKit stops using it. |
| 94 * Instead use Canvas' writePixels method. | 94 * Instead use Canvas' writePixels method. |
| 95 * | 95 * |
| 96 * Similar to draw sprite, this method will copy the pixels in bitmap onto | 96 * Similar to draw sprite, this method will copy the pixels in bitmap onto |
| 97 * the device, with the top/left corner specified by (x, y). The pixel | 97 * the device, with the top/left corner specified by (x, y). The pixel |
| 98 * values in the device are completely replaced: there is no blending. | 98 * values in the device are completely replaced: there is no blending. |
| 99 * | 99 * |
| 100 * Currently if bitmap is backed by a texture this is a no-op. This may be | 100 * Currently if bitmap is backed by a texture this is a no-op. This may be |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 /** Causes any deferred drawing to the device to be completed. | 286 /** Causes any deferred drawing to the device to be completed. |
| 287 */ | 287 */ |
| 288 virtual void flush() SK_OVERRIDE {} | 288 virtual void flush() SK_OVERRIDE {} |
| 289 | 289 |
| 290 SkBitmap fBitmap; | 290 SkBitmap fBitmap; |
| 291 | 291 |
| 292 typedef SkBaseDevice INHERITED; | 292 typedef SkBaseDevice INHERITED; |
| 293 }; | 293 }; |
| 294 | 294 |
| 295 #endif // SkBitmapDevice_DEFINED | 295 #endif // SkBitmapDevice_DEFINED |
| OLD | NEW |