OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMPL_H
_ | |
6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMPL_H
_ | |
7 | |
8 #include "base/synchronization/lock.h" | |
9 #include "cc/blink/context_provider_web_context.h" | |
10 #include "content/browser/android/in_process/synchronous_input_event_filter.h" | |
11 #include "content/common/gpu/client/command_buffer_metrics.h" | |
12 #include "content/renderer/android/synchronous_compositor_factory.h" | |
13 | |
14 namespace content { | |
15 | |
16 class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory { | |
17 public: | |
18 SynchronousCompositorFactoryImpl(); | |
19 ~SynchronousCompositorFactoryImpl() override; | |
20 | |
21 // SynchronousCompositorFactory | |
22 scoped_refptr<base::SingleThreadTaskRunner> GetCompositorTaskRunner() | |
23 override; | |
24 std::unique_ptr<cc::OutputSurface> CreateOutputSurface( | |
25 int routing_id, | |
26 uint32_t output_surface_id, | |
27 const scoped_refptr<FrameSwapMessageQueue>& frame_swap_message_queue, | |
28 const scoped_refptr<cc::ContextProvider>& onscreen_context, | |
29 const scoped_refptr<cc::ContextProvider>& worker_context) override; | |
30 InputHandlerManagerClient* GetInputHandlerManagerClient() override; | |
31 SynchronousInputHandlerProxyClient* GetSynchronousInputHandlerProxyClient() | |
32 override; | |
33 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | |
34 int routing_id) override; | |
35 | |
36 SynchronousInputEventFilter* synchronous_input_event_filter() { | |
37 return &synchronous_input_event_filter_; | |
38 } | |
39 | |
40 private: | |
41 SynchronousInputEventFilter synchronous_input_event_filter_; | |
42 }; | |
43 | |
44 } // namespace content | |
45 | |
46 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP
L_H_ | |
OLD | NEW |