OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_ | 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_ |
6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_ | 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 const SyncCompositorDemandDrawHwParams& params, | 97 const SyncCompositorDemandDrawHwParams& params, |
98 IPC::Message* reply_message); | 98 IPC::Message* reply_message); |
99 void SetSharedMemory( | 99 void SetSharedMemory( |
100 const SyncCompositorCommonBrowserParams& common_params, | 100 const SyncCompositorCommonBrowserParams& common_params, |
101 const SyncCompositorSetSharedMemoryParams& params, | 101 const SyncCompositorSetSharedMemoryParams& params, |
102 bool* success, | 102 bool* success, |
103 SyncCompositorCommonRendererParams* common_renderer_params); | 103 SyncCompositorCommonRendererParams* common_renderer_params); |
104 void ZeroSharedMemory(); | 104 void ZeroSharedMemory(); |
105 void DemandDrawSw(const SyncCompositorCommonBrowserParams& common_params, | 105 void DemandDrawSw(const SyncCompositorCommonBrowserParams& common_params, |
106 const SyncCompositorDemandDrawSwParams& params, | 106 const SyncCompositorDemandDrawSwParams& params, |
107 bool* result, | 107 IPC::Message* reply_message); |
108 SyncCompositorCommonRendererParams* common_renderer_params, | |
109 cc::CompositorFrame* frame); | |
110 | 108 |
111 void SwapBuffersHw(cc::CompositorFrame* frame); | 109 void SwapBuffersHw(cc::CompositorFrame* frame); |
112 void SendDemandDrawHwReply(cc::CompositorFrame* frame, | 110 void SendDemandDrawHwReply(cc::CompositorFrame* frame, |
113 IPC::Message* reply_message); | 111 IPC::Message* reply_message); |
| 112 void DoDemandDrawSw(const SyncCompositorDemandDrawSwParams& params); |
| 113 void SwapBuffersSw(cc::CompositorFrame* frame); |
| 114 void SendDemandDrawSwReply(bool success, |
| 115 cc::CompositorFrame* frame, |
| 116 IPC::Message* reply_message); |
114 void DidActivatePendingTree(); | 117 void DidActivatePendingTree(); |
115 void DeliverMessages(); | 118 void DeliverMessages(); |
116 void SendAsyncRendererStateIfNeeded(); | 119 void SendAsyncRendererStateIfNeeded(); |
117 | 120 |
118 const int routing_id_; | 121 const int routing_id_; |
119 IPC::Sender* const sender_; | 122 IPC::Sender* const sender_; |
120 SynchronousCompositorOutputSurface* const output_surface_; | 123 SynchronousCompositorOutputSurface* const output_surface_; |
121 SynchronousCompositorExternalBeginFrameSource* const begin_frame_source_; | 124 SynchronousCompositorExternalBeginFrameSource* const begin_frame_source_; |
122 ui::SynchronousInputHandlerProxy* const input_handler_proxy_; | 125 ui::SynchronousInputHandlerProxy* const input_handler_proxy_; |
123 InputHandlerManagerClient::Handler* const input_handler_; | 126 InputHandlerManagerClient::Handler* const input_handler_; |
124 bool inside_receive_; | 127 bool inside_receive_; |
125 IPC::Message* hardware_draw_reply_; | 128 IPC::Message* hardware_draw_reply_; |
126 scoped_ptr<cc::CompositorFrame> software_frame_holder_; | 129 IPC::Message* software_draw_reply_; |
127 | 130 |
128 // From browser. | 131 // From browser. |
129 size_t bytes_limit_; | 132 size_t bytes_limit_; |
130 scoped_ptr<SharedMemoryWithSize> software_draw_shm_; | 133 scoped_ptr<SharedMemoryWithSize> software_draw_shm_; |
131 | 134 |
132 // To browser. | 135 // To browser. |
133 uint32_t version_; | 136 uint32_t version_; |
134 gfx::ScrollOffset total_scroll_offset_; // Modified by both. | 137 gfx::ScrollOffset total_scroll_offset_; // Modified by both. |
135 gfx::ScrollOffset max_scroll_offset_; | 138 gfx::ScrollOffset max_scroll_offset_; |
136 gfx::SizeF scrollable_size_; | 139 gfx::SizeF scrollable_size_; |
137 float page_scale_factor_; | 140 float page_scale_factor_; |
138 float min_page_scale_factor_; | 141 float min_page_scale_factor_; |
139 float max_page_scale_factor_; | 142 float max_page_scale_factor_; |
140 bool need_animate_scroll_; | 143 bool need_animate_scroll_; |
141 bool need_invalidate_; | 144 bool need_invalidate_; |
142 bool need_begin_frame_; | 145 bool need_begin_frame_; |
143 bool did_activate_pending_tree_; | 146 bool did_activate_pending_tree_; |
144 | 147 |
145 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorProxy); | 148 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorProxy); |
146 }; | 149 }; |
147 | 150 |
148 } // namespace content | 151 } // namespace content |
149 | 152 |
150 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_ | 153 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_ |
OLD | NEW |