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

Side by Side Diff: content/browser/android/synchronous_compositor_host.h

Issue 1958803003: sync compostor: Return resources async IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_
6 #define CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ 6 #define CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 RenderWidgetHostViewAndroid* const rwhva_; 98 RenderWidgetHostViewAndroid* const rwhva_;
99 SynchronousCompositorClient* const client_; 99 SynchronousCompositorClient* const client_;
100 const scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; 100 const scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
101 const int routing_id_; 101 const int routing_id_;
102 IPC::Sender* const sender_; 102 IPC::Sender* const sender_;
103 const bool async_input_; 103 const bool async_input_;
104 const bool use_in_process_zero_copy_software_draw_; 104 const bool use_in_process_zero_copy_software_draw_;
105 105
106 bool is_active_; 106 bool is_active_;
107 size_t bytes_limit_; 107 size_t bytes_limit_;
108 uint32_t output_surface_id_from_last_draw_;
109 cc::ReturnedResourceArray returned_resources_;
110 std::unique_ptr<SharedMemoryWithSize> software_draw_shm_; 108 std::unique_ptr<SharedMemoryWithSize> software_draw_shm_;
111 109
112 // Updated by both renderer and browser. 110 // Updated by both renderer and browser.
113 gfx::ScrollOffset root_scroll_offset_; 111 gfx::ScrollOffset root_scroll_offset_;
114 bool root_scroll_offset_updated_by_browser_; 112 bool root_scroll_offset_updated_by_browser_;
115 113
116 // From renderer. 114 // From renderer.
117 uint32_t renderer_param_version_; 115 uint32_t renderer_param_version_;
118 bool need_animate_scroll_; 116 bool need_animate_scroll_;
119 uint32_t need_invalidate_count_; 117 uint32_t need_invalidate_count_;
120 bool need_begin_frame_; 118 bool need_begin_frame_;
121 uint32_t did_activate_pending_tree_count_; 119 uint32_t did_activate_pending_tree_count_;
122 120
123 base::WeakPtrFactory<SynchronousCompositorHost> weak_ptr_factory_; 121 base::WeakPtrFactory<SynchronousCompositorHost> weak_ptr_factory_;
124 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost); 122 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost);
125 }; 123 };
126 124
127 } // namespace content 125 } // namespace content
128 126
129 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ 127 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698