| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMPL_H
_ | 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMPL_H
_ |
| 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMPL_H
_ | 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMPL_H
_ |
| 7 | 7 |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
| 10 #include "cc/blink/context_provider_web_context.h" | 10 #include "cc/blink/context_provider_web_context.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory { | 34 class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory { |
| 35 public: | 35 public: |
| 36 SynchronousCompositorFactoryImpl(); | 36 SynchronousCompositorFactoryImpl(); |
| 37 ~SynchronousCompositorFactoryImpl() override; | 37 ~SynchronousCompositorFactoryImpl() override; |
| 38 | 38 |
| 39 // SynchronousCompositorFactory | 39 // SynchronousCompositorFactory |
| 40 scoped_refptr<base::SingleThreadTaskRunner> GetCompositorTaskRunner() | 40 scoped_refptr<base::SingleThreadTaskRunner> GetCompositorTaskRunner() |
| 41 override; | 41 override; |
| 42 scoped_ptr<cc::OutputSurface> CreateOutputSurface( | 42 scoped_ptr<cc::OutputSurface> CreateOutputSurface( |
| 43 int routing_id, | 43 int routing_id, |
| 44 uint32_t output_surface_id, |
| 44 const scoped_refptr<FrameSwapMessageQueue>& frame_swap_message_queue, | 45 const scoped_refptr<FrameSwapMessageQueue>& frame_swap_message_queue, |
| 45 const scoped_refptr<cc::ContextProvider>& onscreen_context, | 46 const scoped_refptr<cc::ContextProvider>& onscreen_context, |
| 46 const scoped_refptr<cc::ContextProvider>& worker_context) override; | 47 const scoped_refptr<cc::ContextProvider>& worker_context) override; |
| 47 InputHandlerManagerClient* GetInputHandlerManagerClient() override; | 48 InputHandlerManagerClient* GetInputHandlerManagerClient() override; |
| 48 scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | 49 scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( |
| 49 int routing_id) override; | 50 int routing_id) override; |
| 50 | 51 |
| 51 SynchronousInputEventFilter* synchronous_input_event_filter() { | 52 SynchronousInputEventFilter* synchronous_input_event_filter() { |
| 52 return &synchronous_input_event_filter_; | 53 return &synchronous_input_event_filter_; |
| 53 } | 54 } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // |num_hardware_compositor_lock_| is updated on UI thread only but can be | 87 // |num_hardware_compositor_lock_| is updated on UI thread only but can be |
| 87 // read on renderer main thread. | 88 // read on renderer main thread. |
| 88 base::Lock num_hardware_compositor_lock_; | 89 base::Lock num_hardware_compositor_lock_; |
| 89 unsigned int num_hardware_compositors_; | 90 unsigned int num_hardware_compositors_; |
| 90 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 91 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 } // namespace content | 94 } // namespace content |
| 94 | 95 |
| 95 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP
L_H_ | 96 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP
L_H_ |
| OLD | NEW |