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

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

Issue 6673003: Move GPU messages to content. I've also switched the IPC structs to use the ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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_process_host_ui_shim.h » ('j') | no next file with comments »
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 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/scoped_ptr.h" 12 #include "base/scoped_ptr.h"
13 #include "base/singleton.h" 13 #include "base/singleton.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/web_resource/gpu_blacklist_updater.h" 15 #include "chrome/browser/web_resource/gpu_blacklist_updater.h"
16 #include "chrome/common/gpu_feature_flags.h" 16 #include "chrome/common/gpu_feature_flags.h"
17 #include "chrome/common/gpu_info.h" 17 #include "content/common/gpu_info.h"
18 18
19 class CommandLine; 19 class CommandLine;
20 class DictionaryValue; 20 class DictionaryValue;
21 class GpuBlacklist; 21 class GpuBlacklist;
22 struct GPUInfo;
23 22
24 class GpuDataManager { 23 class GpuDataManager {
25 public: 24 public:
26 // Getter for the singleton. This will return NULL on failure. 25 // Getter for the singleton. This will return NULL on failure.
27 static GpuDataManager* GetInstance(); 26 static GpuDataManager* GetInstance();
28 27
29 // Requests complete GPUinfo if it has not already been requested 28 // Requests complete GPUinfo if it has not already been requested
30 void RequestCompleteGpuInfoIfNeeded(); 29 void RequestCompleteGpuInfoIfNeeded();
31 30
32 // Only update if the level is higher than the cached GPUInfo level. 31 // Only update if the level is higher than the cached GPUInfo level.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // Map of callbacks. 100 // Map of callbacks.
102 std::set<Callback0::Type*> gpu_info_update_callbacks_; 101 std::set<Callback0::Type*> gpu_info_update_callbacks_;
103 102
104 ListValue log_messages_; 103 ListValue log_messages_;
105 104
106 DISALLOW_COPY_AND_ASSIGN(GpuDataManager); 105 DISALLOW_COPY_AND_ASSIGN(GpuDataManager);
107 }; 106 };
108 107
109 #endif // CHROME_BROWSER_GPU_DATA_MANAGER_H_ 108 #endif // CHROME_BROWSER_GPU_DATA_MANAGER_H_
110 109
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gpu_process_host_ui_shim.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698