summaryrefslogtreecommitdiffstats
path: root/ash/shell_delegate.h
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/shell_delegate.h
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/shell_delegate.h')
-rw-r--r--ash/shell_delegate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ash/shell_delegate.h b/ash/shell_delegate.h
index 452c420..8ca36dc2 100644
--- a/ash/shell_delegate.h
+++ b/ash/shell_delegate.h
@@ -138,6 +138,9 @@ class ASH_EXPORT ShellDelegate {
// value.
virtual WindowTreeHostFactory* CreateWindowTreeHostFactory() = 0;
+ // Creates a GPU support object. Shell takes ownership of the object.
+ virtual GPUSupport* CreateGPUSupport() = 0;
+
// Get the product name.
virtual base::string16 GetProductName() const = 0;
};