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

Side by Side Diff: ui/compositor/compositor.cc

Issue 684543006: cc: Toggle LCD text at raster time instead of record time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcdraster: . Created 6 years, 1 month 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/compositor/compositor.h" 5 #include "ui/compositor/compositor.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 waiting_on_compositing_end_(false), 83 waiting_on_compositing_end_(false),
84 draw_on_compositing_end_(false), 84 draw_on_compositing_end_(false),
85 swap_state_(SWAP_NONE), 85 swap_state_(SWAP_NONE),
86 layer_animator_collection_(this), 86 layer_animator_collection_(this),
87 weak_ptr_factory_(this) { 87 weak_ptr_factory_(this) {
88 root_web_layer_ = cc::Layer::Create(); 88 root_web_layer_ = cc::Layer::Create();
89 89
90 CommandLine* command_line = CommandLine::ForCurrentProcess(); 90 CommandLine* command_line = CommandLine::ForCurrentProcess();
91 91
92 cc::LayerTreeSettings settings; 92 cc::LayerTreeSettings settings;
93 settings.layers_always_allowed_lcd_text = true;
enne (OOO) 2014/11/14 00:05:46 Would it make sense to leave a comment here about
93 settings.refresh_rate = 94 settings.refresh_rate =
94 context_factory_->DoesCreateTestContexts() 95 context_factory_->DoesCreateTestContexts()
95 ? kTestRefreshRate 96 ? kTestRefreshRate
96 : kDefaultRefreshRate; 97 : kDefaultRefreshRate;
97 settings.main_frame_before_activation_enabled = false; 98 settings.main_frame_before_activation_enabled = false;
98 settings.throttle_frame_production = 99 settings.throttle_frame_production =
99 !command_line->HasSwitch(switches::kDisableGpuVsync); 100 !command_line->HasSwitch(switches::kDisableGpuVsync);
100 #if !defined(OS_MACOSX) 101 #if !defined(OS_MACOSX)
101 settings.partial_swap_enabled = 102 settings.partial_swap_enabled =
102 !command_line->HasSwitch(cc::switches::kUIDisablePartialSwap); 103 !command_line->HasSwitch(cc::switches::kUIDisablePartialSwap);
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 // Call ScheduleDraw() instead of Draw() in order to allow other 455 // Call ScheduleDraw() instead of Draw() in order to allow other
455 // CompositorObservers to be notified before starting another 456 // CompositorObservers to be notified before starting another
456 // draw cycle. 457 // draw cycle.
457 ScheduleDraw(); 458 ScheduleDraw();
458 } 459 }
459 FOR_EACH_OBSERVER( 460 FOR_EACH_OBSERVER(
460 CompositorObserver, observer_list_, OnCompositingEnded(this)); 461 CompositorObserver, observer_list_, OnCompositingEnded(this));
461 } 462 }
462 463
463 } // namespace ui 464 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698