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

Side by Side Diff: chrome/browser/gpu_data_manager.h

Issue 6712048: Implement easy GPU feature status summary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor tweak. Created 9 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/gpu_data_manager.cc » ('j') | content/browser/gpu_blacklist.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_DATA_MANAGER_H_ 5 #ifndef CHROME_BROWSER_GPU_DATA_MANAGER_H_
6 #define CHROME_BROWSER_GPU_DATA_MANAGER_H_ 6 #define CHROME_BROWSER_GPU_DATA_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 16 matching lines...) Expand all
27 static GpuDataManager* GetInstance(); 27 static GpuDataManager* GetInstance();
28 28
29 // Requests complete GPUinfo if it has not already been requested 29 // Requests complete GPUinfo if it has not already been requested
30 void RequestCompleteGpuInfoIfNeeded(); 30 void RequestCompleteGpuInfoIfNeeded();
31 31
32 // Only update if the current GPUInfo is not finalized. 32 // Only update if the current GPUInfo is not finalized.
33 void UpdateGpuInfo(const GPUInfo& gpu_info); 33 void UpdateGpuInfo(const GPUInfo& gpu_info);
34 34
35 const GPUInfo& gpu_info() const; 35 const GPUInfo& gpu_info() const;
36 36
37 // Returns blacklisting reasons structure from gpu_blacklist or NULL 37 // Returns status of various GPU features. Return type is
38 // if not blacklisted. Caller is responsible for deleting returned value. 38 // GpuBlacklist::GetFeatureStatus, or NULL if blacklist is
39 Value* GetBlacklistingReasons() const; 39 // uninitialized. Caller is responsible for deleting the returned value.
40 Value* GetFeatureStatus();
40 41
41 std::string GetBlacklistVersion() const; 42 std::string GetBlacklistVersion() const;
42 43
43 void AddLogMessage(Value* msg); 44 void AddLogMessage(Value* msg);
44 45
45 const ListValue& log_messages() const; 46 const ListValue& log_messages() const;
46 47
47 // If necessary, compute the flags before returning them. 48 // If necessary, compute the flags before returning them.
48 GpuFeatureFlags GetGpuFeatureFlags(); 49 GpuFeatureFlags GetGpuFeatureFlags();
49 50
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 107
107 // Map of callbacks. 108 // Map of callbacks.
108 std::set<Callback0::Type*> gpu_info_update_callbacks_; 109 std::set<Callback0::Type*> gpu_info_update_callbacks_;
109 110
110 ListValue log_messages_; 111 ListValue log_messages_;
111 112
112 DISALLOW_COPY_AND_ASSIGN(GpuDataManager); 113 DISALLOW_COPY_AND_ASSIGN(GpuDataManager);
113 }; 114 };
114 115
115 #endif // CHROME_BROWSER_GPU_DATA_MANAGER_H_ 116 #endif // CHROME_BROWSER_GPU_DATA_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gpu_data_manager.cc » ('j') | content/browser/gpu_blacklist.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698