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

Side by Side Diff: cc/resources/texture_compress/texture_compress.h

Issue 793693003: Tile Compression (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_RESOURCES_TEXTURE_COMPRESS_TEXTURE_COMPRESS_H_
6 #define CC_RESOURCES_TEXTURE_COMPRESS_TEXTURE_COMPRESS_H_
7
8 #include <stdint.h>
9
10 namespace cc {
11 namespace texture_compress {
12
13 // Defines the texture compression function type. |src| is the raw image data
14 // in BGRA format. |dst| is the destination buffer to which the compressed data
15 // should be written. |width| and |height| are the texture width and height
16 // measured in pixels.
17 typedef void (*TextureCompressFunc)(const uint8_t* src,
18 uint8_t* dst,
19 int width,
20 int height);
21
22 extern TextureCompressFunc CompressATC;
23 extern TextureCompressFunc CompressATCIA;
24 extern TextureCompressFunc CompressETC1;
25 extern TextureCompressFunc CompressDXT1;
26 extern TextureCompressFunc CompressDXT5;
27
28 } // namespace texture_compress
29 } // namespace cc
30
31 #endif // CC_RESOURCES_TEXTURE_COMPRESS_TEXTURE_COMPRESS_H_
OLDNEW
« no previous file with comments | « cc/resources/texture_compress/etc1.cc ('k') | cc/resources/texture_compress/texture_compress.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698