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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 2781103002: [cc] Forward BeginFrameAcks through RWHVAndroid / DFHAndroid. (Closed)
Patch Set: rebase Created 3 years, 8 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 void OnSetNeedsFlushInput() override; 126 void OnSetNeedsFlushInput() override;
127 void GestureEventAck(const blink::WebGestureEvent& event, 127 void GestureEventAck(const blink::WebGestureEvent& event,
128 InputEventAckState ack_result) override; 128 InputEventAckState ack_result) override;
129 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( 129 BrowserAccessibilityManager* CreateBrowserAccessibilityManager(
130 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; 130 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override;
131 bool LockMouse() override; 131 bool LockMouse() override;
132 void UnlockMouse() override; 132 void UnlockMouse() override;
133 void DidCreateNewRendererCompositorFrameSink() override; 133 void DidCreateNewRendererCompositorFrameSink() override;
134 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, 134 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
135 cc::CompositorFrame frame) override; 135 cc::CompositorFrame frame) override;
136 void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack) override;
136 void ClearCompositorFrame() override; 137 void ClearCompositorFrame() override;
137 void SetIsInVR(bool is_in_vr) override; 138 void SetIsInVR(bool is_in_vr) override;
138 bool IsInVR() const override; 139 bool IsInVR() const override;
139 void DidOverscroll(const ui::DidOverscrollParams& params) override; 140 void DidOverscroll(const ui::DidOverscrollParams& params) override;
140 void DidStopFlinging() override; 141 void DidStopFlinging() override;
141 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, 142 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels,
142 const SkBitmap& zoomed_bitmap) override; 143 const SkBitmap& zoomed_bitmap) override;
143 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() 144 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget()
144 override; 145 override;
145 void OnDidNavigateMainFrameToNewPage() override; 146 void OnDidNavigateMainFrameToNewPage() override;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 void DestroyDelegatedContent(); 298 void DestroyDelegatedContent();
298 void OnLostResources(); 299 void OnLostResources();
299 300
300 enum BeginFrameRequestType { 301 enum BeginFrameRequestType {
301 FLUSH_INPUT = 1 << 0, 302 FLUSH_INPUT = 1 << 0,
302 BEGIN_FRAME = 1 << 1, 303 BEGIN_FRAME = 1 << 1,
303 PERSISTENT_BEGIN_FRAME = 1 << 2 304 PERSISTENT_BEGIN_FRAME = 1 << 2
304 }; 305 };
305 void AddBeginFrameRequest(BeginFrameRequestType request); 306 void AddBeginFrameRequest(BeginFrameRequestType request);
306 void ClearBeginFrameRequest(BeginFrameRequestType request); 307 void ClearBeginFrameRequest(BeginFrameRequestType request);
308 void AcknowledgeBeginFrame(const cc::BeginFrameAck& ack);
307 void StartObservingRootWindow(); 309 void StartObservingRootWindow();
308 void StopObservingRootWindow(); 310 void StopObservingRootWindow();
309 void SendBeginFrame(cc::BeginFrameArgs args); 311 void SendBeginFrame(cc::BeginFrameArgs args);
310 bool Animate(base::TimeTicks frame_time); 312 bool Animate(base::TimeTicks frame_time);
311 void RequestDisallowInterceptTouchEvent(); 313 void RequestDisallowInterceptTouchEvent();
312 314
313 bool SyncCompositorOnMessageReceived(const IPC::Message& message); 315 bool SyncCompositorOnMessageReceived(const IPC::Message& message);
314 316
315 void ComputeEventLatencyOSTouchHistograms(const ui::MotionEvent& event); 317 void ComputeEventLatencyOSTouchHistograms(const ui::MotionEvent& event);
316 318
317 void CreateOverscrollControllerIfPossible(); 319 void CreateOverscrollControllerIfPossible();
318 320
319 // The model object. 321 // The model object.
320 RenderWidgetHostImpl* host_; 322 RenderWidgetHostImpl* host_;
321 323
322 // The begin frame source being observed. Null if none. 324 // The begin frame source being observed. Null if none.
323 cc::BeginFrameSource* begin_frame_source_; 325 cc::BeginFrameSource* begin_frame_source_;
324 cc::BeginFrameArgs last_begin_frame_args_; 326 cc::BeginFrameArgs last_begin_frame_args_;
327 uint32_t latest_confirmed_begin_frame_source_id_;
328 uint64_t latest_confirmed_begin_frame_sequence_number_;
325 329
326 // Indicates whether and for what reason a request for begin frames has been 330 // Indicates whether and for what reason a request for begin frames has been
327 // issued. Used to control action dispatch at the next |OnBeginFrame()| call. 331 // issued. Used to control action dispatch at the next |OnBeginFrame()| call.
328 uint32_t outstanding_begin_frame_requests_; 332 uint32_t outstanding_begin_frame_requests_;
329 333
330 bool is_showing_; 334 bool is_showing_;
331 335
332 // Window-specific bits that affect widget visibility. 336 // Window-specific bits that affect widget visibility.
333 bool is_window_visible_; 337 bool is_window_visible_;
334 bool is_window_activity_started_; 338 bool is_window_activity_started_;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 float prev_bottom_shown_pix_; 394 float prev_bottom_shown_pix_;
391 395
392 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 396 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
393 397
394 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 398 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
395 }; 399 };
396 400
397 } // namespace content 401 } // namespace content
398 402
399 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 403 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698