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

Side by Side Diff: content/renderer/android/synchronous_compositor_proxy.h

Issue 1976803003: sync compositor: Move DeliverMessages to OutputSurface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unregister activation callback Created 4 years, 7 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 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 const gfx::ScrollOffset& max_scroll_offset, 60 const gfx::ScrollOffset& max_scroll_offset,
61 const gfx::SizeF& scrollable_size, 61 const gfx::SizeF& scrollable_size,
62 float page_scale_factor, 62 float page_scale_factor,
63 float min_page_scale_factor, 63 float min_page_scale_factor,
64 float max_page_scale_factor) override; 64 float max_page_scale_factor) override;
65 65
66 // SynchronousCompositorExternalBeginFrameSourceClient overrides. 66 // SynchronousCompositorExternalBeginFrameSourceClient overrides.
67 void OnNeedsBeginFramesChange(bool needs_begin_frames) override; 67 void OnNeedsBeginFramesChange(bool needs_begin_frames) override;
68 68
69 // SynchronousCompositorOutputSurfaceClient overrides. 69 // SynchronousCompositorOutputSurfaceClient overrides.
70 void DidActivatePendingTree() override;
70 void Invalidate() override; 71 void Invalidate() override;
71 void SwapBuffers(uint32_t output_surface_id, 72 void SwapBuffers(uint32_t output_surface_id,
72 cc::CompositorFrame* frame) override; 73 cc::CompositorFrame* frame) override;
73 74
74 void SetOutputSurface(SynchronousCompositorOutputSurface* output_surface); 75 void SetOutputSurface(SynchronousCompositorOutputSurface* output_surface);
75 void OnMessageReceived(const IPC::Message& message); 76 void OnMessageReceived(const IPC::Message& message);
76 bool Send(IPC::Message* message); 77 bool Send(IPC::Message* message);
77 void DidOverscroll(const DidOverscrollParams& did_overscroll_params); 78 void DidOverscroll(const DidOverscrollParams& did_overscroll_params);
78 79
79 private: 80 private:
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 116
116 void SwapBuffersHw(uint32_t output_surface_id, cc::CompositorFrame* frame); 117 void SwapBuffersHw(uint32_t output_surface_id, cc::CompositorFrame* frame);
117 void SendDemandDrawHwReply(cc::CompositorFrame* frame, 118 void SendDemandDrawHwReply(cc::CompositorFrame* frame,
118 uint32_t output_surface_id, 119 uint32_t output_surface_id,
119 IPC::Message* reply_message); 120 IPC::Message* reply_message);
120 void DoDemandDrawSw(const SyncCompositorDemandDrawSwParams& params); 121 void DoDemandDrawSw(const SyncCompositorDemandDrawSwParams& params);
121 void SwapBuffersSw(cc::CompositorFrame* frame); 122 void SwapBuffersSw(cc::CompositorFrame* frame);
122 void SendDemandDrawSwReply(bool success, 123 void SendDemandDrawSwReply(bool success,
123 cc::CompositorFrame* frame, 124 cc::CompositorFrame* frame,
124 IPC::Message* reply_message); 125 IPC::Message* reply_message);
125 void DidActivatePendingTree();
126 void DeliverMessages();
127 void SendAsyncRendererStateIfNeeded(); 126 void SendAsyncRendererStateIfNeeded();
128 127
129 const int routing_id_; 128 const int routing_id_;
130 IPC::Sender* const sender_; 129 IPC::Sender* const sender_;
131 SynchronousCompositorExternalBeginFrameSource* const begin_frame_source_; 130 SynchronousCompositorExternalBeginFrameSource* const begin_frame_source_;
132 ui::SynchronousInputHandlerProxy* const input_handler_proxy_; 131 ui::SynchronousInputHandlerProxy* const input_handler_proxy_;
133 InputHandlerManagerClient::Handler* const input_handler_; 132 InputHandlerManagerClient::Handler* const input_handler_;
134 const bool use_in_process_zero_copy_software_draw_; 133 const bool use_in_process_zero_copy_software_draw_;
135 SynchronousCompositorOutputSurface* output_surface_; 134 SynchronousCompositorOutputSurface* output_surface_;
136 bool inside_receive_; 135 bool inside_receive_;
(...skipping 15 matching lines...) Expand all
152 uint32_t need_invalidate_count_; 151 uint32_t need_invalidate_count_;
153 bool need_begin_frame_; 152 bool need_begin_frame_;
154 uint32_t did_activate_pending_tree_count_; 153 uint32_t did_activate_pending_tree_count_;
155 154
156 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorProxy); 155 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorProxy);
157 }; 156 };
158 157
159 } // namespace content 158 } // namespace content
160 159
161 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_ 160 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698