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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 const scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; | 85 const scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; |
86 const int routing_id_; | 86 const int routing_id_; |
87 IPC::Sender* const sender_; | 87 IPC::Sender* const sender_; |
88 const bool async_input_; | 88 const bool async_input_; |
89 const bool use_in_process_zero_copy_software_draw_; | 89 const bool use_in_process_zero_copy_software_draw_; |
90 | 90 |
91 bool is_active_; | 91 bool is_active_; |
92 size_t bytes_limit_; | 92 size_t bytes_limit_; |
93 uint32_t output_surface_id_from_last_draw_; | 93 uint32_t output_surface_id_from_last_draw_; |
94 cc::ReturnedResourceArray returned_resources_; | 94 cc::ReturnedResourceArray returned_resources_; |
95 scoped_ptr<SharedMemoryWithSize> software_draw_shm_; | 95 std::unique_ptr<SharedMemoryWithSize> software_draw_shm_; |
96 | 96 |
97 // Updated by both renderer and browser. | 97 // Updated by both renderer and browser. |
98 gfx::ScrollOffset root_scroll_offset_; | 98 gfx::ScrollOffset root_scroll_offset_; |
99 bool root_scroll_offset_updated_by_browser_; | 99 bool root_scroll_offset_updated_by_browser_; |
100 | 100 |
101 // From renderer. | 101 // From renderer. |
102 uint32_t renderer_param_version_; | 102 uint32_t renderer_param_version_; |
103 bool need_animate_scroll_; | 103 bool need_animate_scroll_; |
104 uint32_t need_invalidate_count_; | 104 uint32_t need_invalidate_count_; |
105 bool need_begin_frame_; | 105 bool need_begin_frame_; |
106 uint32_t did_activate_pending_tree_count_; | 106 uint32_t did_activate_pending_tree_count_; |
107 | 107 |
108 base::WeakPtrFactory<SynchronousCompositorHost> weak_ptr_factory_; | 108 base::WeakPtrFactory<SynchronousCompositorHost> weak_ptr_factory_; |
109 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost); | 109 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost); |
110 }; | 110 }; |
111 | 111 |
112 } // namespace content | 112 } // namespace content |
113 | 113 |
114 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ | 114 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ |
OLD | NEW |