OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 | 2 * Copyright 2014 |
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 SkTextureCompression_opts_DEFINED | 8 #ifndef SkTextureCompression_opts_DEFINED |
9 #define SkTextureCompression_opts_DEFINED | 9 #define SkTextureCompression_opts_DEFINED |
10 | 10 |
11 #include "SkTextureCompressor.h" | 11 #include "SkTextureCompressor.h" |
12 #include "SkImageInfo.h" | 12 #include "SkImageInfo.h" |
13 | 13 |
14 SkTextureCompressor::CompressionProc | 14 SkTextureCompressor::CompressionProc |
15 SkTextureCompressorGetPlatformProc(SkColorType colorType, SkTextureCompressor::F
ormat fmt); | 15 SkTextureCompressorGetPlatformProc(SkColorType colorType, SkTextureCompressor::F
ormat fmt); |
16 | 16 |
| 17 // Returns true if dimX and dimY are set to the block size of the supplied |
| 18 // compression format according to how the platform can consume them. Returns fa
lse otherwise. |
| 19 bool SkTextureCompressorGetPlatformDims(SkTextureCompressor::Format fmt, int* di
mX, int* dimY); |
| 20 |
17 #endif // SkTextureCompression_opts_DEFINED | 21 #endif // SkTextureCompression_opts_DEFINED |
OLD | NEW |