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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; | 280 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE; |
| 281 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; |
281 | 282 |
282 SkBitmap fBitmap; | 283 SkBitmap fBitmap; |
283 | 284 |
284 typedef SkBaseDevice INHERITED; | 285 typedef SkBaseDevice INHERITED; |
285 }; | 286 }; |
286 | 287 |
287 #endif // SkBitmapDevice_DEFINED | 288 #endif // SkBitmapDevice_DEFINED |
OLD | NEW |