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

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

Issue 2263043002: android_webview: Let AwContents manage TouchHandleDrawable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix build 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void OnComputeScroll(base::TimeTicks animation_time) override; 68 void OnComputeScroll(base::TimeTicks animation_time) override;
69 69
70 void DidOverscroll(const ui::DidOverscrollParams& over_scroll_params); 70 void DidOverscroll(const ui::DidOverscrollParams& over_scroll_params);
71 void DidSendBeginFrame(ui::WindowAndroid* window_android); 71 void DidSendBeginFrame(ui::WindowAndroid* window_android);
72 bool OnMessageReceived(const IPC::Message& message); 72 bool OnMessageReceived(const IPC::Message& message);
73 73
74 // Called by SynchronousCompositorObserver. 74 // Called by SynchronousCompositorObserver.
75 int routing_id() const { return routing_id_; } 75 int routing_id() const { return routing_id_; }
76 void ProcessCommonParams(const SyncCompositorCommonRendererParams& params); 76 void ProcessCommonParams(const SyncCompositorCommonRendererParams& params);
77 77
78 SynchronousCompositorClient* client() { return client_; }
79
78 private: 80 private:
79 class ScopedSendZeroMemory; 81 class ScopedSendZeroMemory;
80 struct SharedMemoryWithSize; 82 struct SharedMemoryWithSize;
81 friend class ScopedSetZeroMemory; 83 friend class ScopedSetZeroMemory;
82 friend class SynchronousCompositorBase; 84 friend class SynchronousCompositorBase;
83 85
84 SynchronousCompositorHost(RenderWidgetHostViewAndroid* rwhva, 86 SynchronousCompositorHost(RenderWidgetHostViewAndroid* rwhva,
85 SynchronousCompositorClient* client, 87 SynchronousCompositorClient* client,
86 bool use_in_proc_software_draw); 88 bool use_in_proc_software_draw);
87 void UpdateFrameMetaData(cc::CompositorFrameMetadata frame_metadata); 89 void UpdateFrameMetaData(cc::CompositorFrameMetadata frame_metadata);
(...skipping 22 matching lines...) Expand all
110 bool need_animate_scroll_; 112 bool need_animate_scroll_;
111 uint32_t need_invalidate_count_; 113 uint32_t need_invalidate_count_;
112 uint32_t did_activate_pending_tree_count_; 114 uint32_t did_activate_pending_tree_count_;
113 115
114 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost); 116 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost);
115 }; 117 };
116 118
117 } // namespace content 119 } // namespace content
118 120
119 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ 121 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698