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

Side by Side Diff: content/browser/gpu/compositor_util.cc

Issue 665123002: [DevTools] Move SystemInfo domain to generated handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@browserProtocol
Patch Set: Rebased Created 6 years, 1 month 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
« no previous file with comments | « content/browser/gpu/compositor_util.h ('k') | content/browser/gpu/gpu_data_manager_impl.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) 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 #include "content/browser/gpu/compositor_util.h" 5 #include "content/browser/gpu/compositor_util.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 return command_line.HasSwitch(switches::kForceGpuRasterization); 267 return command_line.HasSwitch(switches::kForceGpuRasterization);
268 } 268 }
269 269
270 bool UseSurfacesEnabled() { 270 bool UseSurfacesEnabled() {
271 const base::CommandLine& command_line = 271 const base::CommandLine& command_line =
272 *base::CommandLine::ForCurrentProcess(); 272 *base::CommandLine::ForCurrentProcess();
273 273
274 return command_line.HasSwitch(switches::kUseSurfaces); 274 return command_line.HasSwitch(switches::kUseSurfaces);
275 } 275 }
276 276
277 base::Value* GetFeatureStatus() { 277 base::DictionaryValue* GetFeatureStatus() {
278 GpuDataManagerImpl* manager = GpuDataManagerImpl::GetInstance(); 278 GpuDataManagerImpl* manager = GpuDataManagerImpl::GetInstance();
279 std::string gpu_access_blocked_reason; 279 std::string gpu_access_blocked_reason;
280 bool gpu_access_blocked = 280 bool gpu_access_blocked =
281 !manager->GpuAccessAllowed(&gpu_access_blocked_reason); 281 !manager->GpuAccessAllowed(&gpu_access_blocked_reason);
282 282
283 base::DictionaryValue* feature_status_dict = new base::DictionaryValue(); 283 base::DictionaryValue* feature_status_dict = new base::DictionaryValue();
284 284
285 bool eof = false; 285 bool eof = false;
286 for (size_t i = 0; !eof; ++i) { 286 for (size_t i = 0; !eof; ++i) {
287 const GpuFeatureInfo gpu_feature_info = GetGpuFeatureInfo(i, &eof); 287 const GpuFeatureInfo gpu_feature_info = GetGpuFeatureInfo(i, &eof);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 base::ListValue* disabled_features = new base::ListValue(); 364 base::ListValue* disabled_features = new base::ListValue();
365 disabled_features->AppendString(gpu_feature_info.name); 365 disabled_features->AppendString(gpu_feature_info.name);
366 problem->Set("affectedGpuSettings", disabled_features); 366 problem->Set("affectedGpuSettings", disabled_features);
367 problem->SetString("tag", "disabledFeatures"); 367 problem->SetString("tag", "disabledFeatures");
368 problem_list->Append(problem); 368 problem_list->Append(problem);
369 } 369 }
370 } 370 }
371 return problem_list; 371 return problem_list;
372 } 372 }
373 373
374 base::Value* GetDriverBugWorkarounds() { 374 std::vector<std::string> GetDriverBugWorkarounds() {
375 base::ListValue* workaround_list = new base::ListValue(); 375 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds();
376 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list);
377 return workaround_list;
378 } 376 }
379 377
380 } // namespace content 378 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/compositor_util.h ('k') | content/browser/gpu/gpu_data_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698