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

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

Issue 11026015: Add calls to inform gpu of browser window count (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual bool IsCompleteGpuInfoAvailable() const OVERRIDE; 43 virtual bool IsCompleteGpuInfoAvailable() const OVERRIDE;
44 virtual void RequestVideoMemoryUsageStatsUpdate() const OVERRIDE; 44 virtual void RequestVideoMemoryUsageStatsUpdate() const OVERRIDE;
45 virtual bool ShouldUseSoftwareRendering() const OVERRIDE; 45 virtual bool ShouldUseSoftwareRendering() const OVERRIDE;
46 virtual void RegisterSwiftShaderPath(const FilePath& path) OVERRIDE; 46 virtual void RegisterSwiftShaderPath(const FilePath& path) OVERRIDE;
47 virtual void AddLogMessage(int level, const std::string& header, 47 virtual void AddLogMessage(int level, const std::string& header,
48 const std::string& message) OVERRIDE; 48 const std::string& message) OVERRIDE;
49 virtual base::ListValue* GetLogMessages() const OVERRIDE; 49 virtual base::ListValue* GetLogMessages() const OVERRIDE;
50 virtual void AddObserver(content::GpuDataManagerObserver* observer) OVERRIDE; 50 virtual void AddObserver(content::GpuDataManagerObserver* observer) OVERRIDE;
51 virtual void RemoveObserver( 51 virtual void RemoveObserver(
52 content::GpuDataManagerObserver* observer) OVERRIDE; 52 content::GpuDataManagerObserver* observer) OVERRIDE;
53 virtual void SetWindowCount(uint32 count) OVERRIDE;
54
53 55
54 // This collects preliminary GPU info, load GpuBlacklist, and compute the 56 // This collects preliminary GPU info, load GpuBlacklist, and compute the
55 // preliminary blacklisted features; it should only be called at browser 57 // preliminary blacklisted features; it should only be called at browser
56 // startup time in UI thread before the IO restriction is turned on. 58 // startup time in UI thread before the IO restriction is turned on.
57 void Initialize(); 59 void Initialize();
58 60
59 // Only update if the current GPUInfo is not finalized. If blacklist is 61 // Only update if the current GPUInfo is not finalized. If blacklist is
60 // loaded, run through blacklist and update blacklisted features. 62 // loaded, run through blacklist and update blacklisted features.
61 void UpdateGpuInfo(const content::GPUInfo& gpu_info); 63 void UpdateGpuInfo(const content::GPUInfo& gpu_info);
62 64
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 bool card_blacklisted_; 154 bool card_blacklisted_;
153 155
154 // We disable histogram stuff in testing, especially in unit tests because 156 // We disable histogram stuff in testing, especially in unit tests because
155 // they cause random failures. 157 // they cause random failures.
156 bool update_histograms_; 158 bool update_histograms_;
157 159
158 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); 160 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl);
159 }; 161 };
160 162
161 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ 163 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698