summaryrefslogtreecommitdiffstats
path: root/ash/gpu_support_stub.cc
diff options
context:
space:
mode:
authorjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-31 18:20:36 +0000
committerjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-31 18:20:36 +0000
commit99edff3e5ab2f746dc09492992270f879ad3fc35 (patch)
treec3e37cb7e417ed511263dd2ffe07489fdc4f5ca2 /ash/gpu_support_stub.cc
parentb756ba07aff90b1f63f9258756f3e91e9ef35462 (diff)
downloadchromium_src-99edff3e5ab2f746dc09492992270f879ad3fc35.zip
chromium_src-99edff3e5ab2f746dc09492992270f879ad3fc35.tar.gz
chromium_src-99edff3e5ab2f746dc09492992270f879ad3fc35.tar.bz2
Provide real GPUSupport to ash for Chrome
A recent refactor to extract src/content dependencies from ash broke GPU feature detection for panel fitting on Chrome OS. In particular the OutputConfigurator was set up using a stub GPUSupport object. Fix injection of the GPUSupport object -- move its creation to the ash::ShellDelegate interface. BUG=chrome-os-partner:25204,chrome-os-partner:24868 TEST=existing ash_unittests Review URL: https://codereview.chromium.org/132173006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248226 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/gpu_support_stub.cc')
-rw-r--r--ash/gpu_support_stub.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/ash/gpu_support_stub.cc b/ash/gpu_support_stub.cc
new file mode 100644
index 0000000..42f468d
--- /dev/null
+++ b/ash/gpu_support_stub.cc
@@ -0,0 +1,22 @@
+// 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/gpu_support_stub.h"
+
+namespace ash {
+
+GPUSupportStub::GPUSupportStub() {}
+
+GPUSupportStub::~GPUSupportStub() {}
+
+bool GPUSupportStub::IsPanelFittingDisabled() const {
+ return false;
+}
+
+void GPUSupportStub::DisableGpuWatchdog() {}
+
+void GPUSupportStub::GetGpuProcessHandles(
+ const GetGpuProcessHandlesCallback& callback) const {}
+
+} // namespace ash