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

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

Issue 2457333002: sync compositor: Keep draw after ComputeScroll synchronous (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | content/browser/android/synchronous_compositor_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 const int process_id_; 104 const int process_id_;
105 const int routing_id_; 105 const int routing_id_;
106 IPC::Sender* const sender_; 106 IPC::Sender* const sender_;
107 const bool use_in_process_zero_copy_software_draw_; 107 const bool use_in_process_zero_copy_software_draw_;
108 108
109 bool registered_with_filter_ = false; 109 bool registered_with_filter_ = false;
110 110
111 size_t bytes_limit_; 111 size_t bytes_limit_;
112 std::unique_ptr<SharedMemoryWithSize> software_draw_shm_; 112 std::unique_ptr<SharedMemoryWithSize> software_draw_shm_;
113 113
114 // Indicates the next draw needs to be synchronous
115 bool compute_scroll_needs_synchronous_draw_ = false;
116
114 // Updated by both renderer and browser. 117 // Updated by both renderer and browser.
115 gfx::ScrollOffset root_scroll_offset_; 118 gfx::ScrollOffset root_scroll_offset_;
116 119
117 // From renderer. 120 // From renderer.
118 uint32_t renderer_param_version_; 121 uint32_t renderer_param_version_;
119 bool need_animate_scroll_; 122 bool need_animate_scroll_;
120 uint32_t need_invalidate_count_; 123 uint32_t need_invalidate_count_;
121 uint32_t did_activate_pending_tree_count_; 124 uint32_t did_activate_pending_tree_count_;
122 125
123 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost); 126 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost);
124 }; 127 };
125 128
126 } // namespace content 129 } // namespace content
127 130
128 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ 131 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/android/synchronous_compositor_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698