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

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

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 21 matching lines...) Expand all
32 class ContextProviderCommandBuffer; 32 class ContextProviderCommandBuffer;
33 33
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 std::unique_ptr<cc::OutputSurface> CreateOutputSurface(
43 int routing_id, 43 int routing_id,
44 uint32_t output_surface_id, 44 uint32_t output_surface_id,
45 const scoped_refptr<FrameSwapMessageQueue>& frame_swap_message_queue, 45 const scoped_refptr<FrameSwapMessageQueue>& frame_swap_message_queue,
46 const scoped_refptr<cc::ContextProvider>& onscreen_context, 46 const scoped_refptr<cc::ContextProvider>& onscreen_context,
47 const scoped_refptr<cc::ContextProvider>& worker_context) override; 47 const scoped_refptr<cc::ContextProvider>& worker_context) override;
48 InputHandlerManagerClient* GetInputHandlerManagerClient() override; 48 InputHandlerManagerClient* GetInputHandlerManagerClient() override;
49 SynchronousInputHandlerProxyClient* GetSynchronousInputHandlerProxyClient() 49 SynchronousInputHandlerProxyClient* GetSynchronousInputHandlerProxyClient()
50 override; 50 override;
51 scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( 51 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
52 int routing_id) override; 52 int routing_id) override;
53 53
54 SynchronousInputEventFilter* synchronous_input_event_filter() { 54 SynchronousInputEventFilter* synchronous_input_event_filter() {
55 return &synchronous_input_event_filter_; 55 return &synchronous_input_event_filter_;
56 } 56 }
57 57
58 private: 58 private:
59 SynchronousInputEventFilter synchronous_input_event_filter_; 59 SynchronousInputEventFilter synchronous_input_event_filter_;
60 }; 60 };
61 61
(...skipping 27 matching lines...) Expand all
89 // |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
90 // read on renderer main thread. 90 // read on renderer main thread.
91 base::Lock num_hardware_compositor_lock_; 91 base::Lock num_hardware_compositor_lock_;
92 unsigned int num_hardware_compositors_; 92 unsigned int num_hardware_compositors_;
93 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 93 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
94 }; 94 };
95 95
96 } // namespace content 96 } // namespace content
97 97
98 #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