Index: cc/resources/texture_compress/texture_compress.h |
diff --git a/cc/resources/texture_compress/texture_compress.h b/cc/resources/texture_compress/texture_compress.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8365472f77696ede1f2cb80bf3d2a6e895ee8e48 |
--- /dev/null |
+++ b/cc/resources/texture_compress/texture_compress.h |
@@ -0,0 +1,31 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CC_RESOURCES_TEXTURE_COMPRESS_TEXTURE_COMPRESS_H_ |
+#define CC_RESOURCES_TEXTURE_COMPRESS_TEXTURE_COMPRESS_H_ |
+ |
+#include <stdint.h> |
+ |
+namespace cc { |
+namespace texture_compress { |
+ |
+// Defines the texture compression function type. |src| is the raw image data |
+// in BGRA format. |dst| is the destination buffer to which the compressed data |
+// should be written. |width| and |height| are the texture width and height |
+// measured in pixels. |
+typedef void (*TextureCompressFunc)(const uint8_t* src, |
+ uint8_t* dst, |
+ int width, |
+ int height); |
+ |
+extern TextureCompressFunc CompressATC; |
+extern TextureCompressFunc CompressATCIA; |
+extern TextureCompressFunc CompressETC1; |
+extern TextureCompressFunc CompressDXT1; |
+extern TextureCompressFunc CompressDXT5; |
+ |
+} // namespace texture_compress |
+} // namespace cc |
+ |
+#endif // CC_RESOURCES_TEXTURE_COMPRESS_TEXTURE_COMPRESS_H_ |