| 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 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
| 12 #include "base/synchronization/lock.h" | 12 #include "base/synchronization/lock.h" |
| 13 #include "base/time.h" | 13 #include "base/time.h" |
| 14 #include "cc/context_provider.h" | |
| 15 #include "cc/layer.h" | 14 #include "cc/layer.h" |
| 16 #include "cc/layer_tree_debug_state.h" | 15 #include "cc/layer_tree_debug_state.h" |
| 17 #include "cc/layer_tree_host.h" | 16 #include "cc/layer_tree_host.h" |
| 18 #include "cc/switches.h" | 17 #include "cc/switches.h" |
| 19 #include "cc/thread_impl.h" | 18 #include "cc/thread_impl.h" |
| 19 #include "content/common/gpu/client/context_provider_command_buffer.h" |
| 20 #include "content/public/common/content_switches.h" | 20 #include "content/public/common/content_switches.h" |
| 21 #include "content/renderer/gpu/compositor_thread.h" | 21 #include "content/renderer/gpu/compositor_thread.h" |
| 22 #include "content/renderer/render_thread_impl.h" | 22 #include "content/renderer/render_thread_impl.h" |
| 23 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 23 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" |
| 24 #include "ui/gl/gl_switches.h" | 24 #include "ui/gl/gl_switches.h" |
| 25 #include "webkit/compositor_bindings/web_layer_impl.h" | 25 #include "webkit/compositor_bindings/web_layer_impl.h" |
| 26 #include "webkit/compositor_bindings/web_to_ccinput_handler_adapter.h" | 26 #include "webkit/compositor_bindings/web_to_ccinput_handler_adapter.h" |
| 27 | 27 |
| 28 namespace cc { | 28 namespace cc { |
| 29 class Layer; | 29 class Layer; |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); | 493 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); |
| 494 } | 494 } |
| 495 | 495 |
| 496 scoped_refptr<cc::ContextProvider> | 496 scoped_refptr<cc::ContextProvider> |
| 497 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { | 497 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { |
| 498 return RenderThreadImpl::current()-> | 498 return RenderThreadImpl::current()-> |
| 499 OffscreenContextProviderForCompositorThread(); | 499 OffscreenContextProviderForCompositorThread(); |
| 500 } | 500 } |
| 501 | 501 |
| 502 } // namespace content | 502 } // namespace content |
| OLD | NEW |