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

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

Issue 2835203002: Reject CompositorFrames with no render passes when deserializing (Closed)
Patch Set: Fixed Android Webview Created 3 years, 8 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 cc::CompositorFrame frame); 88 cc::CompositorFrame frame);
89 void SubmitCompositorFrameHw(uint32_t compositor_frame_sink_id, 89 void SubmitCompositorFrameHw(uint32_t compositor_frame_sink_id,
90 cc::CompositorFrame frame); 90 cc::CompositorFrame frame);
91 void SendDemandDrawHwReply(base::Optional<cc::CompositorFrame> frame, 91 void SendDemandDrawHwReply(base::Optional<cc::CompositorFrame> frame,
92 uint32_t compositor_frame_sink_id, 92 uint32_t compositor_frame_sink_id,
93 IPC::Message* reply_message); 93 IPC::Message* reply_message);
94 void SendDemandDrawHwReplyAsync(base::Optional<cc::CompositorFrame> frame, 94 void SendDemandDrawHwReplyAsync(base::Optional<cc::CompositorFrame> frame,
95 uint32_t compositor_frame_sink_id); 95 uint32_t compositor_frame_sink_id);
96 void DoDemandDrawSw(const SyncCompositorDemandDrawSwParams& params); 96 void DoDemandDrawSw(const SyncCompositorDemandDrawSwParams& params);
97 void SubmitCompositorFrameSw(cc::CompositorFrame frame); 97 void SubmitCompositorFrameSw(cc::CompositorFrame frame);
98 void SendDemandDrawSwReply(bool success, 98 void SendDemandDrawSwReply(
99 cc::CompositorFrame frame, 99 base::Optional<cc::CompositorFrameMetadata> metadata,
100 IPC::Message* reply_message); 100 IPC::Message* reply_message);
101 void SendAsyncRendererStateIfNeeded(); 101 void SendAsyncRendererStateIfNeeded();
102 void DoDemandDrawHw(const SyncCompositorDemandDrawHwParams& params, 102 void DoDemandDrawHw(const SyncCompositorDemandDrawHwParams& params,
103 IPC::Message* reply_message); 103 IPC::Message* reply_message);
104 104
105 const int routing_id_; 105 const int routing_id_;
106 IPC::Sender* const sender_; 106 IPC::Sender* const sender_;
107 ui::SynchronousInputHandlerProxy* const input_handler_proxy_; 107 ui::SynchronousInputHandlerProxy* const input_handler_proxy_;
108 const bool use_in_process_zero_copy_software_draw_; 108 const bool use_in_process_zero_copy_software_draw_;
109 SynchronousCompositorFrameSink* compositor_frame_sink_; 109 SynchronousCompositorFrameSink* compositor_frame_sink_;
110 bool inside_receive_; 110 bool inside_receive_;
(...skipping 15 matching lines...) Expand all
126 bool need_animate_scroll_; 126 bool need_animate_scroll_;
127 uint32_t need_invalidate_count_; 127 uint32_t need_invalidate_count_;
128 uint32_t did_activate_pending_tree_count_; 128 uint32_t did_activate_pending_tree_count_;
129 129
130 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorProxy); 130 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorProxy);
131 }; 131 };
132 132
133 } // namespace content 133 } // namespace content
134 134
135 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_ 135 #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