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

Unified Diff: cc/resources/texture_compressor_etc1_sse.h

Issue 1096703002: Reland: Add ETC1 powered SSE encoder for tile texture compression (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reland: Change ia32 to x86 in Build.gn Created 5 years, 7 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_compressor_etc1_sse.h
diff --git a/cc/resources/texture_compressor_etc1_sse.h b/cc/resources/texture_compressor_etc1_sse.h
new file mode 100644
index 0000000000000000000000000000000000000000..48b81c59b85535435314ce6706c1de94c9596718
--- /dev/null
+++ b/cc/resources/texture_compressor_etc1_sse.h
@@ -0,0 +1,31 @@
+// 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_COMPRESSOR_ETC1_SSE_H_
+#define CC_RESOURCES_TEXTURE_COMPRESSOR_ETC1_SSE_H_
+
+#include "cc/resources/texture_compressor.h"
+
+namespace cc {
+
+class CC_EXPORT TextureCompressorETC1SSE : public TextureCompressor {
+ public:
+ TextureCompressorETC1SSE() {}
+
+ // 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(TextureCompressorETC1SSE);
+};
+
+} // namespace cc
+
+#endif // CC_RESOURCES_TEXTURE_COMPRESSOR_ETC1_SSE_H_

Powered by Google App Engine
This is Rietveld 408576698