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

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

Issue 1452353002: Turn off computation of the interest rect in cc in synchronized paint mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 settings.use_partial_raster = compositor_deps_->IsPartialRasterEnabled(); 300 settings.use_partial_raster = compositor_deps_->IsPartialRasterEnabled();
301 settings.enable_elastic_overscroll = 301 settings.enable_elastic_overscroll =
302 compositor_deps_->IsElasticOverscrollEnabled(); 302 compositor_deps_->IsElasticOverscrollEnabled();
303 settings.renderer_settings.use_gpu_memory_buffer_resources = 303 settings.renderer_settings.use_gpu_memory_buffer_resources =
304 compositor_deps_->IsGpuMemoryBufferCompositorResourcesEnabled(); 304 compositor_deps_->IsGpuMemoryBufferCompositorResourcesEnabled();
305 settings.use_image_texture_targets = 305 settings.use_image_texture_targets =
306 compositor_deps_->GetImageTextureTargets(); 306 compositor_deps_->GetImageTextureTargets();
307 settings.image_decode_tasks_enabled = 307 settings.image_decode_tasks_enabled =
308 compositor_deps_->AreImageDecodeTasksEnabled(); 308 compositor_deps_->AreImageDecodeTasksEnabled();
309 309
310 settings.blink_synchronized_painting_enabled =
311 cmd->HasSwitch(switches::kEnableBlinkSynchronizedPainting);
312
310 if (cmd->HasSwitch(cc::switches::kTopControlsShowThreshold)) { 313 if (cmd->HasSwitch(cc::switches::kTopControlsShowThreshold)) {
311 std::string top_threshold_str = 314 std::string top_threshold_str =
312 cmd->GetSwitchValueASCII(cc::switches::kTopControlsShowThreshold); 315 cmd->GetSwitchValueASCII(cc::switches::kTopControlsShowThreshold);
313 double show_threshold; 316 double show_threshold;
314 if (base::StringToDouble(top_threshold_str, &show_threshold) && 317 if (base::StringToDouble(top_threshold_str, &show_threshold) &&
315 show_threshold >= 0.f && show_threshold <= 1.f) 318 show_threshold >= 0.f && show_threshold <= 1.f)
316 settings.top_controls_show_threshold = show_threshold; 319 settings.top_controls_show_threshold = show_threshold;
317 } 320 }
318 321
319 if (cmd->HasSwitch(cc::switches::kTopControlsHideThreshold)) { 322 if (cmd->HasSwitch(cc::switches::kTopControlsHideThreshold)) {
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 #endif 1087 #endif
1085 return actual; 1088 return actual;
1086 } 1089 }
1087 1090
1088 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( 1091 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor(
1089 float device_scale) { 1092 float device_scale) {
1090 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); 1093 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale);
1091 } 1094 }
1092 1095
1093 } // namespace content 1096 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698