| Index: content/common/gpu/media/jpeg_codec.cc
|
| diff --git a/content/common/gpu/media/jpeg_codec.cc b/content/common/gpu/media/jpeg_codec.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..92519fd154f43c15a7382ac1dcc0d611303605cd
|
| --- /dev/null
|
| +++ b/content/common/gpu/media/jpeg_codec.cc
|
| @@ -0,0 +1,26 @@
|
| +// Copyright (c) 2011 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 "base/logging.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "content/common/gpu/media/jpeg_codec.h"
|
| +#include "content/common/gpu/media/tegra_jpeg_codec_device.h"
|
| +
|
| +
|
| +namespace content {
|
| +
|
| +JPEGCodec::~JPEGCodec() {}
|
| +
|
| +// static
|
| +scoped_ptr<JPEGCodec> JPEGCodec::Create(Type type) {
|
| +
|
| + scoped_ptr<TegraJpegCodecDevice> tegra_device(new TegraJpegCodecDevice(type));
|
| + if (tegra_device->Initialize())
|
| + return tegra_device.Pass();
|
| +
|
| + LOG(ERROR) << "Failed to create JPEGCodec Device";
|
| + return scoped_ptr<JPEGCodec>();
|
| +}
|
| +
|
| +} // namespace gfx
|
|
|