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

Unified Diff: cc/output/output_surface_client.h

Issue 199523002: cc: Throttle swaps in Scheduler instead of OutputSurface (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: WIP: pulling FRC out of OS Created 6 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
Index: cc/output/output_surface_client.h
diff --git a/cc/output/output_surface_client.h b/cc/output/output_surface_client.h
index 7e509a8269ec9f255ece21b101699ca1407c2109..ccfa12a2d25d7f0ccc7e585d45fb574f925af13e 100644
--- a/cc/output/output_surface_client.h
+++ b/cc/output/output_surface_client.h
@@ -11,6 +11,7 @@
#include "cc/base/cc_export.h"
#include "cc/output/begin_frame_args.h"
#include "cc/output/context_provider.h"
+#include "cc/scheduler/frame_rate_controller.h"
#include "ui/gfx/rect.h"
namespace gfx {
@@ -22,7 +23,7 @@ namespace cc {
class CompositorFrameAck;
struct ManagedMemoryPolicy;
-class CC_EXPORT OutputSurfaceClient {
+class CC_EXPORT OutputSurfaceClient : public BeginFrameSourceClient {
public:
// Called to synchronously re-initialize using the Context3D. Upon returning
// the compositor should be able to draw using GL what was previously
@@ -30,6 +31,8 @@ class CC_EXPORT OutputSurfaceClient {
virtual bool DeferredInitialize(
scoped_refptr<ContextProvider> offscreen_context_provider) = 0;
virtual void ReleaseGL() = 0;
+ virtual void CommitVSyncParameters(base::TimeTicks timebase,
+ base::TimeDelta interval);
virtual void SetNeedsRedrawRect(const gfx::Rect& damage_rect) = 0;
virtual void BeginImplFrame(const BeginFrameArgs& args) = 0;
virtual void DidSwapBuffers() = 0;

Powered by Google App Engine
This is Rietveld 408576698