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

Unified Diff: cc/output/output_surface.h

Issue 22354007: cc: Add queue of BeginFrames to support long deadlines. (Closed) Base URL: http://git.chromium.org/chromium/src.git@deferredCommit
Patch Set: Created 7 years, 4 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 | cc/output/output_surface.cc » ('j') | cc/output/output_surface.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface.h
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h
index 79dc0f621304a5f90eb7504a32e10c0611a237d4..9cd1df464d33d2a85e9e521fb39baadddaa32104 100644
--- a/cc/output/output_surface.h
+++ b/cc/output/output_surface.h
@@ -5,6 +5,8 @@
#ifndef CC_OUTPUT_OUTPUT_SURFACE_H_
#define CC_OUTPUT_OUTPUT_SURFACE_H_
+#include <deque>
+
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
@@ -182,6 +184,7 @@ class CC_EXPORT OutputSurface : public FrameRateControllerClient {
OutputSurfaceClient* client_;
friend class OutputSurfaceCallbacks;
+ void AddSkippedBeginFrame(const BeginFrameArgs& skipped);
void SetContext3D(scoped_ptr<WebKit::WebGraphicsContext3D> context3d);
void ResetContext3D();
void SetMemoryPolicy(const ManagedMemoryPolicy& policy,
@@ -189,7 +192,8 @@ class CC_EXPORT OutputSurface : public FrameRateControllerClient {
// This stores a BeginFrame that we couldn't process immediately, but might
// process retroactively in the near future.
- BeginFrameArgs skipped_begin_frame_args_;
+ std::deque<BeginFrameArgs> skipped_begin_frame_args_;
+ int consecutive_missed_deadlines_;
// check_for_retroactive_begin_frame_pending_ is used to avoid posting
// redundant checks for a retroactive BeginFrame.
« no previous file with comments | « no previous file | cc/output/output_surface.cc » ('j') | cc/output/output_surface.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698