summaryrefslogtreecommitdiffstats
path: root/ash/gpu_support.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-16 06:09:48 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-16 06:09:48 +0000
commit1d2a72123130afa9132181d1cd1a02741b6e9eff (patch)
tree0ee4eb5fb9b4467840d6eeb26e4760ea794f120d /ash/gpu_support.h
parent5cef855985b4b016705c1c37542e97e1fe2eb416 (diff)
downloadchromium_src-1d2a72123130afa9132181d1cd1a02741b6e9eff.zip
chromium_src-1d2a72123130afa9132181d1cd1a02741b6e9eff.tar.gz
chromium_src-1d2a72123130afa9132181d1cd1a02741b6e9eff.tar.bz2
Inject GPUDataManager support into ash to abstract a content dependency.
http://crbug.com/332504 R=oshima@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245010 Review URL: https://codereview.chromium.org/138223004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245161 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/gpu_support.h')
-rw-r--r--ash/gpu_support.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/ash/gpu_support.h b/ash/gpu_support.h
new file mode 100644
index 0000000..089f121
--- /dev/null
+++ b/ash/gpu_support.h
@@ -0,0 +1,34 @@
+// 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.
+
+#ifndef ASH_GPU_SUPPORT_H_
+#define ASH_GPU_SUPPORT_H_
+
+#include <list>
+
+#include "base/callback_forward.h"
+#include "base/process/process.h"
+
+namespace ash {
+
+// An interface to allow use of content::GpuDataManager to be injected in
+// configurations that permit a dependency on content.
+class GPUSupport {
+ public:
+ typedef base::Callback<void(const std::list<base::ProcessHandle>&)>
+ GetGpuProcessHandlesCallback;
+
+ virtual ~GPUSupport() {}
+
+ virtual bool IsPanelFittingDisabled() const = 0;
+
+ virtual void DisableGpuWatchdog() = 0;
+
+ virtual void GetGpuProcessHandles(
+ const GetGpuProcessHandlesCallback& callback) const = 0;
+};
+
+} // namespace ash
+
+#endif // ASH_GPU_SUPPORT_H_