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

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

Issue 10854076: Add GPU memory tab to the task manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate taskman 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_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 "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/public/common/gpu_feature_type.h" 9 #include "content/public/common/gpu_feature_type.h"
10 10
(...skipping 29 matching lines...) Expand all
40 // process, establish GPU channel, and GPU info collection, should be 40 // process, establish GPU channel, and GPU info collection, should be
41 // blocked. 41 // blocked.
42 // Can be called on any thread. 42 // Can be called on any thread.
43 virtual bool GpuAccessAllowed() = 0; 43 virtual bool GpuAccessAllowed() = 0;
44 44
45 // Requests complete GPUinfo if it has not already been requested 45 // Requests complete GPUinfo if it has not already been requested
46 virtual void RequestCompleteGpuInfoIfNeeded() = 0; 46 virtual void RequestCompleteGpuInfoIfNeeded() = 0;
47 47
48 virtual bool IsCompleteGPUInfoAvailable() const = 0; 48 virtual bool IsCompleteGPUInfoAvailable() const = 0;
49 49
50 virtual void RequestVidmemUsageStatsUpdate() = 0;
brettw 2012/08/17 19:07:24 Can you comment what this does?
ccameron 2012/08/17 20:52:55 Added: // Requests that the GPU process report i
51
50 // Returns true if the software rendering should currently be used. 52 // Returns true if the software rendering should currently be used.
51 virtual bool ShouldUseSoftwareRendering() = 0; 53 virtual bool ShouldUseSoftwareRendering() = 0;
52 54
53 // Register a path to the SwiftShader software renderer. 55 // Register a path to the SwiftShader software renderer.
54 virtual void RegisterSwiftShaderPath(const FilePath& path) = 0; 56 virtual void RegisterSwiftShaderPath(const FilePath& path) = 0;
55 57
56 virtual const base::ListValue& GetLogMessages() const = 0; 58 virtual const base::ListValue& GetLogMessages() const = 0;
57 59
58 // Registers/unregister |observer|. 60 // Registers/unregister |observer|.
59 virtual void AddObserver(GpuDataManagerObserver* observer) = 0; 61 virtual void AddObserver(GpuDataManagerObserver* observer) = 0;
60 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0; 62 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0;
61 63
62 protected: 64 protected:
63 virtual ~GpuDataManager() {} 65 virtual ~GpuDataManager() {}
64 }; 66 };
65 67
66 }; // namespace content 68 }; // namespace content
67 69
68 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 70 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698