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

Side by Side Diff: ash/gpu_support.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, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/content_support/inject.cc ('k') | ash/gpu_support_stub.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_GPU_SUPPORT_H_ 5 #ifndef ASH_GPU_SUPPORT_H_
6 #define ASH_GPU_SUPPORT_H_ 6 #define ASH_GPU_SUPPORT_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "ash/ash_export.h"
10 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
11 #include "base/process/process.h" 12 #include "base/process/process.h"
12 13
13 namespace ash { 14 namespace ash {
14 15
15 // An interface to allow use of content::GpuDataManager to be injected in 16 // An interface to allow use of content::GpuDataManager to be injected in
16 // configurations that permit a dependency on content. 17 // configurations that permit a dependency on content.
17 class GPUSupport { 18 class ASH_EXPORT GPUSupport {
18 public: 19 public:
19 typedef base::Callback<void(const std::list<base::ProcessHandle>&)> 20 typedef base::Callback<void(const std::list<base::ProcessHandle>&)>
20 GetGpuProcessHandlesCallback; 21 GetGpuProcessHandlesCallback;
21 22
22 virtual ~GPUSupport() {} 23 virtual ~GPUSupport() {}
23 24
24 virtual bool IsPanelFittingDisabled() const = 0; 25 virtual bool IsPanelFittingDisabled() const = 0;
25 26
26 virtual void DisableGpuWatchdog() = 0; 27 virtual void DisableGpuWatchdog() = 0;
27 28
28 virtual void GetGpuProcessHandles( 29 virtual void GetGpuProcessHandles(
29 const GetGpuProcessHandlesCallback& callback) const = 0; 30 const GetGpuProcessHandlesCallback& callback) const = 0;
30 }; 31 };
31 32
32 } // namespace ash 33 } // namespace ash
33 34
34 #endif // ASH_GPU_SUPPORT_H_ 35 #endif // ASH_GPU_SUPPORT_H_
OLDNEW
« no previous file with comments | « ash/content_support/inject.cc ('k') | ash/gpu_support_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698