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 #if defined(OS_ANDROID) | 10 #if defined(OS_ANDROID) |
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 void RenderWidgetCompositor::ScheduleComposite() { | 641 void RenderWidgetCompositor::ScheduleComposite() { |
642 if (!suppress_schedule_composite_) | 642 if (!suppress_schedule_composite_) |
643 widget_->scheduleComposite(); | 643 widget_->scheduleComposite(); |
644 } | 644 } |
645 | 645 |
646 scoped_refptr<cc::ContextProvider> | 646 scoped_refptr<cc::ContextProvider> |
647 RenderWidgetCompositor::OffscreenContextProvider() { | 647 RenderWidgetCompositor::OffscreenContextProvider() { |
648 return RenderThreadImpl::current()->OffscreenCompositorContextProvider(); | 648 return RenderThreadImpl::current()->OffscreenCompositorContextProvider(); |
649 } | 649 } |
650 | 650 |
| 651 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { |
| 652 cc::ContextProvider* provider = |
| 653 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); |
| 654 provider->Context3d()->rateLimitOffscreenContextCHROMIUM(); |
| 655 } |
| 656 |
651 } // namespace content | 657 } // namespace content |
OLD | NEW |