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

Unified Diff: ash/content_support/inject.cc

Issue 138223004: Inject GPUDataManager support into ash to abstract a content dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/content_support/inject.h ('k') | ash/gpu_support.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/content_support/inject.cc
diff --git a/ash/content_support/inject.cc b/ash/content_support/inject.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ba9f95a9671929168b5a11f8a2b5aa21a8d87b15
--- /dev/null
+++ b/ash/content_support/inject.cc
@@ -0,0 +1,17 @@
+// Copyright 2014 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 "ash/content_support/inject.h"
+
+#include "ash/content_support/gpu_support_impl.h"
+#include "ash/shell.h"
+
+namespace ash {
+
+void InitContentSupport() {
+ scoped_ptr<GPUSupport> gpu_support(new GPUSupportImpl);
+ Shell::GetInstance()->SetGPUSupport(gpu_support.Pass());
+}
+
+} // namespace ash
« no previous file with comments | « ash/content_support/inject.h ('k') | ash/gpu_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698