OLD | NEW |
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 Loading... |
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 |
OLD | NEW |