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 10 matching lines...) Expand all Loading... |
21 #include "cc/base/latency_info_swap_promise_monitor.h" | 21 #include "cc/base/latency_info_swap_promise_monitor.h" |
22 #include "cc/base/switches.h" | 22 #include "cc/base/switches.h" |
23 #include "cc/debug/layer_tree_debug_state.h" | 23 #include "cc/debug/layer_tree_debug_state.h" |
24 #include "cc/debug/micro_benchmark.h" | 24 #include "cc/debug/micro_benchmark.h" |
25 #include "cc/layers/layer.h" | 25 #include "cc/layers/layer.h" |
26 #include "cc/trees/layer_tree_host.h" | 26 #include "cc/trees/layer_tree_host.h" |
27 #include "content/common/gpu/client/context_provider_command_buffer.h" | 27 #include "content/common/gpu/client/context_provider_command_buffer.h" |
28 #include "content/public/common/content_switches.h" | 28 #include "content/public/common/content_switches.h" |
29 #include "content/renderer/input/input_handler_manager.h" | 29 #include "content/renderer/input/input_handler_manager.h" |
30 #include "content/renderer/render_thread_impl.h" | 30 #include "content/renderer/render_thread_impl.h" |
| 31 #include "gpu/command_buffer/client/gles2_interface.h" |
31 #include "third_party/WebKit/public/platform/WebSize.h" | 32 #include "third_party/WebKit/public/platform/WebSize.h" |
32 #include "third_party/WebKit/public/web/WebWidget.h" | 33 #include "third_party/WebKit/public/web/WebWidget.h" |
33 #include "ui/gl/gl_switches.h" | 34 #include "ui/gl/gl_switches.h" |
34 #include "webkit/renderer/compositor_bindings/web_layer_impl.h" | 35 #include "webkit/renderer/compositor_bindings/web_layer_impl.h" |
35 | 36 |
36 namespace base { | 37 namespace base { |
37 class Value; | 38 class Value; |
38 } | 39 } |
39 | 40 |
40 namespace cc { | 41 namespace cc { |
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 widget_->OnSwapBuffersPosted(); | 634 widget_->OnSwapBuffersPosted(); |
634 } | 635 } |
635 | 636 |
636 void RenderWidgetCompositor::DidAbortSwapBuffers() { | 637 void RenderWidgetCompositor::DidAbortSwapBuffers() { |
637 widget_->OnSwapBuffersAborted(); | 638 widget_->OnSwapBuffersAborted(); |
638 } | 639 } |
639 | 640 |
640 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { | 641 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { |
641 cc::ContextProvider* provider = | 642 cc::ContextProvider* provider = |
642 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); | 643 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); |
643 provider->Context3d()->rateLimitOffscreenContextCHROMIUM(); | 644 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); |
644 } | 645 } |
645 | 646 |
646 } // namespace content | 647 } // namespace content |
OLD | NEW |