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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 */ | 270 */ |
271 virtual SkBaseDevice* onCreateCompatibleDevice(SkBitmap::Config config, | 271 virtual SkBaseDevice* onCreateCompatibleDevice(SkBitmap::Config config, |
272 int width, int height, | 272 int width, int height, |
273 bool isOpaque, | 273 bool isOpaque, |
274 Usage usage) SK_OVERRIDE; | 274 Usage usage) SK_OVERRIDE; |
275 | 275 |
276 /** Causes any deferred drawing to the device to be completed. | 276 /** Causes any deferred drawing to the device to be completed. |
277 */ | 277 */ |
278 virtual void flush() SK_OVERRIDE {} | 278 virtual void flush() SK_OVERRIDE {} |
279 | 279 |
| 280 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE; |
| 281 |
280 SkBitmap fBitmap; | 282 SkBitmap fBitmap; |
281 | 283 |
282 typedef SkBaseDevice INHERITED; | 284 typedef SkBaseDevice INHERITED; |
283 }; | 285 }; |
284 | 286 |
285 #endif // SkBitmapDevice_DEFINED | 287 #endif // SkBitmapDevice_DEFINED |
OLD | NEW |