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

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl.h

Issue 1726343003: Revert of Mustash: move content::GPUVideoMemoryUsageStats to gpu::VideoMemoryUsageStats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | content/browser/gpu/gpu_data_manager_impl.cc » ('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 (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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/memory/singleton.h" 18 #include "base/memory/singleton.h"
19 #include "base/process/kill.h" 19 #include "base/process/kill.h"
20 #include "base/synchronization/lock.h" 20 #include "base/synchronization/lock.h"
21 #include "base/time/time.h" 21 #include "base/time/time.h"
22 #include "base/values.h" 22 #include "base/values.h"
23 #include "content/public/browser/gpu_data_manager.h" 23 #include "content/public/browser/gpu_data_manager.h"
24 #include "content/public/common/gpu_memory_stats.h"
24 #include "content/public/common/three_d_api_types.h" 25 #include "content/public/common/three_d_api_types.h"
25 #include "gpu/config/gpu_info.h" 26 #include "gpu/config/gpu_info.h"
26 27
27 class GURL; 28 class GURL;
28 29
29 namespace base { 30 namespace base {
30 class CommandLine; 31 class CommandLine;
31 } 32 }
32 33
33 namespace gpu {
34 struct VideoMemoryUsageStats;
35 }
36
37 namespace content { 34 namespace content {
38 35
39 class GpuDataManagerImplPrivate; 36 class GpuDataManagerImplPrivate;
40 struct WebPreferences; 37 struct WebPreferences;
41 38
42 class CONTENT_EXPORT GpuDataManagerImpl 39 class CONTENT_EXPORT GpuDataManagerImpl
43 : public NON_EXPORTED_BASE(GpuDataManager) { 40 : public NON_EXPORTED_BASE(GpuDataManager) {
44 public: 41 public:
45 // Indicates the guilt level of a domain which caused a GPU reset. 42 // Indicates the guilt level of a domain which caused a GPU reset.
46 // If a domain is 100% known to be guilty of resetting the GPU, then 43 // If a domain is 100% known to be guilty of resetting the GPU, then
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // This collects preliminary GPU info, load GpuBlacklist, and compute the 96 // This collects preliminary GPU info, load GpuBlacklist, and compute the
100 // preliminary blacklisted features; it should only be called at browser 97 // preliminary blacklisted features; it should only be called at browser
101 // startup time in UI thread before the IO restriction is turned on. 98 // startup time in UI thread before the IO restriction is turned on.
102 void Initialize(); 99 void Initialize();
103 100
104 // Only update if the current GPUInfo is not finalized. If blacklist is 101 // Only update if the current GPUInfo is not finalized. If blacklist is
105 // loaded, run through blacklist and update blacklisted features. 102 // loaded, run through blacklist and update blacklisted features.
106 void UpdateGpuInfo(const gpu::GPUInfo& gpu_info); 103 void UpdateGpuInfo(const gpu::GPUInfo& gpu_info);
107 104
108 void UpdateVideoMemoryUsageStats( 105 void UpdateVideoMemoryUsageStats(
109 const gpu::VideoMemoryUsageStats& video_memory_usage_stats); 106 const GPUVideoMemoryUsageStats& video_memory_usage_stats);
110 107
111 // Insert disable-feature switches corresponding to preliminary gpu feature 108 // Insert disable-feature switches corresponding to preliminary gpu feature
112 // flags into the renderer process command line. 109 // flags into the renderer process command line.
113 void AppendRendererCommandLine(base::CommandLine* command_line) const; 110 void AppendRendererCommandLine(base::CommandLine* command_line) const;
114 111
115 // Insert switches into gpu process command line: kUseGL, etc. 112 // Insert switches into gpu process command line: kUseGL, etc.
116 void AppendGpuCommandLine(base::CommandLine* command_line) const; 113 void AppendGpuCommandLine(base::CommandLine* command_line) const;
117 114
118 // Insert switches into plugin process command line: 115 // Insert switches into plugin process command line:
119 // kDisableCoreAnimationPlugins. 116 // kDisableCoreAnimationPlugins.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 218
222 mutable base::Lock lock_; 219 mutable base::Lock lock_;
223 scoped_ptr<GpuDataManagerImplPrivate> private_; 220 scoped_ptr<GpuDataManagerImplPrivate> private_;
224 221
225 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); 222 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl);
226 }; 223 };
227 224
228 } // namespace content 225 } // namespace content
229 226
230 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ 227 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | content/browser/gpu/gpu_data_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698