Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright 2014 Google Inc. | |
| 3 * | |
| 4 * Use of this source code is governed by a BSD-style license that can be | |
| 5 * found in the LICENSE file. | |
| 6 */ | |
| 7 | |
| 8 #ifndef SkTextureCompressor_DEFINED | |
| 9 #define SkTextureCompressor_DEFINED | |
| 10 | |
| 11 class SkBitmap; | |
| 12 class SkData; | |
| 13 | |
| 14 namespace SkTextureCompressor { | |
| 15 // Various texture compression formats that we support. | |
| 16 enum Format { | |
| 17 // Alpha only format. | |
| 18 kLATC_Format, | |
| 19 | |
| 20 kLast_Format = kLATC_Format | |
| 21 }; | |
| 22 static const int kFormatCnt = kLast_Format + 1; | |
| 23 | |
| 24 // Returns an SKData holding a blob of compressed data that corresponds | |
|
robertphillips
2014/06/09 19:50:18
pixelConfig -> config ?
krajcevski
2014/06/09 20:39:34
Done.
| |
| 25 // to the bitmap. If pixelConfig is not a compressed format, then this | |
| 26 // function returns NULL. The returned SkData will have a refcount of one. | |
| 27 SkData *CompressBitmapToFormat(const SkBitmap &bitmap, Format config); | |
| 28 } | |
| 29 | |
| 30 #endif | |
| OLD | NEW |