OLD | NEW |
---|---|
(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_ | |
OLD | NEW |