OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/browser/android/in_process/synchronous_compositor_impl.h" | 5 #include "content/browser/android/in_process/synchronous_compositor_impl.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
10 #include "cc/input/input_handler.h" | 10 #include "cc/input/input_handler.h" |
11 #include "cc/input/layer_scroll_offset_delegate.h" | 11 #include "cc/input/layer_scroll_offset_delegate.h" |
12 #include "content/browser/android/in_process/synchronous_input_event_filter.h" | 12 #include "content/browser/android/in_process/synchronous_input_event_filter.h" |
13 #include "content/browser/renderer_host/render_widget_host_view_android.h" | 13 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
14 #include "content/public/browser/android/synchronous_compositor_client.h" | 14 #include "content/public/browser/android/synchronous_compositor_client.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/browser/render_process_host.h" | 16 #include "content/public/browser/render_process_host.h" |
17 #include "content/public/browser/render_view_host.h" | 17 #include "content/public/browser/render_view_host.h" |
18 #include "content/renderer/android/synchronous_compositor_factory.h" | 18 #include "content/renderer/android/synchronous_compositor_factory.h" |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 g_factory.Get(); // Ensure it's initialized. | 271 g_factory.Get(); // Ensure it's initialized. |
272 SynchronousCompositorImpl::CreateForWebContents(contents); | 272 SynchronousCompositorImpl::CreateForWebContents(contents); |
273 } | 273 } |
274 if (SynchronousCompositorImpl* instance = | 274 if (SynchronousCompositorImpl* instance = |
275 SynchronousCompositorImpl::FromWebContents(contents)) { | 275 SynchronousCompositorImpl::FromWebContents(contents)) { |
276 instance->SetClient(client); | 276 instance->SetClient(client); |
277 } | 277 } |
278 } | 278 } |
279 | 279 |
280 } // namespace content | 280 } // namespace content |
OLD | NEW |