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

Side by Side Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 715733002: [Android] Show autofill popup after animation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 "content/browser/renderer_host/compositor_impl_android.h" 5 #include "content/browser/renderer_host/compositor_impl_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 #include <android/native_window_jni.h> 8 #include <android/native_window_jni.h>
9 9
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 } 616 }
617 617
618 void CompositorImpl::DidCompleteSwapBuffers() { 618 void CompositorImpl::DidCompleteSwapBuffers() {
619 TRACE_EVENT0("compositor", "CompositorImpl::DidCompleteSwapBuffers"); 619 TRACE_EVENT0("compositor", "CompositorImpl::DidCompleteSwapBuffers");
620 DCHECK_GT(pending_swapbuffers_, 0U); 620 DCHECK_GT(pending_swapbuffers_, 0U);
621 if (pending_swapbuffers_-- == kMaxSwapBuffers && needs_composite_) 621 if (pending_swapbuffers_-- == kMaxSwapBuffers && needs_composite_)
622 PostComposite(COMPOSITE_IMMEDIATELY); 622 PostComposite(COMPOSITE_IMMEDIATELY);
623 client_->OnSwapBuffersCompleted(pending_swapbuffers_); 623 client_->OnSwapBuffersCompleted(pending_swapbuffers_);
624 } 624 }
625 625
626 void CompositorImpl::DidCompletePageScaleAnimation() {}
627
626 void CompositorImpl::DidAbortSwapBuffers() { 628 void CompositorImpl::DidAbortSwapBuffers() {
627 TRACE_EVENT0("compositor", "CompositorImpl::DidAbortSwapBuffers"); 629 TRACE_EVENT0("compositor", "CompositorImpl::DidAbortSwapBuffers");
628 // This really gets called only once from 630 // This really gets called only once from
629 // SingleThreadProxy::DidLoseOutputSurfaceOnImplThread() when the 631 // SingleThreadProxy::DidLoseOutputSurfaceOnImplThread() when the
630 // context was lost. 632 // context was lost.
631 ScheduleComposite(); 633 ScheduleComposite();
632 client_->OnSwapBuffersCompleted(0); 634 client_->OnSwapBuffersCompleted(0);
633 } 635 }
634 636
635 void CompositorImpl::DidCommit() { 637 void CompositorImpl::DidCommit() {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 } 671 }
670 672
671 void CompositorImpl::SetNeedsAnimate() { 673 void CompositorImpl::SetNeedsAnimate() {
672 if (!host_) 674 if (!host_)
673 return; 675 return;
674 676
675 host_->SetNeedsAnimate(); 677 host_->SetNeedsAnimate();
676 } 678 }
677 679
678 } // namespace content 680 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698