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_RASTER_TEXTURE_COMPRESSOR_ETC1_H_ |
6 #define CC_RESOURCES_TEXTURE_COMPRESSOR_ETC1_H_ | 6 #define CC_RASTER_TEXTURE_COMPRESSOR_ETC1_H_ |
7 | 7 |
8 #include "cc/resources/texture_compressor.h" | 8 #include "cc/raster/texture_compressor.h" |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 | 12 |
13 namespace cc { | 13 namespace cc { |
14 | 14 |
15 template <typename T> | 15 template <typename T> |
16 inline T clamp(T val, T min, T max) { | 16 inline T clamp(T val, T min, T max) { |
17 return val < min ? min : (val > max ? max : val); | 17 return val < min ? min : (val > max ? max : val); |
18 } | 18 } |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 int width, | 196 int width, |
197 int height, | 197 int height, |
198 Quality quality) override; | 198 Quality quality) override; |
199 | 199 |
200 private: | 200 private: |
201 DISALLOW_COPY_AND_ASSIGN(TextureCompressorETC1); | 201 DISALLOW_COPY_AND_ASSIGN(TextureCompressorETC1); |
202 }; | 202 }; |
203 | 203 |
204 } // namespace cc | 204 } // namespace cc |
205 | 205 |
206 #endif // CC_RESOURCES_TEXTURE_COMPRESSOR_ETC1_H_ | 206 #endif // CC_RASTER_TEXTURE_COMPRESSOR_ETC1_H_ |
OLD | NEW |