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/synchronization/lock.h" | 8 #include "base/synchronization/lock.h" |
9 #include "cc/blink/context_provider_web_context.h" | 9 #include "cc/blink/context_provider_web_context.h" |
10 #include "content/browser/android/in_process/synchronous_input_event_filter.h" | 10 #include "content/browser/android/in_process/synchronous_input_event_filter.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory { | 33 class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory { |
34 public: | 34 public: |
35 SynchronousCompositorFactoryImpl(); | 35 SynchronousCompositorFactoryImpl(); |
36 ~SynchronousCompositorFactoryImpl() override; | 36 ~SynchronousCompositorFactoryImpl() override; |
37 | 37 |
38 // SynchronousCompositorFactory | 38 // SynchronousCompositorFactory |
39 scoped_refptr<base::SingleThreadTaskRunner> GetCompositorTaskRunner() | 39 scoped_refptr<base::SingleThreadTaskRunner> GetCompositorTaskRunner() |
40 override; | 40 override; |
41 scoped_ptr<cc::OutputSurface> CreateOutputSurface( | 41 scoped_ptr<cc::OutputSurface> CreateOutputSurface( |
42 int routing_id, | 42 int routing_id, |
43 int surface_id, | |
44 scoped_refptr<content::FrameSwapMessageQueue> frame_swap_message_queue) | 43 scoped_refptr<content::FrameSwapMessageQueue> frame_swap_message_queue) |
45 override; | 44 override; |
46 InputHandlerManagerClient* GetInputHandlerManagerClient() override; | 45 InputHandlerManagerClient* GetInputHandlerManagerClient() override; |
47 scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | 46 scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( |
48 int routing_id) override; | 47 int routing_id) override; |
49 scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( | 48 scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( |
50 int view_id) override; | 49 int view_id) override; |
51 bool OverrideWithFactory() override; | 50 bool OverrideWithFactory() override; |
52 scoped_refptr<cc_blink::ContextProviderWebContext> | 51 scoped_refptr<cc_blink::ContextProviderWebContext> |
53 CreateOffscreenContextProvider( | 52 CreateOffscreenContextProvider( |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // |num_hardware_compositor_lock_| is updated on UI thread only but can be | 98 // |num_hardware_compositor_lock_| is updated on UI thread only but can be |
100 // read on renderer main thread. | 99 // read on renderer main thread. |
101 base::Lock num_hardware_compositor_lock_; | 100 base::Lock num_hardware_compositor_lock_; |
102 unsigned int num_hardware_compositors_; | 101 unsigned int num_hardware_compositors_; |
103 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 102 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
104 }; | 103 }; |
105 | 104 |
106 } // namespace content | 105 } // namespace content |
107 | 106 |
108 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP
L_H_ | 107 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP
L_H_ |
OLD | NEW |