diff options
author | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-31 18:20:36 +0000 |
---|---|---|
committer | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-31 18:20:36 +0000 |
commit | 99edff3e5ab2f746dc09492992270f879ad3fc35 (patch) | |
tree | c3e37cb7e417ed511263dd2ffe07489fdc4f5ca2 /ash/gpu_support_stub.h | |
parent | b756ba07aff90b1f63f9258756f3e91e9ef35462 (diff) | |
download | chromium_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.h')
-rw-r--r-- | ash/gpu_support_stub.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ash/gpu_support_stub.h b/ash/gpu_support_stub.h new file mode 100644 index 0000000..b1be11d --- /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_ |