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

Side by Side Diff: content/common/gpu/media/jpeg_codec.cc

Issue 825863002: WIP: Add hardware jpeg decode on tegra platform Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 5 years, 12 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 | « content/common/gpu/media/jpeg_codec.h ('k') | content/common/gpu/media/jpeg_codec_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « content/common/gpu/media/jpeg_codec.h ('k') | content/common/gpu/media/jpeg_codec_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698