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

Unified Diff: ash/gpu_support.h

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.cc ('k') | ash/keyboard_overlay/keyboard_overlay_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/gpu_support.h
diff --git a/ash/gpu_support.h b/ash/gpu_support.h
new file mode 100644
index 0000000000000000000000000000000000000000..089f121e2f10ef7d069ccf74309f9488b05be9f0
--- /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_
« no previous file with comments | « ash/content_support/inject.cc ('k') | ash/keyboard_overlay/keyboard_overlay_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698