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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.h

Issue 2527283003: cc: Introduce BeginFrame sequence numbers and acknowledgements.
Patch Set: Address Brian's comments. Created 4 years 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
Index: content/browser/renderer_host/render_widget_host_view_aura.h
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.h b/content/browser/renderer_host/render_widget_host_view_aura.h
index 3fb3a3d1fcbaa155e2e740913f1ef7f0374de06d..a805102657f172a0b033dabdd3c2a1cd97f855ba 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.h
+++ b/content/browser/renderer_host/render_widget_host_view_aura.h
@@ -21,6 +21,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "build/build_config.h"
+#include "cc/output/begin_frame_args.h"
#include "cc/scheduler/begin_frame_source.h"
#include "content/browser/accessibility/browser_accessibility_manager.h"
#include "content/browser/compositor/image_transport_factory.h"
@@ -166,6 +167,7 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
void UnlockMouse() override;
void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id,
cc::CompositorFrame frame) override;
+ void OnBeginFrameDidNotDraw(const cc::BeginFrameAck& ack) override;
void ClearCompositorFrame() override;
void DidStopFlinging() override;
void OnDidNavigateMainFrameToNewPage() override;
@@ -526,6 +528,7 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
// The begin frame source being observed. Null if none.
cc::BeginFrameSource* begin_frame_source_;
cc::BeginFrameArgs last_begin_frame_args_;
+ uint64_t latest_confirmed_frame_;
// Whether a request for begin frames has been issued.
bool needs_begin_frames_;

Powered by Google App Engine
This is Rietveld 408576698