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

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

Issue 1970863002: sync compositor: Memory policy async IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: drop os id Created 4 years, 7 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 friend class SynchronousCompositorBase; 80 friend class SynchronousCompositorBase;
81 81
82 SynchronousCompositorHost(RenderWidgetHostViewAndroid* rwhva, 82 SynchronousCompositorHost(RenderWidgetHostViewAndroid* rwhva,
83 SynchronousCompositorClient* client, 83 SynchronousCompositorClient* client,
84 bool async_input, 84 bool async_input,
85 bool use_in_proc_software_draw); 85 bool use_in_proc_software_draw);
86 void PopulateCommonParams(SyncCompositorCommonBrowserParams* params); 86 void PopulateCommonParams(SyncCompositorCommonBrowserParams* params);
87 void ProcessCommonParams(const SyncCompositorCommonRendererParams& params); 87 void ProcessCommonParams(const SyncCompositorCommonRendererParams& params);
88 void UpdateNeedsBeginFrames(); 88 void UpdateNeedsBeginFrames();
89 void UpdateFrameMetaData(const cc::CompositorFrameMetadata& frame_metadata); 89 void UpdateFrameMetaData(const cc::CompositorFrameMetadata& frame_metadata);
90 void OutputSurfaceCreated();
90 void OnOverScroll(const SyncCompositorCommonRendererParams& params, 91 void OnOverScroll(const SyncCompositorCommonRendererParams& params,
91 const DidOverscrollParams& over_scroll_params); 92 const DidOverscrollParams& over_scroll_params);
92 void SendAsyncCompositorStateIfNeeded(); 93 void SendAsyncCompositorStateIfNeeded();
93 void UpdateStateTask(); 94 void UpdateStateTask();
94 bool DemandDrawSwInProc(SkCanvas* canvas); 95 bool DemandDrawSwInProc(SkCanvas* canvas);
95 void SetSoftwareDrawSharedMemoryIfNeeded(size_t stride, size_t buffer_size); 96 void SetSoftwareDrawSharedMemoryIfNeeded(size_t stride, size_t buffer_size);
96 void SendZeroMemory(); 97 void SendZeroMemory();
97 98
98 RenderWidgetHostViewAndroid* const rwhva_; 99 RenderWidgetHostViewAndroid* const rwhva_;
99 SynchronousCompositorClient* const client_; 100 SynchronousCompositorClient* const client_;
(...skipping 18 matching lines...) Expand all
118 bool need_begin_frame_; 119 bool need_begin_frame_;
119 uint32_t did_activate_pending_tree_count_; 120 uint32_t did_activate_pending_tree_count_;
120 121
121 base::WeakPtrFactory<SynchronousCompositorHost> weak_ptr_factory_; 122 base::WeakPtrFactory<SynchronousCompositorHost> weak_ptr_factory_;
122 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost); 123 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost);
123 }; 124 };
124 125
125 } // namespace content 126 } // namespace content
126 127
127 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ 128 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698