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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: fix win clang build Created 3 years, 10 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
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/shell/app/shell_main_delegate.cc » ('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/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 } else if (command_line.HasSwitch(switches::kEnableLCDText)) { 771 } else if (command_line.HasSwitch(switches::kEnableLCDText)) {
772 is_lcd_text_enabled_ = true; 772 is_lcd_text_enabled_ = true;
773 } else { 773 } else {
774 #if defined(OS_ANDROID) 774 #if defined(OS_ANDROID)
775 is_lcd_text_enabled_ = false; 775 is_lcd_text_enabled_ = false;
776 #else 776 #else
777 is_lcd_text_enabled_ = true; 777 is_lcd_text_enabled_ = true;
778 #endif 778 #endif
779 } 779 }
780 780
781 is_gpu_rasterization_enabled_ =
782 command_line.HasSwitch(switches::kEnableGpuRasterization);
783 is_gpu_rasterization_forced_ = 781 is_gpu_rasterization_forced_ =
784 command_line.HasSwitch(switches::kForceGpuRasterization); 782 command_line.HasSwitch(switches::kForceGpuRasterization);
785 is_async_worker_context_enabled_ = 783 is_async_worker_context_enabled_ =
786 command_line.HasSwitch(switches::kEnableGpuAsyncWorkerContext); 784 command_line.HasSwitch(switches::kEnableGpuAsyncWorkerContext);
787 785
788 if (command_line.HasSwitch(switches::kGpuRasterizationMSAASampleCount)) { 786 if (command_line.HasSwitch(switches::kGpuRasterizationMSAASampleCount)) {
789 std::string string_value = command_line.GetSwitchValueASCII( 787 std::string string_value = command_line.GetSwitchValueASCII(
790 switches::kGpuRasterizationMSAASampleCount); 788 switches::kGpuRasterizationMSAASampleCount);
791 bool parsed_msaa_sample_count = 789 bool parsed_msaa_sample_count =
792 base::StringToInt(string_value, &gpu_rasterization_msaa_sample_count_); 790 base::StringToInt(string_value, &gpu_rasterization_msaa_sample_count_);
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
1489 if (associated_interfaces_.CanBindRequest(name)) 1487 if (associated_interfaces_.CanBindRequest(name))
1490 associated_interfaces_.BindRequest(name, std::move(handle)); 1488 associated_interfaces_.BindRequest(name, std::move(handle));
1491 else 1489 else
1492 ChildThreadImpl::OnAssociatedInterfaceRequest(name, std::move(handle)); 1490 ChildThreadImpl::OnAssociatedInterfaceRequest(name, std::move(handle));
1493 } 1491 }
1494 1492
1495 bool RenderThreadImpl::IsGpuRasterizationForced() { 1493 bool RenderThreadImpl::IsGpuRasterizationForced() {
1496 return is_gpu_rasterization_forced_; 1494 return is_gpu_rasterization_forced_;
1497 } 1495 }
1498 1496
1499 bool RenderThreadImpl::IsGpuRasterizationEnabled() {
1500 return is_gpu_rasterization_enabled_;
1501 }
1502
1503 bool RenderThreadImpl::IsAsyncWorkerContextEnabled() { 1497 bool RenderThreadImpl::IsAsyncWorkerContextEnabled() {
1504 return is_async_worker_context_enabled_; 1498 return is_async_worker_context_enabled_;
1505 } 1499 }
1506 1500
1507 int RenderThreadImpl::GetGpuRasterizationMSAASampleCount() { 1501 int RenderThreadImpl::GetGpuRasterizationMSAASampleCount() {
1508 return gpu_rasterization_msaa_sample_count_; 1502 return gpu_rasterization_msaa_sample_count_;
1509 } 1503 }
1510 1504
1511 bool RenderThreadImpl::IsLcdTextEnabled() { 1505 bool RenderThreadImpl::IsLcdTextEnabled() {
1512 return is_lcd_text_enabled_; 1506 return is_lcd_text_enabled_;
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
2440 } 2434 }
2441 } 2435 }
2442 2436
2443 void RenderThreadImpl::OnRendererInterfaceRequest( 2437 void RenderThreadImpl::OnRendererInterfaceRequest(
2444 mojom::RendererAssociatedRequest request) { 2438 mojom::RendererAssociatedRequest request) {
2445 DCHECK(!renderer_binding_.is_bound()); 2439 DCHECK(!renderer_binding_.is_bound());
2446 renderer_binding_.Bind(std::move(request)); 2440 renderer_binding_.Bind(std::move(request));
2447 } 2441 }
2448 2442
2449 } // namespace content 2443 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/shell/app/shell_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698