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 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 widget_->OnSwapBuffersPosted(); | 633 widget_->OnSwapBuffersPosted(); |
633 } | 634 } |
634 | 635 |
635 void RenderWidgetCompositor::DidAbortSwapBuffers() { | 636 void RenderWidgetCompositor::DidAbortSwapBuffers() { |
636 widget_->OnSwapBuffersAborted(); | 637 widget_->OnSwapBuffersAborted(); |
637 } | 638 } |
638 | 639 |
639 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { | 640 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { |
640 cc::ContextProvider* provider = | 641 cc::ContextProvider* provider = |
641 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); | 642 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); |
642 provider->Context3d()->rateLimitOffscreenContextCHROMIUM(); | 643 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); |
643 } | 644 } |
644 | 645 |
645 } // namespace content | 646 } // namespace content |
OLD | NEW |