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 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 SkASSERT((unsigned)x < (unsigned)this->width() && (unsigned)y < (unsigned)th
is->height()); | 897 SkASSERT((unsigned)x < (unsigned)this->width() && (unsigned)y < (unsigned)th
is->height()); |
898 SkASSERT(fColorTable); | 898 SkASSERT(fColorTable); |
899 return (*fColorTable)[*((const uint8_t*)fPixels + y * fRowBytes + x)]; | 899 return (*fColorTable)[*((const uint8_t*)fPixels + y * fRowBytes + x)]; |
900 } | 900 } |
901 | 901 |
902 #ifdef SK_SUPPORT_LEGACY_BITMAP_CONFIG | 902 #ifdef SK_SUPPORT_LEGACY_BITMAP_CONFIG |
903 /////////////////////////////////////////////////////////////////////////////// | 903 /////////////////////////////////////////////////////////////////////////////// |
904 // | 904 // |
905 // Helpers until we can fully deprecate SkBitmap::Config | 905 // Helpers until we can fully deprecate SkBitmap::Config |
906 // | 906 // |
907 extern SkBitmap::Config SkColorTypeToBitmapConfig(SkColorType); | 907 SK_API SkBitmap::Config SkColorTypeToBitmapConfig(SkColorType); |
908 extern SkColorType SkBitmapConfigToColorType(SkBitmap::Config); | 908 SK_API SkColorType SkBitmapConfigToColorType(SkBitmap::Config); |
909 #endif | 909 #endif |
910 | 910 |
911 #endif | 911 #endif |
OLD | NEW |