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 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 void RenderWidgetCompositor::DidAbortSwapBuffers() { | 703 void RenderWidgetCompositor::DidAbortSwapBuffers() { |
704 widget_->OnSwapBuffersAborted(); | 704 widget_->OnSwapBuffersAborted(); |
705 } | 705 } |
706 | 706 |
707 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { | 707 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { |
708 cc::ContextProvider* provider = | 708 cc::ContextProvider* provider = |
709 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); | 709 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); |
710 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); | 710 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); |
711 } | 711 } |
712 | 712 |
| 713 bool RenderWidgetCompositor::usesGpuRasterization() { |
| 714 return layer_tree_host_->UseGpuRasterization(); |
| 715 } |
| 716 |
713 } // namespace content | 717 } // namespace content |
OLD | NEW |