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

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

Issue 715733002: [Android] Show autofill popup after animation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix existing tests and add some more. Created 5 years, 12 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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 void Compositor::ScheduleAnimation() { 413 void Compositor::ScheduleAnimation() {
414 ScheduleComposite(); 414 ScheduleComposite();
415 } 415 }
416 416
417 void Compositor::DidPostSwapBuffers() { 417 void Compositor::DidPostSwapBuffers() {
418 DCHECK(!compositor_thread_loop_.get()); 418 DCHECK(!compositor_thread_loop_.get());
419 DCHECK_EQ(swap_state_, SWAP_NONE); 419 DCHECK_EQ(swap_state_, SWAP_NONE);
420 swap_state_ = SWAP_POSTED; 420 swap_state_ = SWAP_POSTED;
421 } 421 }
422 422
423 void Compositor::DidCompletePageScaleAnimation() {}
424
423 void Compositor::DidAbortSwapBuffers() { 425 void Compositor::DidAbortSwapBuffers() {
424 if (!compositor_thread_loop_.get()) { 426 if (!compositor_thread_loop_.get()) {
425 if (swap_state_ == SWAP_POSTED) { 427 if (swap_state_ == SWAP_POSTED) {
426 NotifyEnd(); 428 NotifyEnd();
427 swap_state_ = SWAP_COMPLETED; 429 swap_state_ = SWAP_COMPLETED;
428 } 430 }
429 } 431 }
430 432
431 FOR_EACH_OBSERVER(CompositorObserver, 433 FOR_EACH_OBSERVER(CompositorObserver,
432 observer_list_, 434 observer_list_,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 // Call ScheduleDraw() instead of Draw() in order to allow other 485 // Call ScheduleDraw() instead of Draw() in order to allow other
484 // CompositorObservers to be notified before starting another 486 // CompositorObservers to be notified before starting another
485 // draw cycle. 487 // draw cycle.
486 ScheduleDraw(); 488 ScheduleDraw();
487 } 489 }
488 FOR_EACH_OBSERVER( 490 FOR_EACH_OBSERVER(
489 CompositorObserver, observer_list_, OnCompositingEnded(this)); 491 CompositorObserver, observer_list_, OnCompositingEnded(this));
490 } 492 }
491 493
492 } // namespace ui 494 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698