| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 private: | 72 private: |
| 73 class ScopedSendZeroMemory; | 73 class ScopedSendZeroMemory; |
| 74 struct SharedMemoryWithSize; | 74 struct SharedMemoryWithSize; |
| 75 friend class ScopedSetZeroMemory; | 75 friend class ScopedSetZeroMemory; |
| 76 friend class SynchronousCompositorBase; | 76 friend class SynchronousCompositorBase; |
| 77 | 77 |
| 78 SynchronousCompositorHost(RenderWidgetHostViewAndroid* rwhva, | 78 SynchronousCompositorHost(RenderWidgetHostViewAndroid* rwhva, |
| 79 SynchronousCompositorClient* client, | 79 SynchronousCompositorClient* client, |
| 80 bool use_in_proc_software_draw); | 80 bool use_in_proc_software_draw); |
| 81 void ProcessCommonParams(const SyncCompositorCommonRendererParams& params); | 81 void ProcessCommonParams(const SyncCompositorCommonRendererParams& params); |
| 82 void UpdateFrameMetaData(const cc::CompositorFrameMetadata& frame_metadata); | 82 void UpdateFrameMetaData(cc::CompositorFrameMetadata frame_metadata); |
| 83 void OutputSurfaceCreated(); | 83 void OutputSurfaceCreated(); |
| 84 bool DemandDrawSwInProc(SkCanvas* canvas); | 84 bool DemandDrawSwInProc(SkCanvas* canvas); |
| 85 void SetSoftwareDrawSharedMemoryIfNeeded(size_t stride, size_t buffer_size); | 85 void SetSoftwareDrawSharedMemoryIfNeeded(size_t stride, size_t buffer_size); |
| 86 void SendZeroMemory(); | 86 void SendZeroMemory(); |
| 87 | 87 |
| 88 RenderWidgetHostViewAndroid* const rwhva_; | 88 RenderWidgetHostViewAndroid* const rwhva_; |
| 89 SynchronousCompositorClient* const client_; | 89 SynchronousCompositorClient* const client_; |
| 90 const scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; | 90 const scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; |
| 91 const int process_id_; | 91 const int process_id_; |
| 92 const int routing_id_; | 92 const int routing_id_; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 104 bool need_animate_scroll_; | 104 bool need_animate_scroll_; |
| 105 uint32_t need_invalidate_count_; | 105 uint32_t need_invalidate_count_; |
| 106 uint32_t did_activate_pending_tree_count_; | 106 uint32_t did_activate_pending_tree_count_; |
| 107 | 107 |
| 108 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost); | 108 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost); |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 } // namespace content | 111 } // namespace content |
| 112 | 112 |
| 113 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ | 113 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ |
| OLD | NEW |