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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 895763002: Add a command-line flag to enable threaded GPU rasterization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 5 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 settings.max_untiled_layer_size = gfx::Size(max_untiled_layer_width, 232 settings.max_untiled_layer_size = gfx::Size(max_untiled_layer_width,
233 max_untiled_layer_height); 233 max_untiled_layer_height);
234 234
235 settings.gpu_rasterization_msaa_sample_count = 235 settings.gpu_rasterization_msaa_sample_count =
236 compositor_deps_->GetGpuRasterizationMSAASampleCount(); 236 compositor_deps_->GetGpuRasterizationMSAASampleCount();
237 settings.impl_side_painting = compositor_deps_->IsImplSidePaintingEnabled(); 237 settings.impl_side_painting = compositor_deps_->IsImplSidePaintingEnabled();
238 settings.gpu_rasterization_forced = 238 settings.gpu_rasterization_forced =
239 compositor_deps_->IsGpuRasterizationForced(); 239 compositor_deps_->IsGpuRasterizationForced();
240 settings.gpu_rasterization_enabled = 240 settings.gpu_rasterization_enabled =
241 compositor_deps_->IsGpuRasterizationEnabled(); 241 compositor_deps_->IsGpuRasterizationEnabled();
242 settings.threaded_gpu_rasterization_enabled =
243 compositor_deps_->IsThreadedGpuRasterizationEnabled();
242 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled(); 244 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled();
243 settings.use_distance_field_text = 245 settings.use_distance_field_text =
244 compositor_deps_->IsDistanceFieldTextEnabled(); 246 compositor_deps_->IsDistanceFieldTextEnabled();
245 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled(); 247 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled();
246 settings.use_one_copy = compositor_deps_->IsOneCopyEnabled(); 248 settings.use_one_copy = compositor_deps_->IsOneCopyEnabled();
247 settings.enable_elastic_overscroll = 249 settings.enable_elastic_overscroll =
248 compositor_deps_->IsElasticOverscrollEnabled(); 250 compositor_deps_->IsElasticOverscrollEnabled();
249 settings.use_image_texture_target = compositor_deps_->GetImageTextureTarget(); 251 settings.use_image_texture_target = compositor_deps_->GetImageTextureTarget();
250 252
251 settings.calculate_top_controls_position = 253 settings.calculate_top_controls_position =
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 widget_->OnSwapBuffersAborted(); 879 widget_->OnSwapBuffersAborted();
878 } 880 }
879 881
880 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { 882 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() {
881 cc::ContextProvider* provider = 883 cc::ContextProvider* provider =
882 compositor_deps_->GetSharedMainThreadContextProvider(); 884 compositor_deps_->GetSharedMainThreadContextProvider();
883 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 885 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
884 } 886 }
885 887
886 } // namespace content 888 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698