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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« 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