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

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

Issue 2100203002: Revert of Turn on enable begin frame scheduling by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/browser/renderer_host/render_process_host_impl.cc ('k') | ui/compositor/compositor.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) 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 <stddef.h> 7 #include <stddef.h>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 settings.gpu_decoded_image_budget_bytes = 96 * 1024 * 1024; 446 settings.gpu_decoded_image_budget_bytes = 96 * 1024 * 1024;
447 settings.software_decoded_image_budget_bytes = 128 * 1024 * 1024; 447 settings.software_decoded_image_budget_bytes = 128 * 1024 * 1024;
448 } 448 }
449 449
450 #endif // defined(OS_ANDROID) 450 #endif // defined(OS_ANDROID)
451 451
452 if (cmd->HasSwitch(switches::kEnableLowResTiling)) 452 if (cmd->HasSwitch(switches::kEnableLowResTiling))
453 settings.create_low_res_tiling = true; 453 settings.create_low_res_tiling = true;
454 if (cmd->HasSwitch(switches::kDisableLowResTiling)) 454 if (cmd->HasSwitch(switches::kDisableLowResTiling))
455 settings.create_low_res_tiling = false; 455 settings.create_low_res_tiling = false;
456 if (!cmd->HasSwitch(cc::switches::kDisableBeginFrameScheduling)) 456 if (cmd->HasSwitch(cc::switches::kEnableBeginFrameScheduling))
457 settings.use_external_begin_frame_source = true; 457 settings.use_external_begin_frame_source = true;
458 458
459 if (cmd->HasSwitch(switches::kEnableRGBA4444Textures) && 459 if (cmd->HasSwitch(switches::kEnableRGBA4444Textures) &&
460 !cmd->HasSwitch(switches::kDisableRGBA4444Textures)) { 460 !cmd->HasSwitch(switches::kDisableRGBA4444Textures)) {
461 settings.renderer_settings.preferred_tile_format = cc::RGBA_4444; 461 settings.renderer_settings.preferred_tile_format = cc::RGBA_4444;
462 } 462 }
463 463
464 if (cmd->HasSwitch(cc::switches::kEnableTileCompression)) { 464 if (cmd->HasSwitch(cc::switches::kEnableTileCompression)) {
465 settings.renderer_settings.preferred_tile_format = cc::ETC1; 465 settings.renderer_settings.preferred_tile_format = cc::ETC1;
466 } 466 }
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 #endif 1149 #endif
1150 return actual; 1150 return actual;
1151 } 1151 }
1152 1152
1153 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( 1153 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor(
1154 float device_scale) { 1154 float device_scale) {
1155 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); 1155 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale);
1156 } 1156 }
1157 1157
1158 } // namespace content 1158 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698