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

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

Issue 1769913003: sync compositor: Add output_surface_id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nit in test 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 23 matching lines...) Expand all
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 SynchronousInputHandlerProxyClient* GetSynchronousInputHandlerProxyClient() 49 SynchronousInputHandlerProxyClient* GetSynchronousInputHandlerProxyClient()
49 override; 50 override;
50 scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( 51 scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
51 int routing_id) override; 52 int routing_id) override;
52 53
53 SynchronousInputEventFilter* synchronous_input_event_filter() { 54 SynchronousInputEventFilter* synchronous_input_event_filter() {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // |num_hardware_compositor_lock_| is updated on UI thread only but can be 89 // |num_hardware_compositor_lock_| is updated on UI thread only but can be
89 // read on renderer main thread. 90 // read on renderer main thread.
90 base::Lock num_hardware_compositor_lock_; 91 base::Lock num_hardware_compositor_lock_;
91 unsigned int num_hardware_compositors_; 92 unsigned int num_hardware_compositors_;
92 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 93 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
93 }; 94 };
94 95
95 } // namespace content 96 } // namespace content
96 97
97 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP L_H_ 98 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP L_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698