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

Side by Side Diff: content/renderer/android/synchronous_compositor_proxy.h

Issue 2160743002: sync compositor: Reduce begin frame sync IPC overhead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clang format Created 4 years, 4 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_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_ 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_
6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_ 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 // SynchronousCompositorOutputSurfaceClient overrides. 60 // SynchronousCompositorOutputSurfaceClient overrides.
61 void DidActivatePendingTree() override; 61 void DidActivatePendingTree() override;
62 void Invalidate() override; 62 void Invalidate() override;
63 void SwapBuffers(uint32_t output_surface_id, 63 void SwapBuffers(uint32_t output_surface_id,
64 cc::CompositorFrame frame) override; 64 cc::CompositorFrame frame) override;
65 65
66 void SetOutputSurface(SynchronousCompositorOutputSurface* output_surface); 66 void SetOutputSurface(SynchronousCompositorOutputSurface* output_surface);
67 void OnMessageReceived(const IPC::Message& message); 67 void OnMessageReceived(const IPC::Message& message);
68 bool Send(IPC::Message* message); 68 bool Send(IPC::Message* message);
69 void PopulateCommonParams(SyncCompositorCommonRendererParams* params) const;
69 70
70 private: 71 private:
71 struct SharedMemoryWithSize; 72 struct SharedMemoryWithSize;
72 73
73 // IPC handlers. 74 // IPC handlers.
74 void PopulateCommonParams(SyncCompositorCommonRendererParams* params) const;
75 void OnComputeScroll(base::TimeTicks animation_time); 75 void OnComputeScroll(base::TimeTicks animation_time);
76 void DemandDrawHw(const SyncCompositorDemandDrawHwParams& params, 76 void DemandDrawHw(const SyncCompositorDemandDrawHwParams& params,
77 IPC::Message* reply_message); 77 IPC::Message* reply_message);
78 void SetSharedMemory( 78 void SetSharedMemory(
79 const SyncCompositorSetSharedMemoryParams& params, 79 const SyncCompositorSetSharedMemoryParams& params,
80 bool* success, 80 bool* success,
81 SyncCompositorCommonRendererParams* common_renderer_params); 81 SyncCompositorCommonRendererParams* common_renderer_params);
82 void ZeroSharedMemory(); 82 void ZeroSharedMemory();
83 void DemandDrawSw(const SyncCompositorDemandDrawSwParams& params, 83 void DemandDrawSw(const SyncCompositorDemandDrawSwParams& params,
84 IPC::Message* reply_message); 84 IPC::Message* reply_message);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 bool need_animate_scroll_; 122 bool need_animate_scroll_;
123 uint32_t need_invalidate_count_; 123 uint32_t need_invalidate_count_;
124 uint32_t did_activate_pending_tree_count_; 124 uint32_t did_activate_pending_tree_count_;
125 125
126 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorProxy); 126 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorProxy);
127 }; 127 };
128 128
129 } // namespace content 129 } // namespace content
130 130
131 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_ 131 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_
OLDNEW
« no previous file with comments | « content/renderer/android/synchronous_compositor_filter.cc ('k') | content/renderer/android/synchronous_compositor_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698