Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: content/browser/android/synchronous_compositor_host.h

Issue 2337913003: Fork cc::OutputSurface into cc::CompositorFrameSink. (Closed)
Patch Set: cfsfork: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698