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

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

Issue 6677149: Append software rendering list version to the about:gpu page. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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
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 11
11 #include "base/callback.h" 12 #include "base/callback.h"
12 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/singleton.h" 14 #include "base/memory/singleton.h"
14 #include "base/values.h" 15 #include "base/values.h"
15 #include "chrome/browser/web_resource/gpu_blacklist_updater.h" 16 #include "chrome/browser/web_resource/gpu_blacklist_updater.h"
16 #include "content/common/gpu_feature_flags.h" 17 #include "content/common/gpu_feature_flags.h"
17 #include "content/common/gpu_info.h" 18 #include "content/common/gpu_info.h"
18 19
19 class CommandLine; 20 class CommandLine;
(...skipping 10 matching lines...) Expand all
30 31
31 // Only update if the current GPUInfo is not finalized. 32 // Only update if the current GPUInfo is not finalized.
32 void UpdateGpuInfo(const GPUInfo& gpu_info); 33 void UpdateGpuInfo(const GPUInfo& gpu_info);
33 34
34 const GPUInfo& gpu_info() const; 35 const GPUInfo& gpu_info() const;
35 36
36 // Returns blacklisting reasons structure from gpu_blacklist or NULL 37 // Returns blacklisting reasons structure from gpu_blacklist or NULL
37 // if not blacklisted. Caller is responsible for deleting returned value. 38 // if not blacklisted. Caller is responsible for deleting returned value.
38 Value* GetBlacklistingReasons() const; 39 Value* GetBlacklistingReasons() const;
39 40
41 std::string GetBlacklistVersion() const;
42
40 void AddLogMessage(Value* msg); 43 void AddLogMessage(Value* msg);
41 44
42 const ListValue& log_messages() const; 45 const ListValue& log_messages() const;
43 46
44 // If necessary, compute the flags before returning them. 47 // If necessary, compute the flags before returning them.
45 GpuFeatureFlags GetGpuFeatureFlags(); 48 GpuFeatureFlags GetGpuFeatureFlags();
46 49
47 // This indicator might change because we could collect more GPU info or 50 // This indicator might change because we could collect more GPU info or
48 // because the GPU blacklist could be updated. 51 // because the GPU blacklist could be updated.
49 // If this returns false, any further GPU access, including launching GPU 52 // If this returns false, any further GPU access, including launching GPU
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // Map of callbacks. 107 // Map of callbacks.
105 std::set<Callback0::Type*> gpu_info_update_callbacks_; 108 std::set<Callback0::Type*> gpu_info_update_callbacks_;
106 109
107 ListValue log_messages_; 110 ListValue log_messages_;
108 111
109 DISALLOW_COPY_AND_ASSIGN(GpuDataManager); 112 DISALLOW_COPY_AND_ASSIGN(GpuDataManager);
110 }; 113 };
111 114
112 #endif // CHROME_BROWSER_GPU_DATA_MANAGER_H_ 115 #endif // CHROME_BROWSER_GPU_DATA_MANAGER_H_
113 116
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gpu_data_manager.cc » ('j') | chrome/browser/resources/gpu_internals/info_view.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698