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

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

Issue 2458743002: Switching to base::Optional<CompositorFrame> in Android's synchronous compositor IPC messages (Closed)
Patch Set: Style Created 4 years, 1 month 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
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/optional.h"
12 #include "content/common/input/input_event_ack_state.h" 13 #include "content/common/input/input_event_ack_state.h"
13 #include "content/renderer/android/synchronous_compositor_frame_sink.h" 14 #include "content/renderer/android/synchronous_compositor_frame_sink.h"
14 #include "ui/events/blink/synchronous_input_handler_proxy.h" 15 #include "ui/events/blink/synchronous_input_handler_proxy.h"
15 #include "ui/gfx/geometry/scroll_offset.h" 16 #include "ui/gfx/geometry/scroll_offset.h"
16 #include "ui/gfx/geometry/size_f.h" 17 #include "ui/gfx/geometry/size_f.h"
17 18
18 class SkCanvas; 19 class SkCanvas;
19 20
20 namespace IPC { 21 namespace IPC {
21 class Message; 22 class Message;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 void SynchronouslyZoomBy( 87 void SynchronouslyZoomBy(
87 float zoom_delta, 88 float zoom_delta,
88 const gfx::Point& anchor, 89 const gfx::Point& anchor,
89 SyncCompositorCommonRendererParams* common_renderer_params); 90 SyncCompositorCommonRendererParams* common_renderer_params);
90 void SetScroll(const gfx::ScrollOffset& total_scroll_offset); 91 void SetScroll(const gfx::ScrollOffset& total_scroll_offset);
91 92
92 void SubmitCompositorFrameHwAsync(uint32_t compositor_frame_sink_id, 93 void SubmitCompositorFrameHwAsync(uint32_t compositor_frame_sink_id,
93 cc::CompositorFrame frame); 94 cc::CompositorFrame frame);
94 void SubmitCompositorFrameHw(uint32_t compositor_frame_sink_id, 95 void SubmitCompositorFrameHw(uint32_t compositor_frame_sink_id,
95 cc::CompositorFrame frame); 96 cc::CompositorFrame frame);
96 void SendDemandDrawHwReply(cc::CompositorFrame frame, 97 void SendDemandDrawHwReply(base::Optional<cc::CompositorFrame> frame,
97 uint32_t compositor_frame_sink_id, 98 uint32_t compositor_frame_sink_id,
98 IPC::Message* reply_message); 99 IPC::Message* reply_message);
99 void SendDemandDrawHwReplyAsync(cc::CompositorFrame frame, 100 void SendDemandDrawHwReplyAsync(base::Optional<cc::CompositorFrame> frame,
100 uint32_t compositor_frame_sink_id); 101 uint32_t compositor_frame_sink_id);
101 void DoDemandDrawSw(const SyncCompositorDemandDrawSwParams& params); 102 void DoDemandDrawSw(const SyncCompositorDemandDrawSwParams& params);
102 void SubmitCompositorFrameSw(cc::CompositorFrame frame); 103 void SubmitCompositorFrameSw(cc::CompositorFrame frame);
103 void SendDemandDrawSwReply(bool success, 104 void SendDemandDrawSwReply(bool success,
104 cc::CompositorFrame frame, 105 cc::CompositorFrame frame,
105 IPC::Message* reply_message); 106 IPC::Message* reply_message);
106 void SendAsyncRendererStateIfNeeded(); 107 void SendAsyncRendererStateIfNeeded();
107 void DoDemandDrawHw(const SyncCompositorDemandDrawHwParams& params, 108 void DoDemandDrawHw(const SyncCompositorDemandDrawHwParams& params,
108 IPC::Message* reply_message); 109 IPC::Message* reply_message);
109 110
(...skipping 21 matching lines...) Expand all
131 bool need_animate_scroll_; 132 bool need_animate_scroll_;
132 uint32_t need_invalidate_count_; 133 uint32_t need_invalidate_count_;
133 uint32_t did_activate_pending_tree_count_; 134 uint32_t did_activate_pending_tree_count_;
134 135
135 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorProxy); 136 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorProxy);
136 }; 137 };
137 138
138 } // namespace content 139 } // namespace content
139 140
140 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_ 141 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_
OLDNEW
« no previous file with comments | « content/common/android/sync_compositor_messages.h ('k') | content/renderer/android/synchronous_compositor_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698