| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_RESOURCES_TEXTURE_COMPRESSOR_ETC1_H_ | 5 #ifndef CC_RESOURCES_TEXTURE_COMPRESSOR_ETC1_H_ |
| 6 #define CC_RESOURCES_TEXTURE_COMPRESSOR_ETC1_H_ | 6 #define CC_RESOURCES_TEXTURE_COMPRESSOR_ETC1_H_ |
| 7 | 7 |
| 8 #include "cc/resources/texture_compressor.h" | 8 #include "cc/resources/texture_compressor.h" |
| 9 | 9 |
| 10 namespace cc { | 10 namespace cc { |
| 11 | 11 |
| 12 class CC_EXPORT TextureCompressorETC1 : public TextureCompressor { | 12 class TextureCompressorETC1 : public TextureCompressor { |
| 13 public: | 13 public: |
| 14 TextureCompressorETC1() {} | 14 TextureCompressorETC1() {} |
| 15 | 15 |
| 16 // Compress a texture using ETC1. Note that the |quality| parameter is | 16 // Compress a texture using ETC1. Note that the |quality| parameter is |
| 17 // ignored. The current implementation does not support different quality | 17 // ignored. The current implementation does not support different quality |
| 18 // settings. | 18 // settings. |
| 19 void Compress(const uint8_t* src, | 19 void Compress(const uint8_t* src, |
| 20 uint8_t* dst, | 20 uint8_t* dst, |
| 21 int width, | 21 int width, |
| 22 int height, | 22 int height, |
| 23 Quality quality) override; | 23 Quality quality) override; |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 DISALLOW_COPY_AND_ASSIGN(TextureCompressorETC1); | 26 DISALLOW_COPY_AND_ASSIGN(TextureCompressorETC1); |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 } // namespace cc | 29 } // namespace cc |
| 30 | 30 |
| 31 #endif // CC_RESOURCES_TEXTURE_COMPRESSOR_ETC1_H_ | 31 #endif // CC_RESOURCES_TEXTURE_COMPRESSOR_ETC1_H_ |
| OLD | NEW |