OLD | NEW |
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" |
(...skipping 26 matching lines...) Expand all Loading... |
37 int routing_id, | 37 int routing_id, |
38 scoped_refptr<content::FrameSwapMessageQueue> frame_swap_message_queue) | 38 scoped_refptr<content::FrameSwapMessageQueue> frame_swap_message_queue) |
39 OVERRIDE; | 39 OVERRIDE; |
40 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() OVERRIDE; | 40 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() OVERRIDE; |
41 virtual scoped_refptr<webkit::gpu::ContextProviderWebContext> | 41 virtual scoped_refptr<webkit::gpu::ContextProviderWebContext> |
42 CreateOffscreenContextProvider( | 42 CreateOffscreenContextProvider( |
43 const blink::WebGraphicsContext3D::Attributes& attributes, | 43 const blink::WebGraphicsContext3D::Attributes& attributes, |
44 const std::string& debug_name) OVERRIDE; | 44 const std::string& debug_name) OVERRIDE; |
45 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( | 45 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( |
46 int view_id) OVERRIDE; | 46 int view_id) OVERRIDE; |
47 virtual blink::WebGraphicsContext3D* CreateOffscreenGraphicsContext3D( | 47 virtual webkit::gpu::WebGraphicsContext3DImpl* |
48 const blink::WebGraphicsContext3D::Attributes& attributes) OVERRIDE; | 48 CreateOffscreenGraphicsContext3D( |
49 | 49 const blink::WebGraphicsContext3D::Attributes& attributes) OVERRIDE; |
50 | 50 |
51 SynchronousInputEventFilter* synchronous_input_event_filter() { | 51 SynchronousInputEventFilter* synchronous_input_event_filter() { |
52 return &synchronous_input_event_filter_; | 52 return &synchronous_input_event_filter_; |
53 } | 53 } |
54 | 54 |
55 void SetDeferredGpuService( | 55 void SetDeferredGpuService( |
56 scoped_refptr<gpu::InProcessCommandBuffer::Service> service); | 56 scoped_refptr<gpu::InProcessCommandBuffer::Service> service); |
57 void SetRecordFullDocument(bool record_full_document); | 57 void SetRecordFullDocument(bool record_full_document); |
58 void CompositorInitializedHardwareDraw(); | 58 void CompositorInitializedHardwareDraw(); |
59 void CompositorReleasedHardwareDraw(); | 59 void CompositorReleasedHardwareDraw(); |
(...skipping 18 matching lines...) Expand all Loading... |
78 | 78 |
79 // |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 |
80 // read on renderer main thread. | 80 // read on renderer main thread. |
81 base::Lock num_hardware_compositor_lock_; | 81 base::Lock num_hardware_compositor_lock_; |
82 unsigned int num_hardware_compositors_; | 82 unsigned int num_hardware_compositors_; |
83 }; | 83 }; |
84 | 84 |
85 } // namespace content | 85 } // namespace content |
86 | 86 |
87 #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_ |
OLD | NEW |