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

Unified Diff: ash/gpu_support_stub.h

Issue 132173006: Provide real GPUSupport to ash for Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win (gpu_support) 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/gpu_support.h ('k') | ash/gpu_support_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/gpu_support_stub.h
diff --git a/ash/gpu_support_stub.h b/ash/gpu_support_stub.h
new file mode 100644
index 0000000000000000000000000000000000000000..b1be11d1cd53a04e699be3fe3286de8fc7842d2e
--- /dev/null
+++ b/ash/gpu_support_stub.h
@@ -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.
+
+#ifndef ASH_GPU_SUPPORT_STUB_H_
+#define ASH_GPU_SUPPORT_STUB_H_
+
+#include "ash/ash_export.h"
+#include "ash/gpu_support.h"
+#include "base/compiler_specific.h"
+
+namespace ash {
+
+// A GPUSupport object that does not depend on src/content.
+class ASH_EXPORT GPUSupportStub : public GPUSupport {
+ public:
+ GPUSupportStub();
+ virtual ~GPUSupportStub();
+
+ private:
+ // Overridden from GPUSupport:
+ virtual bool IsPanelFittingDisabled() const OVERRIDE;
+ virtual void DisableGpuWatchdog() OVERRIDE;
+ virtual void GetGpuProcessHandles(
+ const GetGpuProcessHandlesCallback& callback) const OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(GPUSupportStub);
+};
+
+} // namespace ash
+
+#endif // ASH_GPU_SUPPORT_STUB_H_
« no previous file with comments | « ash/gpu_support.h ('k') | ash/gpu_support_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698