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

Unified Diff: cc/resources/texture_compress/texture_compressor_etc1.h

Issue 1015373003: Add texture compression interface and ETC1 encoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove compressor pointer check Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: cc/resources/texture_compress/texture_compressor_etc1.h
diff --git a/cc/resources/texture_compress/texture_compressor_etc1.h b/cc/resources/texture_compress/texture_compressor_etc1.h
new file mode 100644
index 0000000000000000000000000000000000000000..68a15a9ad643f0ceb9eb3ac52c7e3a765b96f788
--- /dev/null
+++ b/cc/resources/texture_compress/texture_compressor_etc1.h
@@ -0,0 +1,33 @@
+// Copyright 2015 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_COMPRESSOR_ETC1_H_
+#define CC_RESOURCES_TEXTURE_COMPRESS_TEXTURE_COMPRESSOR_ETC1_H_
+
+#include <stdint.h>
reveman 2015/03/23 14:27:23 nit: unnecessary
+
+#include "cc/resources/texture_compress/texture_compressor.h"
+
+namespace cc {
+
+class CC_EXPORT TextureCompressorETC1 : public TextureCompressor {
+ public:
+ TextureCompressorETC1() {}
+
+ // Compress a texture using ETC1. Note that the |quality| parameter is
+ // ignored. The current implementation does not support different quality
+ // settings.
+ void Compress(const uint8_t* src,
+ uint8_t* dst,
+ int width,
+ int height,
+ Quality quality) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(TextureCompressorETC1);
+};
+
+} // namespace cc
+
+#endif // CC_RESOURCES_TEXTURE_COMPRESS_TEXTURE_COMPRESSOR_ETC1_H_
« no previous file with comments | « cc/resources/texture_compress/texture_compressor.cc ('k') | cc/resources/texture_compress/texture_compressor_etc1.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698