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

Unified 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: Disable on Android 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chrome_gpu_util.cc ('k') | content/browser/gpu/gpu_data_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_data_manager_impl.h
diff --git a/content/browser/gpu/gpu_data_manager_impl.h b/content/browser/gpu/gpu_data_manager_impl.h
index 118fcb0f84e0c8a116d3be2f8227d65f94cfb424..d66380d938522f6e938bf79624f5e1e54874eb33 100644
--- a/content/browser/gpu/gpu_data_manager_impl.h
+++ b/content/browser/gpu/gpu_data_manager_impl.h
@@ -50,6 +50,8 @@ class CONTENT_EXPORT GpuDataManagerImpl
virtual void AddObserver(content::GpuDataManagerObserver* observer) OVERRIDE;
virtual void RemoveObserver(
content::GpuDataManagerObserver* observer) OVERRIDE;
+ virtual void SetWindowCount(uint32 count) OVERRIDE;
+ virtual uint32 GetWindowCount() const OVERRIDE;
// This collects preliminary GPU info, load GpuBlacklist, and compute the
// preliminary blacklisted features; it should only be called at browser
@@ -155,6 +157,9 @@ class CONTENT_EXPORT GpuDataManagerImpl
// they cause random failures.
bool update_histograms_;
+ // Number of currently open windows, to be used in gpu memory allocation.
+ int window_count_;
+
DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl);
};
« no previous file with comments | « chrome/browser/chrome_gpu_util.cc ('k') | content/browser/gpu/gpu_data_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698