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

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: 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
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 OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, 133 void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id,
134 const cc::LocalSurfaceId& local_surface_id, 134 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 void ComputeEventLatencyOSTouchHistograms(const ui::MotionEvent& event); 326 void ComputeEventLatencyOSTouchHistograms(const ui::MotionEvent& event);
326 327
327 void CreateOverscrollControllerIfPossible(); 328 void CreateOverscrollControllerIfPossible();
328 329
329 // The model object. 330 // The model object.
330 RenderWidgetHostImpl* host_; 331 RenderWidgetHostImpl* host_;
331 332
332 // The begin frame source being observed. Null if none. 333 // The begin frame source being observed. Null if none.
333 cc::BeginFrameSource* begin_frame_source_; 334 cc::BeginFrameSource* begin_frame_source_;
334 cc::BeginFrameArgs last_begin_frame_args_; 335 cc::BeginFrameArgs last_begin_frame_args_;
336 uint32_t latest_confirmed_begin_frame_source_id_;
337 uint64_t latest_confirmed_begin_frame_sequence_number_;
335 338
336 // Indicates whether and for what reason a request for begin frames has been 339 // Indicates whether and for what reason a request for begin frames has been
337 // issued. Used to control action dispatch at the next |OnBeginFrame()| call. 340 // issued. Used to control action dispatch at the next |OnBeginFrame()| call.
338 uint32_t outstanding_begin_frame_requests_; 341 uint32_t outstanding_begin_frame_requests_;
339 342
340 bool is_showing_; 343 bool is_showing_;
341 344
342 // Window-specific bits that affect widget visibility. 345 // Window-specific bits that affect widget visibility.
343 bool is_window_visible_; 346 bool is_window_visible_;
344 bool is_window_activity_started_; 347 bool is_window_activity_started_;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 float prev_bottom_shown_pix_; 406 float prev_bottom_shown_pix_;
404 407
405 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 408 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
406 409
407 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 410 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
408 }; 411 };
409 412
410 } // namespace content 413 } // namespace content
411 414
412 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 415 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698