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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 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_COMPRESSOR_ETC1_H_
6 #define CC_RESOURCES_TEXTURE_COMPRESS_TEXTURE_COMPRESSOR_ETC1_H_
7
8 #include <stdint.h>
reveman 2015/03/23 14:27:23 nit: unnecessary
9
10 #include "cc/resources/texture_compress/texture_compressor.h"
11
12 namespace cc {
13
14 class CC_EXPORT TextureCompressorETC1 : public TextureCompressor {
15 public:
16 TextureCompressorETC1() {}
17
18 // Compress a texture using ETC1. Note that the |quality| parameter is
19 // ignored. The current implementation does not support different quality
20 // settings.
21 void Compress(const uint8_t* src,
22 uint8_t* dst,
23 int width,
24 int height,
25 Quality quality) override;
26
27 private:
28 DISALLOW_COPY_AND_ASSIGN(TextureCompressorETC1);
29 };
30
31 } // namespace cc
32
33 #endif // CC_RESOURCES_TEXTURE_COMPRESS_TEXTURE_COMPRESSOR_ETC1_H_
OLDNEW
« 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