| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 const gfx::SizeF& scrollable_size, | 65 const gfx::SizeF& scrollable_size, |
| 66 float page_scale_factor, | 66 float page_scale_factor, |
| 67 float min_page_scale_factor, | 67 float min_page_scale_factor, |
| 68 float max_page_scale_factor) override; | 68 float max_page_scale_factor) override; |
| 69 | 69 |
| 70 // SynchronousCompositorExternalBeginFrameSourceClient overrides. | 70 // SynchronousCompositorExternalBeginFrameSourceClient overrides. |
| 71 void OnNeedsBeginFramesChange(bool needs_begin_frames) override; | 71 void OnNeedsBeginFramesChange(bool needs_begin_frames) override; |
| 72 | 72 |
| 73 // SynchronousCompositorOutputSurfaceClient overrides. | 73 // SynchronousCompositorOutputSurfaceClient overrides. |
| 74 void Invalidate() override; | 74 void Invalidate() override; |
| 75 void SwapBuffers(cc::CompositorFrame* frame) override; | 75 void SwapBuffers(uint32_t output_surface_id, |
| 76 cc::CompositorFrame* frame) override; |
| 76 | 77 |
| 77 void OnMessageReceived(const IPC::Message& message); | 78 void OnMessageReceived(const IPC::Message& message); |
| 78 bool Send(IPC::Message* message); | 79 bool Send(IPC::Message* message); |
| 79 void DidOverscroll(const DidOverscrollParams& did_overscroll_params); | 80 void DidOverscroll(const DidOverscrollParams& did_overscroll_params); |
| 80 | 81 |
| 81 private: | 82 private: |
| 82 struct SharedMemoryWithSize; | 83 struct SharedMemoryWithSize; |
| 83 | 84 |
| 84 void ProcessCommonParams( | 85 void ProcessCommonParams( |
| 85 const SyncCompositorCommonBrowserParams& common_params); | 86 const SyncCompositorCommonBrowserParams& common_params); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 102 void SetSharedMemory( | 103 void SetSharedMemory( |
| 103 const SyncCompositorCommonBrowserParams& common_params, | 104 const SyncCompositorCommonBrowserParams& common_params, |
| 104 const SyncCompositorSetSharedMemoryParams& params, | 105 const SyncCompositorSetSharedMemoryParams& params, |
| 105 bool* success, | 106 bool* success, |
| 106 SyncCompositorCommonRendererParams* common_renderer_params); | 107 SyncCompositorCommonRendererParams* common_renderer_params); |
| 107 void ZeroSharedMemory(); | 108 void ZeroSharedMemory(); |
| 108 void DemandDrawSw(const SyncCompositorCommonBrowserParams& common_params, | 109 void DemandDrawSw(const SyncCompositorCommonBrowserParams& common_params, |
| 109 const SyncCompositorDemandDrawSwParams& params, | 110 const SyncCompositorDemandDrawSwParams& params, |
| 110 IPC::Message* reply_message); | 111 IPC::Message* reply_message); |
| 111 | 112 |
| 112 void SwapBuffersHw(cc::CompositorFrame* frame); | 113 void SwapBuffersHw(uint32_t output_surface_id, cc::CompositorFrame* frame); |
| 113 void SendDemandDrawHwReply(cc::CompositorFrame* frame, | 114 void SendDemandDrawHwReply(cc::CompositorFrame* frame, |
| 115 uint32_t output_surface_id, |
| 114 IPC::Message* reply_message); | 116 IPC::Message* reply_message); |
| 115 void DoDemandDrawSw(const SyncCompositorDemandDrawSwParams& params); | 117 void DoDemandDrawSw(const SyncCompositorDemandDrawSwParams& params); |
| 116 void SwapBuffersSw(cc::CompositorFrame* frame); | 118 void SwapBuffersSw(cc::CompositorFrame* frame); |
| 117 void SendDemandDrawSwReply(bool success, | 119 void SendDemandDrawSwReply(bool success, |
| 118 cc::CompositorFrame* frame, | 120 cc::CompositorFrame* frame, |
| 119 IPC::Message* reply_message); | 121 IPC::Message* reply_message); |
| 120 void DidActivatePendingTree(); | 122 void DidActivatePendingTree(); |
| 121 void DeliverMessages(); | 123 void DeliverMessages(); |
| 122 void SendAsyncRendererStateIfNeeded(); | 124 void SendAsyncRendererStateIfNeeded(); |
| 123 | 125 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 148 uint32_t need_invalidate_count_; | 150 uint32_t need_invalidate_count_; |
| 149 bool need_begin_frame_; | 151 bool need_begin_frame_; |
| 150 uint32_t did_activate_pending_tree_count_; | 152 uint32_t did_activate_pending_tree_count_; |
| 151 | 153 |
| 152 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorProxy); | 154 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorProxy); |
| 153 }; | 155 }; |
| 154 | 156 |
| 155 } // namespace content | 157 } // namespace content |
| 156 | 158 |
| 157 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_ | 159 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_ |
| OLD | NEW |