| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 private: | 84 private: |
| 85 class ScopedSendZeroMemory; | 85 class ScopedSendZeroMemory; |
| 86 struct SharedMemoryWithSize; | 86 struct SharedMemoryWithSize; |
| 87 friend class ScopedSetZeroMemory; | 87 friend class ScopedSetZeroMemory; |
| 88 friend class SynchronousCompositorBase; | 88 friend class SynchronousCompositorBase; |
| 89 | 89 |
| 90 SynchronousCompositorHost(RenderWidgetHostViewAndroid* rwhva, | 90 SynchronousCompositorHost(RenderWidgetHostViewAndroid* rwhva, |
| 91 SynchronousCompositorClient* client, | 91 SynchronousCompositorClient* client, |
| 92 bool use_in_proc_software_draw); | 92 bool use_in_proc_software_draw); |
| 93 void UpdateFrameMetaData(cc::CompositorFrameMetadata frame_metadata); | 93 void UpdateFrameMetaData(cc::CompositorFrameMetadata frame_metadata); |
| 94 void OutputSurfaceCreated(); | 94 void CompositorFrameSinkCreated(); |
| 95 bool DemandDrawSwInProc(SkCanvas* canvas); | 95 bool DemandDrawSwInProc(SkCanvas* canvas); |
| 96 void SetSoftwareDrawSharedMemoryIfNeeded(size_t stride, size_t buffer_size); | 96 void SetSoftwareDrawSharedMemoryIfNeeded(size_t stride, size_t buffer_size); |
| 97 void SendZeroMemory(); | 97 void SendZeroMemory(); |
| 98 SynchronousCompositor::Frame ProcessHardwareFrame( | 98 SynchronousCompositor::Frame ProcessHardwareFrame( |
| 99 uint32_t output_surface_id, | 99 uint32_t output_surface_id, |
| 100 cc::CompositorFrame compositor_frame); | 100 cc::CompositorFrame compositor_frame); |
| 101 bool DemandDrawHwReceiveFrame(const IPC::Message& message); | 101 bool DemandDrawHwReceiveFrame(const IPC::Message& message); |
| 102 | 102 |
| 103 RenderWidgetHostViewAndroid* const rwhva_; | 103 RenderWidgetHostViewAndroid* const rwhva_; |
| 104 SynchronousCompositorClient* const client_; | 104 SynchronousCompositorClient* const client_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 120 bool need_animate_scroll_; | 120 bool need_animate_scroll_; |
| 121 uint32_t need_invalidate_count_; | 121 uint32_t need_invalidate_count_; |
| 122 uint32_t did_activate_pending_tree_count_; | 122 uint32_t did_activate_pending_tree_count_; |
| 123 | 123 |
| 124 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost); | 124 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 } // namespace content | 127 } // namespace content |
| 128 | 128 |
| 129 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ | 129 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ |
| OLD | NEW |