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

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

Issue 897773002: Update {virtual,override,final} to follow C++11 style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 10 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/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"
11 #include "content/renderer/android/synchronous_compositor_factory.h" 11 #include "content/renderer/android/synchronous_compositor_factory.h"
12 #include "content/renderer/media/android/stream_texture_factory_synchronous_impl .h" 12 #include "content/renderer/media/android/stream_texture_factory_synchronous_impl .h"
13 #include "gpu/command_buffer/service/in_process_command_buffer.h" 13 #include "gpu/command_buffer/service/in_process_command_buffer.h"
14 14
15 namespace gpu { 15 namespace gpu {
16 class GLInProcessContext; 16 class GLInProcessContext;
17 } 17 }
18 18
19 namespace gpu_blink { 19 namespace gpu_blink {
20 class WebGraphicsContext3DInProcessCommandBufferImpl; 20 class WebGraphicsContext3DInProcessCommandBufferImpl;
21 } 21 }
22 22
23 namespace content { 23 namespace content {
24 24
25 class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory { 25 class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory {
26 public: 26 public:
27 SynchronousCompositorFactoryImpl(); 27 SynchronousCompositorFactoryImpl();
28 virtual ~SynchronousCompositorFactoryImpl(); 28 ~SynchronousCompositorFactoryImpl() override;
29 29
30 // SynchronousCompositorFactory 30 // SynchronousCompositorFactory
31 virtual scoped_refptr<base::MessageLoopProxy> GetCompositorMessageLoop() 31 scoped_refptr<base::MessageLoopProxy> GetCompositorMessageLoop() override;
32 override; 32 bool RecordFullLayer() override;
33 virtual bool RecordFullLayer() override; 33 scoped_ptr<cc::OutputSurface> CreateOutputSurface(
34 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(
35 int routing_id, 34 int routing_id,
36 scoped_refptr<content::FrameSwapMessageQueue> frame_swap_message_queue) 35 scoped_refptr<content::FrameSwapMessageQueue> frame_swap_message_queue)
37 override; 36 override;
38 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() override; 37 InputHandlerManagerClient* GetInputHandlerManagerClient() override;
39 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( 38 scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
40 int routing_id) override; 39 int routing_id) override;
41 virtual scoped_refptr<cc_blink::ContextProviderWebContext> 40 scoped_refptr<cc_blink::ContextProviderWebContext>
42 CreateOffscreenContextProvider( 41 CreateOffscreenContextProvider(
43 const blink::WebGraphicsContext3D::Attributes& attributes, 42 const blink::WebGraphicsContext3D::Attributes& attributes,
44 const std::string& debug_name) override; 43 const std::string& debug_name) override;
45 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( 44 scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory(
46 int view_id) override; 45 int view_id) override;
47 virtual gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl* 46 gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl*
48 CreateOffscreenGraphicsContext3D( 47 CreateOffscreenGraphicsContext3D(
49 const blink::WebGraphicsContext3D::Attributes& attributes) override; 48 const blink::WebGraphicsContext3D::Attributes& attributes) override;
50 49
51 SynchronousInputEventFilter* synchronous_input_event_filter() { 50 SynchronousInputEventFilter* synchronous_input_event_filter() {
52 return &synchronous_input_event_filter_; 51 return &synchronous_input_event_filter_;
53 } 52 }
54 53
55 void SetDeferredGpuService( 54 void SetDeferredGpuService(
56 scoped_refptr<gpu::InProcessCommandBuffer::Service> service); 55 scoped_refptr<gpu::InProcessCommandBuffer::Service> service);
57 void SetRecordFullDocument(bool record_full_document); 56 void SetRecordFullDocument(bool record_full_document);
58 void CompositorInitializedHardwareDraw(); 57 void CompositorInitializedHardwareDraw();
59 void CompositorReleasedHardwareDraw(); 58 void CompositorReleasedHardwareDraw();
(...skipping 19 matching lines...) Expand all
79 // |num_hardware_compositor_lock_| is updated on UI thread only but can be 78 // |num_hardware_compositor_lock_| is updated on UI thread only but can be
80 // read on renderer main thread. 79 // read on renderer main thread.
81 base::Lock num_hardware_compositor_lock_; 80 base::Lock num_hardware_compositor_lock_;
82 unsigned int num_hardware_compositors_; 81 unsigned int num_hardware_compositors_;
83 scoped_refptr<base::MessageLoopProxy> main_thread_proxy_; 82 scoped_refptr<base::MessageLoopProxy> main_thread_proxy_;
84 }; 83 };
85 84
86 } // namespace content 85 } // namespace content
87 86
88 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP L_H_ 87 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP L_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698