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

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

Issue 10854076: Add GPU memory tab to the task manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback Created 8 years, 4 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_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_ 6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/public/common/gpu_memory_stats.h"
9 10
10 namespace content { 11 namespace content {
11 12
12 // Observers can register themselves via GpuDataManager::AddObserver, and 13 // Observers can register themselves via GpuDataManager::AddObserver, and
13 // can un-register with GpuDataManager::RemoveObserver. 14 // can un-register with GpuDataManager::RemoveObserver.
14 class GpuDataManagerObserver { 15 class GpuDataManagerObserver {
15 public: 16 public:
16 // Called for any observers whenever there is a GPU info update. 17 // Called for any observers whenever there is a GPU info update.
17 virtual void OnGpuInfoUpdate() = 0; 18 virtual void OnGpuInfoUpdate() = 0;
18 19
20 // Called for any observers whenever there is a GPU video memory update.
21 virtual void OnVideoMemoryUsageStatsUpdate(
22 const GPUVideoMemoryUsageStats& video_memory_usage_stats) = 0;
23
19 protected: 24 protected:
20 virtual ~GpuDataManagerObserver() {} 25 virtual ~GpuDataManagerObserver() {}
21 }; 26 };
22 27
23 }; // namespace content 28 }; // namespace content
24 29
25 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_ 30 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698