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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 715733002: [Android] Show autofill popup after animation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hide popup when resizing the viewport resulted in movement of the focused element. Created 6 years 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/renderer/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 void RenderWidgetCompositor::DidCommitAndDrawFrame() { 909 void RenderWidgetCompositor::DidCommitAndDrawFrame() {
910 widget_->didCommitAndDrawCompositorFrame(); 910 widget_->didCommitAndDrawCompositorFrame();
911 } 911 }
912 912
913 void RenderWidgetCompositor::DidCompleteSwapBuffers() { 913 void RenderWidgetCompositor::DidCompleteSwapBuffers() {
914 widget_->didCompleteSwapBuffers(); 914 widget_->didCompleteSwapBuffers();
915 if (!threaded_) 915 if (!threaded_)
916 widget_->OnSwapBuffersComplete(); 916 widget_->OnSwapBuffersComplete();
917 } 917 }
918 918
919 void RenderWidgetCompositor::DidCompletePageScaleAnimation() {
920 widget_->DidCompletePageScaleAnimation();
921 }
922
919 void RenderWidgetCompositor::ScheduleAnimation() { 923 void RenderWidgetCompositor::ScheduleAnimation() {
920 widget_->scheduleAnimation(); 924 widget_->scheduleAnimation();
921 } 925 }
922 926
923 void RenderWidgetCompositor::DidPostSwapBuffers() { 927 void RenderWidgetCompositor::DidPostSwapBuffers() {
924 widget_->OnSwapBuffersPosted(); 928 widget_->OnSwapBuffersPosted();
925 } 929 }
926 930
927 void RenderWidgetCompositor::DidAbortSwapBuffers() { 931 void RenderWidgetCompositor::DidAbortSwapBuffers() {
928 widget_->OnSwapBuffersAborted(); 932 widget_->OnSwapBuffersAborted();
929 } 933 }
930 934
931 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { 935 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() {
932 cc::ContextProvider* provider = 936 cc::ContextProvider* provider =
933 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); 937 RenderThreadImpl::current()->SharedMainThreadContextProvider().get();
934 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 938 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
935 } 939 }
936 940
937 } // namespace content 941 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698