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

Unified Diff: ash/content_support/gpu_support_impl.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/gpu_support_impl.h ('k') | ash/content_support/inject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/content_support/gpu_support_impl.cc
diff --git a/ash/content_support/gpu_support_impl.cc b/ash/content_support/gpu_support_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d425d89ff4b6e04ec3837a584fda722566a5674a
--- /dev/null
+++ b/ash/content_support/gpu_support_impl.cc
@@ -0,0 +1,32 @@
+// 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/gpu_support_impl.h"
+
+#include "content/public/browser/gpu_data_manager.h"
+#include "gpu/config/gpu_feature_type.h"
+
+namespace ash {
+
+GPUSupportImpl::GPUSupportImpl() {
+}
+
+GPUSupportImpl::~GPUSupportImpl() {
+}
+
+bool GPUSupportImpl::IsPanelFittingDisabled() const {
+ return content::GpuDataManager::GetInstance()->IsFeatureBlacklisted(
+ gpu::GPU_FEATURE_TYPE_PANEL_FITTING);
+}
+
+void GPUSupportImpl::DisableGpuWatchdog() {
+ content::GpuDataManager::GetInstance()->DisableGpuWatchdog();
+}
+
+void GPUSupportImpl::GetGpuProcessHandles(
+ const GetGpuProcessHandlesCallback& callback) const {
+ content::GpuDataManager::GetInstance()->GetGpuProcessHandles(callback);
+}
+
+} // namespace ash
« no previous file with comments | « ash/content_support/gpu_support_impl.h ('k') | ash/content_support/inject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698