| 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 |
| 11 #include "SkColor.h" | 11 #include "SkColor.h" |
| 12 #include "SkColorTable.h" | 12 #include "SkColorTable.h" |
| 13 #include "SkImageInfo.h" | 13 #include "SkImageInfo.h" |
| 14 #include "SkPoint.h" | 14 #include "SkPoint.h" |
| 15 #include "SkRefCnt.h" | 15 #include "SkRefCnt.h" |
| 16 | 16 |
| 17 //#define SK_SUPPORT_LEGACY_COPYTO_CONFIG | 17 //#define SK_SUPPORT_LEGACY_COPYTO_CONFIG |
| 18 | 18 |
| 19 //#define SK_SUPPORT_DEEPCOPYTO_CONFIG |
| 20 |
| 19 struct SkMask; | 21 struct SkMask; |
| 20 struct SkIRect; | 22 struct SkIRect; |
| 21 struct SkRect; | 23 struct SkRect; |
| 22 class SkPaint; | 24 class SkPaint; |
| 23 class SkPixelRef; | 25 class SkPixelRef; |
| 24 class SkPixelRefFactory; | 26 class SkPixelRefFactory; |
| 25 class SkRegion; | 27 class SkRegion; |
| 26 class SkString; | 28 class SkString; |
| 27 | |
| 28 #define SK_SUPPORT_DEEPCOPYTO_CONFIG | |
| 29 | |
| 30 class GrTexture; | 29 class GrTexture; |
| 31 | 30 |
| 32 /** \class SkBitmap | 31 /** \class SkBitmap |
| 33 | 32 |
| 34 The SkBitmap class specifies a raster bitmap. A bitmap has an integer width | 33 The SkBitmap class specifies a raster bitmap. A bitmap has an integer width |
| 35 and height, and a format (config), and a pointer to the actual pixels. | 34 and height, and a format (config), and a pointer to the actual pixels. |
| 36 Bitmaps can be drawn into a SkCanvas, but they are also used to specify the | 35 Bitmaps can be drawn into a SkCanvas, but they are also used to specify the |
| 37 target of a SkCanvas' drawing operations. | 36 target of a SkCanvas' drawing operations. |
| 38 A const SkBitmap exposes getAddr(), which lets a caller write its pixels; | 37 A const SkBitmap exposes getAddr(), which lets a caller write its pixels; |
| 39 the constness is considered to apply to the bitmap's configuration, not | 38 the constness is considered to apply to the bitmap's configuration, not |
| (...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 940 } | 939 } |
| 941 | 940 |
| 942 /////////////////////////////////////////////////////////////////////////////// | 941 /////////////////////////////////////////////////////////////////////////////// |
| 943 // | 942 // |
| 944 // Helpers until we can fully deprecate SkBitmap::Config | 943 // Helpers until we can fully deprecate SkBitmap::Config |
| 945 // | 944 // |
| 946 extern SkBitmap::Config SkColorTypeToBitmapConfig(SkColorType); | 945 extern SkBitmap::Config SkColorTypeToBitmapConfig(SkColorType); |
| 947 extern SkColorType SkBitmapConfigToColorType(SkBitmap::Config); | 946 extern SkColorType SkBitmapConfigToColorType(SkBitmap::Config); |
| 948 | 947 |
| 949 #endif | 948 #endif |
| OLD | NEW |