OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 The Android Open Source Project | 2 * Copyright 2010 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkDevice_DEFINED | 8 #ifndef SkDevice_DEFINED |
9 #define SkDevice_DEFINED | 9 #define SkDevice_DEFINED |
10 | 10 |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 SkBaseDevice* createCompatibleDeviceForSaveLayer(const SkImageInfo&); | 371 SkBaseDevice* createCompatibleDeviceForSaveLayer(const SkImageInfo&); |
372 | 372 |
373 virtual SkBaseDevice* onCreateDevice(const SkImageInfo&, Usage) { | 373 virtual SkBaseDevice* onCreateDevice(const SkImageInfo&, Usage) { |
374 return NULL; | 374 return NULL; |
375 } | 375 } |
376 | 376 |
377 /** Causes any deferred drawing to the device to be completed. | 377 /** Causes any deferred drawing to the device to be completed. |
378 */ | 378 */ |
379 virtual void flush() {} | 379 virtual void flush() {} |
380 | 380 |
| 381 virtual SkImageFilter::UniqueIDCache* getImageFilterCache() { return NULL; } |
| 382 |
381 SkIPoint fOrigin; | 383 SkIPoint fOrigin; |
382 SkMetaData* fMetaData; | 384 SkMetaData* fMetaData; |
383 | 385 |
384 #ifdef SK_DEBUG | 386 #ifdef SK_DEBUG |
385 bool fAttachedToCanvas; | 387 bool fAttachedToCanvas; |
386 #endif | 388 #endif |
387 | 389 |
388 typedef SkRefCnt INHERITED; | 390 typedef SkRefCnt INHERITED; |
389 }; | 391 }; |
390 | 392 |
391 #endif | 393 #endif |
OLD | NEW |