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

Side by Side Diff: cc/resources/texture_compressor.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: Update gyp and 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 unified diff | Download patch
« no previous file with comments | « cc/cc.gyp ('k') | cc/resources/texture_compressor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_H_ 5 #ifndef CC_RESOURCES_TEXTURE_COMPRESSOR_H_
6 #define CC_RESOURCES_TEXTURE_COMPRESSOR_H_ 6 #define CC_RESOURCES_TEXTURE_COMPRESSOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/cpu.h"
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 #include "cc/base/cc_export.h" 13 #include "cc/base/cc_export.h"
13 14
14 namespace cc { 15 namespace cc {
15 16
16 class CC_EXPORT TextureCompressor { 17 class CC_EXPORT TextureCompressor {
17 public: 18 public:
18 enum Format { 19 enum Format {
19 kFormatETC1, 20 kFormatETC1,
(...skipping 11 matching lines...) Expand all
31 virtual void Compress(const uint8_t* src, 32 virtual void Compress(const uint8_t* src,
32 uint8_t* dst, 33 uint8_t* dst,
33 int width, 34 int width,
34 int height, 35 int height,
35 Quality quality) = 0; 36 Quality quality) = 0;
36 37
37 protected: 38 protected:
38 TextureCompressor() {} 39 TextureCompressor() {}
39 40
40 private: 41 private:
42 static base::CPU cpu;
robert.bradford 2015/04/28 12:23:19 static initialiser here (of non-POD type) is a big
41 DISALLOW_COPY_AND_ASSIGN(TextureCompressor); 43 DISALLOW_COPY_AND_ASSIGN(TextureCompressor);
42 }; 44 };
43 45
44 } // namespace cc 46 } // namespace cc
45 47
46 #endif // CC_RESOURCES_TEXTURE_COMPRESSOR_H_ 48 #endif // CC_RESOURCES_TEXTURE_COMPRESSOR_H_
OLDNEW
« no previous file with comments | « cc/cc.gyp ('k') | cc/resources/texture_compressor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698