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 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 void RenderWidgetCompositor::DidCommitAndDrawFrame() { | 876 void RenderWidgetCompositor::DidCommitAndDrawFrame() { |
877 widget_->didCommitAndDrawCompositorFrame(); | 877 widget_->didCommitAndDrawCompositorFrame(); |
878 } | 878 } |
879 | 879 |
880 void RenderWidgetCompositor::DidCompleteSwapBuffers() { | 880 void RenderWidgetCompositor::DidCompleteSwapBuffers() { |
881 widget_->didCompleteSwapBuffers(); | 881 widget_->didCompleteSwapBuffers(); |
882 if (!threaded_) | 882 if (!threaded_) |
883 widget_->OnSwapBuffersComplete(); | 883 widget_->OnSwapBuffersComplete(); |
884 } | 884 } |
885 | 885 |
| 886 void RenderWidgetCompositor::DidCompletePageScaleAnimation() { |
| 887 widget_->DidCompletePageScaleAnimation(); |
| 888 } |
| 889 |
886 void RenderWidgetCompositor::ScheduleAnimation() { | 890 void RenderWidgetCompositor::ScheduleAnimation() { |
887 widget_->scheduleAnimation(); | 891 widget_->scheduleAnimation(); |
888 } | 892 } |
889 | 893 |
890 void RenderWidgetCompositor::DidPostSwapBuffers() { | 894 void RenderWidgetCompositor::DidPostSwapBuffers() { |
891 widget_->OnSwapBuffersPosted(); | 895 widget_->OnSwapBuffersPosted(); |
892 } | 896 } |
893 | 897 |
894 void RenderWidgetCompositor::DidAbortSwapBuffers() { | 898 void RenderWidgetCompositor::DidAbortSwapBuffers() { |
895 widget_->OnSwapBuffersAborted(); | 899 widget_->OnSwapBuffersAborted(); |
896 } | 900 } |
897 | 901 |
898 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { | 902 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { |
899 cc::ContextProvider* provider = | 903 cc::ContextProvider* provider = |
900 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); | 904 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); |
901 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); | 905 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); |
902 } | 906 } |
903 | 907 |
904 } // namespace content | 908 } // namespace content |
OLD | NEW |