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

Side by Side Diff: cc/trees/thread_proxy.cc

Issue 164373012: Remove options to disable deadline scheduling (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 6 years, 10 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 | « cc/trees/layer_tree_settings.cc ('k') | chrome/app/generated_resources.grd » ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "cc/trees/thread_proxy.h" 5 #include "cc/trees/thread_proxy.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 completion->Signal(); 1463 completion->Signal();
1464 } 1464 }
1465 1465
1466 void ThreadProxy::InitializeImplOnImplThread(CompletionEvent* completion) { 1466 void ThreadProxy::InitializeImplOnImplThread(CompletionEvent* completion) {
1467 TRACE_EVENT0("cc", "ThreadProxy::InitializeImplOnImplThread"); 1467 TRACE_EVENT0("cc", "ThreadProxy::InitializeImplOnImplThread");
1468 DCHECK(IsImplThread()); 1468 DCHECK(IsImplThread());
1469 impl().layer_tree_host_impl = 1469 impl().layer_tree_host_impl =
1470 layer_tree_host()->CreateLayerTreeHostImpl(this); 1470 layer_tree_host()->CreateLayerTreeHostImpl(this);
1471 const LayerTreeSettings& settings = layer_tree_host()->settings(); 1471 const LayerTreeSettings& settings = layer_tree_host()->settings();
1472 SchedulerSettings scheduler_settings; 1472 SchedulerSettings scheduler_settings;
1473 scheduler_settings.deadline_scheduling_enabled =
1474 settings.deadline_scheduling_enabled;
1475 scheduler_settings.impl_side_painting = settings.impl_side_painting; 1473 scheduler_settings.impl_side_painting = settings.impl_side_painting;
1476 scheduler_settings.timeout_and_draw_when_animation_checkerboards = 1474 scheduler_settings.timeout_and_draw_when_animation_checkerboards =
1477 settings.timeout_and_draw_when_animation_checkerboards; 1475 settings.timeout_and_draw_when_animation_checkerboards;
1478 scheduler_settings.maximum_number_of_failed_draws_before_draw_is_forced_ = 1476 scheduler_settings.maximum_number_of_failed_draws_before_draw_is_forced_ =
1479 settings.maximum_number_of_failed_draws_before_draw_is_forced_; 1477 settings.maximum_number_of_failed_draws_before_draw_is_forced_;
1480 scheduler_settings.using_synchronous_renderer_compositor = 1478 scheduler_settings.using_synchronous_renderer_compositor =
1481 settings.using_synchronous_renderer_compositor; 1479 settings.using_synchronous_renderer_compositor;
1482 scheduler_settings.throttle_frame_production = 1480 scheduler_settings.throttle_frame_production =
1483 settings.throttle_frame_production; 1481 settings.throttle_frame_production;
1484 impl().scheduler = 1482 impl().scheduler =
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1730 1728
1731 impl().timing_history.DidActivatePendingTree(); 1729 impl().timing_history.DidActivatePendingTree();
1732 } 1730 }
1733 1731
1734 void ThreadProxy::DidManageTiles() { 1732 void ThreadProxy::DidManageTiles() {
1735 DCHECK(IsImplThread()); 1733 DCHECK(IsImplThread());
1736 impl().scheduler->DidManageTiles(); 1734 impl().scheduler->DidManageTiles();
1737 } 1735 }
1738 1736
1739 } // namespace cc 1737 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_settings.cc ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698