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

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

Issue 904633004: [cc]: Add a BeginMainFrameNotExpectedSoon signal and route it to the RendererScheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename to BeginMainFrameNotExpectedSoon Created 5 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
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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 } 296 }
297 297
298 void Compositor::BeginMainFrame(const cc::BeginFrameArgs& args) { 298 void Compositor::BeginMainFrame(const cc::BeginFrameArgs& args) {
299 FOR_EACH_OBSERVER(CompositorAnimationObserver, 299 FOR_EACH_OBSERVER(CompositorAnimationObserver,
300 animation_observer_list_, 300 animation_observer_list_,
301 OnAnimationStep(args.frame_time)); 301 OnAnimationStep(args.frame_time));
302 if (animation_observer_list_.might_have_observers()) 302 if (animation_observer_list_.might_have_observers())
303 host_->SetNeedsAnimate(); 303 host_->SetNeedsAnimate();
304 } 304 }
305 305
306 void Compositor::BeginMainFrameNotExpectedSoon() {
307 }
308
306 void Compositor::Layout() { 309 void Compositor::Layout() {
307 // We're sending damage that will be addressed during this composite 310 // We're sending damage that will be addressed during this composite
308 // cycle, so we don't need to schedule another composite to address it. 311 // cycle, so we don't need to schedule another composite to address it.
309 disable_schedule_composite_ = true; 312 disable_schedule_composite_ = true;
310 if (root_layer_) 313 if (root_layer_)
311 root_layer_->SendDamagedRects(); 314 root_layer_->SendDamagedRects();
312 disable_schedule_composite_ = false; 315 disable_schedule_composite_ = false;
313 } 316 }
314 317
315 void Compositor::RequestNewOutputSurface() { 318 void Compositor::RequestNewOutputSurface() {
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 observer_list_, 406 observer_list_,
404 OnCompositingLockStateChanged(this)); 407 OnCompositingLockStateChanged(this));
405 } 408 }
406 409
407 void Compositor::CancelCompositorLock() { 410 void Compositor::CancelCompositorLock() {
408 if (compositor_lock_) 411 if (compositor_lock_)
409 compositor_lock_->CancelLock(); 412 compositor_lock_->CancelLock();
410 } 413 }
411 414
412 } // namespace ui 415 } // namespace ui
OLDNEW
« content/renderer/scheduler/renderer_scheduler.h ('K') | « ui/compositor/compositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698