| Index: cc/resources/texture_compressor.cc
|
| diff --git a/cc/resources/texture_compressor.cc b/cc/resources/texture_compressor.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..186a47d04b65a7d9539b033a61b5c8d35c1d01f9
|
| --- /dev/null
|
| +++ b/cc/resources/texture_compressor.cc
|
| @@ -0,0 +1,22 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "cc/resources/texture_compressor.h"
|
| +
|
| +#include "base/logging.h"
|
| +#include "cc/resources/texture_compressor_etc1.h"
|
| +
|
| +namespace cc {
|
| +
|
| +scoped_ptr<TextureCompressor> TextureCompressor::Create(Format format) {
|
| + switch (format) {
|
| + case kFormatETC1:
|
| + return make_scoped_ptr(new TextureCompressorETC1());
|
| + }
|
| +
|
| + NOTREACHED();
|
| + return nullptr;
|
| +}
|
| +
|
| +} // namespace cc
|
|
|