OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
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 | 10 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 static inline SkPMColor GrColorToSkPMColor(GrColor c) { | 71 static inline SkPMColor GrColorToSkPMColor(GrColor c) { |
72 GrColorIsPMAssert(c); | 72 GrColorIsPMAssert(c); |
73 return SkPackARGB32(GrColorUnpackA(c), GrColorUnpackR(c), GrColorUnpackG(c),
GrColorUnpackB(c)); | 73 return SkPackARGB32(GrColorUnpackA(c), GrColorUnpackR(c), GrColorUnpackG(c),
GrColorUnpackB(c)); |
74 } | 74 } |
75 | 75 |
76 static inline GrColor SkPMColorToGrColor(SkPMColor c) { | 76 static inline GrColor SkPMColorToGrColor(SkPMColor c) { |
77 return GrColorPackRGBA(SkGetPackedR32(c), SkGetPackedG32(c), SkGetPackedB32(
c), | 77 return GrColorPackRGBA(SkGetPackedR32(c), SkGetPackedG32(c), SkGetPackedB32(
c), |
78 SkGetPackedA32(c)); | 78 SkGetPackedA32(c)); |
79 } | 79 } |
80 | 80 |
| 81 GrSurfaceDesc GrImageInfoToSurfaceDesc(const SkImageInfo&); |
| 82 |
81 //////////////////////////////////////////////////////////////////////////////// | 83 //////////////////////////////////////////////////////////////////////////////// |
82 | 84 |
83 /** | 85 /** |
84 * If the compressed data in the SkData is supported (as a texture format, this
returns | 86 * If the compressed data in the SkData is supported (as a texture format, this
returns |
85 * the pixel-config that should be used, and sets outStartOfDataToUpload to the
ptr into | 87 * the pixel-config that should be used, and sets outStartOfDataToUpload to the
ptr into |
86 * the data where the actual raw data starts (skipping any header bytes). | 88 * the data where the actual raw data starts (skipping any header bytes). |
87 * | 89 * |
88 * If the compressed data is not supported, this returns kUnknown_GrPixelConfig
, and | 90 * If the compressed data is not supported, this returns kUnknown_GrPixelConfig
, and |
89 * ignores outStartOfDataToUpload. | 91 * ignores outStartOfDataToUpload. |
90 */ | 92 */ |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 bool* doBicubic); | 137 bool* doBicubic); |
136 | 138 |
137 //////////////////////////////////////////////////////////////////////////////// | 139 //////////////////////////////////////////////////////////////////////////////// |
138 // Classes | 140 // Classes |
139 | 141 |
140 class SkGlyphCache; | 142 class SkGlyphCache; |
141 | 143 |
142 //////////////////////////////////////////////////////////////////////////////// | 144 //////////////////////////////////////////////////////////////////////////////// |
143 | 145 |
144 #endif | 146 #endif |
OLD | NEW |