| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |