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

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

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

Powered by Google App Engine
This is Rietveld 408576698