Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: src/utils/SkTextureCompressor.h

Issue 325733004: Add texture compression utility (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Code review changes Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
scroggo 2014/06/09 20:54:18 nit: SkData.
krajcevski 2014/06/09 21:06:02 Done.
25 // to the bitmap. If the bitmap config cannot be compressed using the
scroggo 2014/06/09 20:54:18 SkBitmap::Config is deprecated. Use SkColorType.
krajcevski 2014/06/09 21:06:02 Done.
26 // associated format, then we return NULL. The returned SkData will have
27 // a refcount of one.
scroggo 2014/06/09 20:54:18 Typically I think we state that the caller is resp
krajcevski 2014/06/09 21:06:02 Done.
28 SkData *CompressBitmapToFormat(const SkBitmap &bitmap, Format format);
scroggo 2014/06/09 20:54:18 nit: SkData* CompressBitmapToFormat const SkBitmap
krajcevski 2014/06/09 21:06:02 Done.
29 }
30
31 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698