| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/logging.h" |
| 6 #include "base/memory/scoped_ptr.h" |
| 7 #include "content/common/gpu/media/jpeg_codec.h" |
| 8 #include "content/common/gpu/media/tegra_jpeg_codec_device.h" |
| 9 |
| 10 |
| 11 namespace content { |
| 12 |
| 13 JPEGCodec::~JPEGCodec() {} |
| 14 |
| 15 // static |
| 16 scoped_ptr<JPEGCodec> JPEGCodec::Create(Type type) { |
| 17 |
| 18 scoped_ptr<TegraJpegCodecDevice> tegra_device(new TegraJpegCodecDevice(type)); |
| 19 if (tegra_device->Initialize()) |
| 20 return tegra_device.Pass(); |
| 21 |
| 22 LOG(ERROR) << "Failed to create JPEGCodec Device"; |
| 23 return scoped_ptr<JPEGCodec>(); |
| 24 } |
| 25 |
| 26 } // namespace gfx |
| OLD | NEW |