Chromium Code Reviews| Index: cc/resources/texture_compressor.cc |
| diff --git a/cc/resources/texture_compressor.cc b/cc/resources/texture_compressor.cc |
| index 186a47d04b65a7d9539b033a61b5c8d35c1d01f9..782dfa78e3f08ac94754c86cbdf18c7073f53fc1 100644 |
| --- a/cc/resources/texture_compressor.cc |
| +++ b/cc/resources/texture_compressor.cc |
| @@ -6,13 +6,17 @@ |
| #include "base/logging.h" |
| #include "cc/resources/texture_compressor_etc1.h" |
| +#include "cc/resources/texture_compressor_etc1_sse.h" |
| namespace cc { |
| scoped_ptr<TextureCompressor> TextureCompressor::Create(Format format) { |
| switch (format) { |
| case kFormatETC1: |
| - return make_scoped_ptr(new TextureCompressorETC1()); |
| + if (cpu.has_sse2()) |
| + return make_scoped_ptr(new TextureCompressorETC1_SSE()); |
| + else |
| + return make_scoped_ptr(new TextureCompressorETC1()); |
|
robert.bradford
2015/04/17 16:20:08
What about this instead:
scoped_ptr<TextureCompre
|
| } |
| NOTREACHED(); |