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

Side by Side Diff: content/public/browser/gpu_data_manager.h

Issue 11026015: Add calls to inform gpu of browser window count (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Send correct window count 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_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 int level, const std::string& header, const std::string& message) = 0; 72 int level, const std::string& header, const std::string& message) = 0;
73 73
74 // Returns a new copy of the ListValue. Caller is responsible to release 74 // Returns a new copy of the ListValue. Caller is responsible to release
75 // the returned value. 75 // the returned value.
76 virtual base::ListValue* GetLogMessages() const = 0; 76 virtual base::ListValue* GetLogMessages() const = 0;
77 77
78 // Registers/unregister |observer|. 78 // Registers/unregister |observer|.
79 virtual void AddObserver(GpuDataManagerObserver* observer) = 0; 79 virtual void AddObserver(GpuDataManagerObserver* observer) = 0;
80 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0; 80 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0;
81 81
82 // Notifies the gpu process about the number of browser windows, so
83 // they can be used to determine managed memory allocation.
84 virtual void SetWindowCount(uint32 count) = 0;
85 virtual uint32 GetWindowCount() const = 0;
86
82 protected: 87 protected:
83 virtual ~GpuDataManager() {} 88 virtual ~GpuDataManager() {}
84 }; 89 };
85 90
86 }; // namespace content 91 }; // namespace content
87 92
88 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 93 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
OLDNEW
« content/browser/gpu/gpu_process_host.cc ('K') | « content/browser/gpu/gpu_process_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698