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

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

Issue 1939253002: Turn on enable begin frame scheduling by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 settings.gpu_decoded_image_budget_bytes = 96 * 1024 * 1024; 479 settings.gpu_decoded_image_budget_bytes = 96 * 1024 * 1024;
480 settings.software_decoded_image_budget_bytes = 128 * 1024 * 1024; 480 settings.software_decoded_image_budget_bytes = 128 * 1024 * 1024;
481 } 481 }
482 482
483 #endif // defined(OS_ANDROID) 483 #endif // defined(OS_ANDROID)
484 484
485 if (cmd.HasSwitch(switches::kEnableLowResTiling)) 485 if (cmd.HasSwitch(switches::kEnableLowResTiling))
486 settings.create_low_res_tiling = true; 486 settings.create_low_res_tiling = true;
487 if (cmd.HasSwitch(switches::kDisableLowResTiling)) 487 if (cmd.HasSwitch(switches::kDisableLowResTiling))
488 settings.create_low_res_tiling = false; 488 settings.create_low_res_tiling = false;
489 if (cmd.HasSwitch(cc::switches::kEnableBeginFrameScheduling)) 489 if (!cmd.HasSwitch(cc::switches::kDisableBeginFrameScheduling))
490 settings.use_external_begin_frame_source = true; 490 settings.use_external_begin_frame_source = true;
491 491
492 if (cmd.HasSwitch(switches::kEnableRGBA4444Textures) && 492 if (cmd.HasSwitch(switches::kEnableRGBA4444Textures) &&
493 !cmd.HasSwitch(switches::kDisableRGBA4444Textures)) { 493 !cmd.HasSwitch(switches::kDisableRGBA4444Textures)) {
494 settings.renderer_settings.preferred_tile_format = cc::RGBA_4444; 494 settings.renderer_settings.preferred_tile_format = cc::RGBA_4444;
495 } 495 }
496 496
497 if (cmd.HasSwitch(cc::switches::kEnableTileCompression)) { 497 if (cmd.HasSwitch(cc::switches::kEnableTileCompression)) {
498 settings.renderer_settings.preferred_tile_format = cc::ETC1; 498 settings.renderer_settings.preferred_tile_format = cc::ETC1;
499 } 499 }
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 1143
1144 remote_proto_channel_receiver_->OnProtoReceived(std::move(deserialized)); 1144 remote_proto_channel_receiver_->OnProtoReceived(std::move(deserialized));
1145 } 1145 }
1146 1146
1147 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( 1147 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor(
1148 float device_scale) { 1148 float device_scale) {
1149 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); 1149 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale);
1150 } 1150 }
1151 1151
1152 } // namespace content 1152 } // 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