OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 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 SkBitmap_DEFINED | 8 #ifndef SkBitmap_DEFINED |
9 #define SkBitmap_DEFINED | 9 #define SkBitmap_DEFINED |
10 | 10 |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 /** Return the bitmap's colortable, if it uses one (i.e. colorType is | 493 /** Return the bitmap's colortable, if it uses one (i.e. colorType is |
494 Index_8) and the pixels are locked. | 494 Index_8) and the pixels are locked. |
495 Otherwise returns NULL. Does not affect the colortable's | 495 Otherwise returns NULL. Does not affect the colortable's |
496 reference count. | 496 reference count. |
497 */ | 497 */ |
498 SkColorTable* getColorTable() const { return fColorTable; } | 498 SkColorTable* getColorTable() const { return fColorTable; } |
499 | 499 |
500 /** Returns a non-zero, unique value corresponding to the pixels in our | 500 /** Returns a non-zero, unique value corresponding to the pixels in our |
501 pixelref. Each time the pixels are changed (and notifyPixelsChanged | 501 pixelref. Each time the pixels are changed (and notifyPixelsChanged |
502 is called), a different generation ID will be returned. Finally, if | 502 is called), a different generation ID will be returned. Finally, if |
503 their is no pixelRef then zero is returned. | 503 there is no pixelRef then zero is returned. |
504 */ | 504 */ |
505 uint32_t getGenerationID() const; | 505 uint32_t getGenerationID() const; |
506 | 506 |
507 /** Call this if you have changed the contents of the pixels. This will in- | 507 /** Call this if you have changed the contents of the pixels. This will in- |
508 turn cause a different generation ID value to be returned from | 508 turn cause a different generation ID value to be returned from |
509 getGenerationID(). | 509 getGenerationID(). |
510 */ | 510 */ |
511 void notifyPixelsChanged() const; | 511 void notifyPixelsChanged() const; |
512 | 512 |
513 /** | 513 /** |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
912 } | 912 } |
913 | 913 |
914 /////////////////////////////////////////////////////////////////////////////// | 914 /////////////////////////////////////////////////////////////////////////////// |
915 // | 915 // |
916 // Helpers until we can fully deprecate SkBitmap::Config | 916 // Helpers until we can fully deprecate SkBitmap::Config |
917 // | 917 // |
918 extern SkBitmap::Config SkColorTypeToBitmapConfig(SkColorType); | 918 extern SkBitmap::Config SkColorTypeToBitmapConfig(SkColorType); |
919 extern SkColorType SkBitmapConfigToColorType(SkBitmap::Config); | 919 extern SkColorType SkBitmapConfigToColorType(SkBitmap::Config); |
920 | 920 |
921 #endif | 921 #endif |
OLD | NEW |