| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 SyncCompositorCommonRendererParams* common_renderer_params); | 104 SyncCompositorCommonRendererParams* common_renderer_params); |
| 105 void ZeroSharedMemory(); | 105 void ZeroSharedMemory(); |
| 106 void DemandDrawSw(const SyncCompositorCommonBrowserParams& common_params, | 106 void DemandDrawSw(const SyncCompositorCommonBrowserParams& common_params, |
| 107 const SyncCompositorDemandDrawSwParams& params, | 107 const SyncCompositorDemandDrawSwParams& params, |
| 108 IPC::Message* reply_message); | 108 IPC::Message* reply_message); |
| 109 void SynchronouslyZoomBy( | 109 void SynchronouslyZoomBy( |
| 110 const SyncCompositorCommonBrowserParams& common_params, | 110 const SyncCompositorCommonBrowserParams& common_params, |
| 111 float zoom_delta, | 111 float zoom_delta, |
| 112 const gfx::Point& anchor, | 112 const gfx::Point& anchor, |
| 113 SyncCompositorCommonRendererParams* common_renderer_params); | 113 SyncCompositorCommonRendererParams* common_renderer_params); |
| 114 void SetScroll(const gfx::ScrollOffset& total_scroll_offset); |
| 114 | 115 |
| 115 void SwapBuffersHw(uint32_t output_surface_id, cc::CompositorFrame* frame); | 116 void SwapBuffersHw(uint32_t output_surface_id, cc::CompositorFrame* frame); |
| 116 void SendDemandDrawHwReply(cc::CompositorFrame* frame, | 117 void SendDemandDrawHwReply(cc::CompositorFrame* frame, |
| 117 uint32_t output_surface_id, | 118 uint32_t output_surface_id, |
| 118 IPC::Message* reply_message); | 119 IPC::Message* reply_message); |
| 119 void DoDemandDrawSw(const SyncCompositorDemandDrawSwParams& params); | 120 void DoDemandDrawSw(const SyncCompositorDemandDrawSwParams& params); |
| 120 void SwapBuffersSw(cc::CompositorFrame* frame); | 121 void SwapBuffersSw(cc::CompositorFrame* frame); |
| 121 void SendDemandDrawSwReply(bool success, | 122 void SendDemandDrawSwReply(bool success, |
| 122 cc::CompositorFrame* frame, | 123 cc::CompositorFrame* frame, |
| 123 IPC::Message* reply_message); | 124 IPC::Message* reply_message); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 151 uint32_t need_invalidate_count_; | 152 uint32_t need_invalidate_count_; |
| 152 bool need_begin_frame_; | 153 bool need_begin_frame_; |
| 153 uint32_t did_activate_pending_tree_count_; | 154 uint32_t did_activate_pending_tree_count_; |
| 154 | 155 |
| 155 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorProxy); | 156 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorProxy); |
| 156 }; | 157 }; |
| 157 | 158 |
| 158 } // namespace content | 159 } // namespace content |
| 159 | 160 |
| 160 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_ | 161 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_ |
| OLD | NEW |