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

Side by Side Diff: chrome/browser/gpu_feature_checker.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 CHROME_BROWSER_GPU_FEATURE_CHECKER_H_ 5 #ifndef CHROME_BROWSER_GPU_FEATURE_CHECKER_H_
6 #define CHROME_BROWSER_GPU_FEATURE_CHECKER_H_ 6 #define CHROME_BROWSER_GPU_FEATURE_CHECKER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "content/public/browser/gpu_data_manager_observer.h" 9 #include "content/public/browser/gpu_data_manager_observer.h"
10 #include "content/public/common/gpu_feature_type.h" 10 #include "content/public/common/gpu_feature_type.h"
(...skipping 11 matching lines...) Expand all
22 GPUFeatureChecker(content::GpuFeatureType feature, 22 GPUFeatureChecker(content::GpuFeatureType feature,
23 FeatureAvailableCallback callback); 23 FeatureAvailableCallback callback);
24 24
25 // Check to see if |feature_| is available on the current GPU. |callback_| 25 // Check to see if |feature_| is available on the current GPU. |callback_|
26 // will be called to indicate the availability of the feature. Must be called 26 // will be called to indicate the availability of the feature. Must be called
27 // from the the UI thread. 27 // from the the UI thread.
28 void CheckGPUFeatureAvailability(); 28 void CheckGPUFeatureAvailability();
29 29
30 // content::GpuDataManagerObserver 30 // content::GpuDataManagerObserver
31 virtual void OnGpuInfoUpdate() OVERRIDE; 31 virtual void OnGpuInfoUpdate() OVERRIDE;
32 virtual void OnVideoMemoryUsageStatsUpdate(
33 const content::GPUVideoMemoryUsageStats& video_memory_usage_stats)
34 OVERRIDE {}
32 private: 35 private:
33 friend class base::RefCountedThreadSafe<GPUFeatureChecker>; 36 friend class base::RefCountedThreadSafe<GPUFeatureChecker>;
34 37
35 virtual ~GPUFeatureChecker(); 38 virtual ~GPUFeatureChecker();
36 39
37 content::GpuFeatureType feature_; 40 content::GpuFeatureType feature_;
38 FeatureAvailableCallback callback_; 41 FeatureAvailableCallback callback_;
39 42
40 DISALLOW_COPY_AND_ASSIGN(GPUFeatureChecker); 43 DISALLOW_COPY_AND_ASSIGN(GPUFeatureChecker);
41 }; 44 };
42 45
43 #endif // CHROME_BROWSER_GPU_FEATURE_CHECKER_H_ 46 #endif // CHROME_BROWSER_GPU_FEATURE_CHECKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698