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

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

Issue 1485823005: Remove the record_full_layer layer tree setting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 !cmd->HasSwitch(switches::kIPCSyncCompositing)); 382 !cmd->HasSwitch(switches::kIPCSyncCompositing));
383 bool using_synchronous_compositor = 383 bool using_synchronous_compositor =
384 SynchronousCompositorFactory::GetInstance() || 384 SynchronousCompositorFactory::GetInstance() ||
385 cmd->HasSwitch(switches::kIPCSyncCompositing); 385 cmd->HasSwitch(switches::kIPCSyncCompositing);
386 386
387 // We can't use GPU rasterization on low-end devices, because the Ganesh 387 // We can't use GPU rasterization on low-end devices, because the Ganesh
388 // cache would consume too much memory. 388 // cache would consume too much memory.
389 if (base::SysInfo::IsLowEndDevice()) 389 if (base::SysInfo::IsLowEndDevice())
390 settings.gpu_rasterization_enabled = false; 390 settings.gpu_rasterization_enabled = false;
391 settings.using_synchronous_renderer_compositor = using_synchronous_compositor; 391 settings.using_synchronous_renderer_compositor = using_synchronous_compositor;
392 settings.record_full_layer = widget_->DoesRecordFullLayer();
393 if (using_synchronous_compositor) { 392 if (using_synchronous_compositor) {
394 // Android WebView uses system scrollbars, so make ours invisible. 393 // Android WebView uses system scrollbars, so make ours invisible.
395 settings.scrollbar_animator = cc::LayerTreeSettings::NO_ANIMATOR; 394 settings.scrollbar_animator = cc::LayerTreeSettings::NO_ANIMATOR;
396 settings.solid_color_scrollbar_color = SK_ColorTRANSPARENT; 395 settings.solid_color_scrollbar_color = SK_ColorTRANSPARENT;
397 } else { 396 } else {
398 settings.scrollbar_animator = cc::LayerTreeSettings::LINEAR_FADE; 397 settings.scrollbar_animator = cc::LayerTreeSettings::LINEAR_FADE;
399 settings.scrollbar_fade_delay_ms = 300; 398 settings.scrollbar_fade_delay_ms = 300;
400 settings.scrollbar_fade_resize_delay_ms = 2000; 399 settings.scrollbar_fade_resize_delay_ms = 2000;
401 settings.scrollbar_fade_duration_ms = 300; 400 settings.scrollbar_fade_duration_ms = 300;
402 settings.solid_color_scrollbar_color = SkColorSetARGB(128, 128, 128, 128); 401 settings.solid_color_scrollbar_color = SkColorSetARGB(128, 128, 128, 128);
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
1116 #endif 1115 #endif
1117 return actual; 1116 return actual;
1118 } 1117 }
1119 1118
1120 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( 1119 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor(
1121 float device_scale) { 1120 float device_scale) {
1122 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); 1121 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale);
1123 } 1122 }
1124 1123
1125 } // namespace content 1124 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698