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

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

Issue 2297923002: Remove the --disable-begin-frame-scheduling flag (Closed)
Patch Set: Created 4 years, 3 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') | no next file » | 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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 settings.gpu_decoded_image_budget_bytes = 96 * 1024 * 1024; 468 settings.gpu_decoded_image_budget_bytes = 96 * 1024 * 1024;
469 settings.software_decoded_image_budget_bytes = 128 * 1024 * 1024; 469 settings.software_decoded_image_budget_bytes = 128 * 1024 * 1024;
470 } 470 }
471 471
472 #endif // defined(OS_ANDROID) 472 #endif // defined(OS_ANDROID)
473 473
474 if (cmd.HasSwitch(switches::kEnableLowResTiling)) 474 if (cmd.HasSwitch(switches::kEnableLowResTiling))
475 settings.create_low_res_tiling = true; 475 settings.create_low_res_tiling = true;
476 if (cmd.HasSwitch(switches::kDisableLowResTiling)) 476 if (cmd.HasSwitch(switches::kDisableLowResTiling))
477 settings.create_low_res_tiling = false; 477 settings.create_low_res_tiling = false;
478 if (!cmd.HasSwitch(cc::switches::kDisableBeginFrameScheduling)) 478 settings.use_external_begin_frame_source = true;
479 settings.use_external_begin_frame_source = true;
480 479
481 if (cmd.HasSwitch(switches::kEnableRGBA4444Textures) && 480 if (cmd.HasSwitch(switches::kEnableRGBA4444Textures) &&
482 !cmd.HasSwitch(switches::kDisableRGBA4444Textures)) { 481 !cmd.HasSwitch(switches::kDisableRGBA4444Textures)) {
483 settings.renderer_settings.preferred_tile_format = cc::RGBA_4444; 482 settings.renderer_settings.preferred_tile_format = cc::RGBA_4444;
484 } 483 }
485 484
486 if (cmd.HasSwitch(cc::switches::kEnableTileCompression)) { 485 if (cmd.HasSwitch(cc::switches::kEnableTileCompression)) {
487 settings.renderer_settings.preferred_tile_format = cc::ETC1; 486 settings.renderer_settings.preferred_tile_format = cc::ETC1;
488 } 487 }
489 488
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
1138 1137
1139 remote_proto_channel_receiver_->OnProtoReceived(std::move(deserialized)); 1138 remote_proto_channel_receiver_->OnProtoReceived(std::move(deserialized));
1140 } 1139 }
1141 1140
1142 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( 1141 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor(
1143 float device_scale) { 1142 float device_scale) {
1144 layer_tree_host_->GetLayerTree()->SetPaintedDeviceScaleFactor(device_scale); 1143 layer_tree_host_->GetLayerTree()->SetPaintedDeviceScaleFactor(device_scale);
1145 } 1144 }
1146 1145
1147 } // namespace content 1146 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698