| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 void OnComputeScroll(base::TimeTicks animation_time) override; | 68 void OnComputeScroll(base::TimeTicks animation_time) override; |
| 69 | 69 |
| 70 void DidOverscroll(const ui::DidOverscrollParams& over_scroll_params); | 70 void DidOverscroll(const ui::DidOverscrollParams& over_scroll_params); |
| 71 void DidSendBeginFrame(ui::WindowAndroid* window_android); | 71 void DidSendBeginFrame(ui::WindowAndroid* window_android); |
| 72 bool OnMessageReceived(const IPC::Message& message); | 72 bool OnMessageReceived(const IPC::Message& message); |
| 73 | 73 |
| 74 // Called by SynchronousCompositorObserver. | 74 // Called by SynchronousCompositorObserver. |
| 75 int routing_id() const { return routing_id_; } | 75 int routing_id() const { return routing_id_; } |
| 76 void ProcessCommonParams(const SyncCompositorCommonRendererParams& params); | 76 void ProcessCommonParams(const SyncCompositorCommonRendererParams& params); |
| 77 | 77 |
| 78 SynchronousCompositorClient* client() { return client_; } |
| 79 |
| 78 private: | 80 private: |
| 79 class ScopedSendZeroMemory; | 81 class ScopedSendZeroMemory; |
| 80 struct SharedMemoryWithSize; | 82 struct SharedMemoryWithSize; |
| 81 friend class ScopedSetZeroMemory; | 83 friend class ScopedSetZeroMemory; |
| 82 friend class SynchronousCompositorBase; | 84 friend class SynchronousCompositorBase; |
| 83 | 85 |
| 84 SynchronousCompositorHost(RenderWidgetHostViewAndroid* rwhva, | 86 SynchronousCompositorHost(RenderWidgetHostViewAndroid* rwhva, |
| 85 SynchronousCompositorClient* client, | 87 SynchronousCompositorClient* client, |
| 86 bool use_in_proc_software_draw); | 88 bool use_in_proc_software_draw); |
| 87 void UpdateFrameMetaData(cc::CompositorFrameMetadata frame_metadata); | 89 void UpdateFrameMetaData(cc::CompositorFrameMetadata frame_metadata); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 110 bool need_animate_scroll_; | 112 bool need_animate_scroll_; |
| 111 uint32_t need_invalidate_count_; | 113 uint32_t need_invalidate_count_; |
| 112 uint32_t did_activate_pending_tree_count_; | 114 uint32_t did_activate_pending_tree_count_; |
| 113 | 115 |
| 114 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost); | 116 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost); |
| 115 }; | 117 }; |
| 116 | 118 |
| 117 } // namespace content | 119 } // namespace content |
| 118 | 120 |
| 119 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ | 121 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ |
| OLD | NEW |