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

Unified 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 6 years 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« 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