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

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

Issue 13983014: [CLOSED] Cleaning up the plethora of switches for GPU vs software vs SwiftShader. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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) 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/gpu_internals_ui.h" 5 #include "content/browser/gpu/gpu_internals_ui.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 status += "_software_multithreaded"; 362 status += "_software_multithreaded";
363 else 363 else
364 status += "_software"; 364 status += "_software";
365 } else { 365 } else {
366 if (kGpuFeatureInfo[i].fallback_to_software) 366 if (kGpuFeatureInfo[i].fallback_to_software)
367 status += "_software"; 367 status += "_software";
368 else 368 else
369 status += "_off"; 369 status += "_off";
370 } 370 }
371 } else if (GpuDataManagerImpl::GetInstance()-> 371 } else if (GpuDataManagerImpl::GetInstance()->
372 ShouldUseSoftwareRendering()) { 372 ShouldUseSwiftShader()) {
373 status = "unavailable_software"; 373 status = "unavailable_software";
374 } else if (kGpuFeatureInfo[i].blocked || 374 } else if (kGpuFeatureInfo[i].blocked ||
375 gpu_access_blocked) { 375 gpu_access_blocked) {
376 status = "unavailable"; 376 status = "unavailable";
377 if (kGpuFeatureInfo[i].fallback_to_software) 377 if (kGpuFeatureInfo[i].fallback_to_software)
378 status += "_software"; 378 status += "_software";
379 else 379 else
380 status += "_off"; 380 status += "_off";
381 } else { 381 } else {
382 status = "enabled"; 382 status = "enabled";
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 : WebUIController(web_ui) { 655 : WebUIController(web_ui) {
656 web_ui->AddMessageHandler(new GpuMessageHandler()); 656 web_ui->AddMessageHandler(new GpuMessageHandler());
657 657
658 // Set up the chrome://gpu/ source. 658 // Set up the chrome://gpu/ source.
659 BrowserContext* browser_context = 659 BrowserContext* browser_context =
660 web_ui->GetWebContents()->GetBrowserContext(); 660 web_ui->GetWebContents()->GetBrowserContext();
661 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); 661 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource());
662 } 662 }
663 663
664 } // namespace content 664 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_unittest.cc ('k') | content/browser/gpu/gpu_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698