OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
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 | 9 |
10 #ifndef SkBitmap_DEFINED | 10 #ifndef SkBitmap_DEFINED |
11 #define SkBitmap_DEFINED | 11 #define SkBitmap_DEFINED |
12 | 12 |
13 #include "Sk64.h" | 13 #include "Sk64.h" |
14 #include "SkAlpha.h" | |
15 #include "SkColor.h" | 14 #include "SkColor.h" |
16 #include "SkColorTable.h" | 15 #include "SkColorTable.h" |
| 16 #include "SkImageInfo.h" |
17 #include "SkPoint.h" | 17 #include "SkPoint.h" |
18 #include "SkRefCnt.h" | 18 #include "SkRefCnt.h" |
19 | 19 |
20 struct SkImageInfo; | |
21 struct SkIRect; | 20 struct SkIRect; |
22 struct SkRect; | 21 struct SkRect; |
23 class SkPaint; | 22 class SkPaint; |
24 class SkPixelRef; | 23 class SkPixelRef; |
25 class SkRegion; | 24 class SkRegion; |
26 class SkString; | 25 class SkString; |
27 | 26 |
28 class GrTexture; | 27 class GrTexture; |
29 | 28 |
30 /** \class SkBitmap | 29 /** \class SkBitmap |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 | 817 |
819 // returns the address of the byte that contains the x coordinate | 818 // returns the address of the byte that contains the x coordinate |
820 inline uint8_t* SkBitmap::getAddr1(int x, int y) const { | 819 inline uint8_t* SkBitmap::getAddr1(int x, int y) const { |
821 SkASSERT(fPixels); | 820 SkASSERT(fPixels); |
822 SkASSERT(fConfig == kA1_Config); | 821 SkASSERT(fConfig == kA1_Config); |
823 SkASSERT((unsigned)x < fWidth && (unsigned)y < fHeight); | 822 SkASSERT((unsigned)x < fWidth && (unsigned)y < fHeight); |
824 return (uint8_t*)fPixels + y * fRowBytes + (x >> 3); | 823 return (uint8_t*)fPixels + y * fRowBytes + (x >> 3); |
825 } | 824 } |
826 | 825 |
827 #endif | 826 #endif |
OLD | NEW |