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

Unified 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, 9 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_android.h
diff --git a/content/browser/renderer_host/render_widget_host_view_android.h b/content/browser/renderer_host/render_widget_host_view_android.h
index 76c4de05511b959e1a9ffc91a5568c76a4314b89..f87762d546fd67173bfe1127f4927d8a7168fd47 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.h
+++ b/content/browser/renderer_host/render_widget_host_view_android.h
@@ -133,6 +133,7 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
void DidCreateNewRendererCompositorFrameSink() override;
void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
cc::CompositorFrame frame) override;
+ void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack) override;
void ClearCompositorFrame() override;
void SetIsInVR(bool is_in_vr) override;
bool IsInVR() const override;
@@ -304,6 +305,7 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
};
void AddBeginFrameRequest(BeginFrameRequestType request);
void ClearBeginFrameRequest(BeginFrameRequestType request);
+ void AcknowledgeBeginFrame(const cc::BeginFrameAck& ack);
void StartObservingRootWindow();
void StopObservingRootWindow();
void SendBeginFrame(cc::BeginFrameArgs args);
@@ -322,6 +324,8 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
// The begin frame source being observed. Null if none.
cc::BeginFrameSource* begin_frame_source_;
cc::BeginFrameArgs last_begin_frame_args_;
+ uint32_t latest_confirmed_begin_frame_source_id_;
+ uint64_t latest_confirmed_begin_frame_sequence_number_;
// Indicates whether and for what reason a request for begin frames has been
// issued. Used to control action dispatch at the next |OnBeginFrame()| call.
« 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