OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/singleton.h" | 15 #include "base/memory/singleton.h" |
16 #include "base/process/kill.h" | 16 #include "base/process/kill.h" |
17 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
19 #include "base/values.h" | 19 #include "base/values.h" |
20 #include "content/public/browser/gpu_data_manager.h" | 20 #include "content/public/browser/gpu_data_manager.h" |
21 #include "content/public/common/gpu_memory_stats.h" | 21 #include "content/public/common/gpu_memory_stats.h" |
22 #include "content/public/common/three_d_api_types.h" | 22 #include "content/public/common/three_d_api_types.h" |
23 #include "gpu/config/gpu_info.h" | 23 #include "gpu/config/gpu_info.h" |
24 | 24 |
25 class GURL; | 25 class GURL; |
26 struct WebPreferences; | |
27 | 26 |
28 namespace base { | 27 namespace base { |
29 class CommandLine; | 28 class CommandLine; |
30 } | 29 } |
31 | 30 |
32 namespace content { | 31 namespace content { |
33 | 32 |
34 class GpuDataManagerImplPrivate; | 33 class GpuDataManagerImplPrivate; |
| 34 struct WebPreferences; |
35 | 35 |
36 class CONTENT_EXPORT GpuDataManagerImpl | 36 class CONTENT_EXPORT GpuDataManagerImpl |
37 : public NON_EXPORTED_BASE(GpuDataManager) { | 37 : public NON_EXPORTED_BASE(GpuDataManager) { |
38 public: | 38 public: |
39 // Indicates the guilt level of a domain which caused a GPU reset. | 39 // Indicates the guilt level of a domain which caused a GPU reset. |
40 // If a domain is 100% known to be guilty of resetting the GPU, then | 40 // If a domain is 100% known to be guilty of resetting the GPU, then |
41 // it will generally not cause other domains' use of 3D APIs to be | 41 // it will generally not cause other domains' use of 3D APIs to be |
42 // blocked, unless system stability would be compromised. | 42 // blocked, unless system stability would be compromised. |
43 enum DomainGuilt { | 43 enum DomainGuilt { |
44 DOMAIN_GUILT_KNOWN, | 44 DOMAIN_GUILT_KNOWN, |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 209 |
210 mutable base::Lock lock_; | 210 mutable base::Lock lock_; |
211 scoped_ptr<GpuDataManagerImplPrivate> private_; | 211 scoped_ptr<GpuDataManagerImplPrivate> private_; |
212 | 212 |
213 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); | 213 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); |
214 }; | 214 }; |
215 | 215 |
216 } // namespace content | 216 } // namespace content |
217 | 217 |
218 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 218 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
OLD | NEW |