Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: content/browser/android/in_process/synchronous_compositor_factory_impl.h

Issue 1620053002: sync compositor: Merge input path with chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 27 matching lines...) Expand all
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 const scoped_refptr<FrameSwapMessageQueue>& frame_swap_message_queue, 44 const scoped_refptr<FrameSwapMessageQueue>& frame_swap_message_queue,
45 const scoped_refptr<cc::ContextProvider>& onscreen_context, 45 const scoped_refptr<cc::ContextProvider>& onscreen_context,
46 const scoped_refptr<cc::ContextProvider>& worker_context) override; 46 const scoped_refptr<cc::ContextProvider>& worker_context) override;
47 InputHandlerManagerClient* GetInputHandlerManagerClient() override; 47 InputHandlerManagerClient* GetInputHandlerManagerClient() override;
48 SynchronousInputHandlerProxyClient* GetSynchronousInputHandlerProxyClient()
49 override;
48 scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( 50 scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
49 int routing_id) override; 51 int routing_id) override;
50 52
51 SynchronousInputEventFilter* synchronous_input_event_filter() { 53 SynchronousInputEventFilter* synchronous_input_event_filter() {
52 return &synchronous_input_event_filter_; 54 return &synchronous_input_event_filter_;
53 } 55 }
54 56
55 private: 57 private:
56 SynchronousInputEventFilter synchronous_input_event_filter_; 58 SynchronousInputEventFilter synchronous_input_event_filter_;
57 }; 59 };
(...skipping 28 matching lines...) Expand all
86 // |num_hardware_compositor_lock_| is updated on UI thread only but can be 88 // |num_hardware_compositor_lock_| is updated on UI thread only but can be
87 // read on renderer main thread. 89 // read on renderer main thread.
88 base::Lock num_hardware_compositor_lock_; 90 base::Lock num_hardware_compositor_lock_;
89 unsigned int num_hardware_compositors_; 91 unsigned int num_hardware_compositors_;
90 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 92 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
91 }; 93 };
92 94
93 } // namespace content 95 } // namespace content
94 96
95 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP L_H_ 97 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP L_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698