| OLD | NEW |
| 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 CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_H_ |
| 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_H_ | 6 #define CONTENT_BROWSER_GPU_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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // Inserting disable-feature switches into renderer process command-line | 107 // Inserting disable-feature switches into renderer process command-line |
| 108 // in correspondance to preliminary gpu feature flags. | 108 // in correspondance to preliminary gpu feature flags. |
| 109 void AppendRendererCommandLine(CommandLine* command_line); | 109 void AppendRendererCommandLine(CommandLine* command_line); |
| 110 | 110 |
| 111 // Inserting switches into gpu process command-line: kUseGL, | 111 // Inserting switches into gpu process command-line: kUseGL, |
| 112 // kDisableGLMultisampling. | 112 // kDisableGLMultisampling. |
| 113 void AppendGpuCommandLine(CommandLine* command_line); | 113 void AppendGpuCommandLine(CommandLine* command_line); |
| 114 | 114 |
| 115 // Gives ownership of the built-in blacklist. This is always called on the | 115 // Gives ownership of the built-in blacklist. This is always called on the |
| 116 // UI thread. | 116 // UI thread. |
| 117 void SetBuiltInGpuBlacklist(GpuBlacklist* built_in_list); | 117 void SetGpuBlacklist(GpuBlacklist* gpu_blacklist); |
| 118 | |
| 119 // Gives ownership of the latest blacklist. This is always called on the UI | |
| 120 // thread. | |
| 121 // TODO(zmo): Get rid of preliminary because it should not be exposed to | |
| 122 // outside GpuDataManager. | |
| 123 void UpdateGpuBlacklist(GpuBlacklist* updated_list, bool preliminary); | |
| 124 | 118 |
| 125 // This gets called when switching GPU might have happened. | 119 // This gets called when switching GPU might have happened. |
| 126 void HandleGpuSwitch(); | 120 void HandleGpuSwitch(); |
| 127 | 121 |
| 128 // Returns the Gpu Info as a DictionaryValue. | 122 // Returns the Gpu Info as a DictionaryValue. |
| 129 DictionaryValue* GpuInfoAsDictionaryValue() const; | 123 DictionaryValue* GpuInfoAsDictionaryValue() const; |
| 130 | 124 |
| 131 // Returns true if the software rendering should currently be used. | 125 // Returns true if the software rendering should currently be used. |
| 132 bool software_rendering(); | 126 bool software_rendering(); |
| 133 | 127 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 232 |
| 239 ListValue log_messages_; | 233 ListValue log_messages_; |
| 240 bool software_rendering_; | 234 bool software_rendering_; |
| 241 | 235 |
| 242 FilePath swiftshader_path_; | 236 FilePath swiftshader_path_; |
| 243 | 237 |
| 244 DISALLOW_COPY_AND_ASSIGN(GpuDataManager); | 238 DISALLOW_COPY_AND_ASSIGN(GpuDataManager); |
| 245 }; | 239 }; |
| 246 | 240 |
| 247 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_H_ | 241 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_H_ |
| OLD | NEW |