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

Unified Diff: cc/output/output_surface_client.h

Issue 1821863002: Hook up ui::Compositor to Display's BeginFrameSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase; refactor mus output surface Created 4 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 | cc/surfaces/display.h » ('j') | cc/surfaces/display.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface_client.h
diff --git a/cc/output/output_surface_client.h b/cc/output/output_surface_client.h
index 8f7f36ee2044273a24cb077fefe39c54fda819d8..dae73582ced65317a09a701bbb5cf0e51bb23755 100644
--- a/cc/output/output_surface_client.h
+++ b/cc/output/output_surface_client.h
@@ -18,13 +18,20 @@ class Transform;
namespace cc {
+class BeginFrameSource;
class CompositorFrameAck;
struct ManagedMemoryPolicy;
class CC_EXPORT OutputSurfaceClient {
public:
+ // TODO(enne): Remove this in favor of using SetBeginFrameSource.
virtual void CommitVSyncParameters(base::TimeTicks timebase,
sunnyps 2016/04/01 22:35:25 nit: This only calls CommitVSyncParameters on the
enne (OOO) 2016/04/02 00:18:38 I think you're going to need to be more specific w
sunnyps 2016/04/02 00:47:15 Sorry for the confusion, I thought I was looking a
enne (OOO) 2016/04/04 18:12:32 Oh! Good thought. Done. :)
base::TimeDelta interval) = 0;
+ // Pass the begin frame source for the client to observe. Client does not own
+ // the BeginFrameSource. OutputSurface should call this once after binding to
+ // the client and then call again with a null while detaching.
+ virtual void SetBeginFrameSource(BeginFrameSource* source) = 0;
+
virtual void SetNeedsRedrawRect(const gfx::Rect& damage_rect) = 0;
virtual void DidSwapBuffers() = 0;
virtual void DidSwapBuffersComplete() = 0;
@@ -39,7 +46,7 @@ class CC_EXPORT OutputSurfaceClient {
// valid for the lifetime of the OutputSurfaceClient or until unregisted --
// use SetTreeActivationCallback(base::Closure()) to unregister it.
virtual void SetTreeActivationCallback(const base::Closure& callback) = 0;
- // This allows the output surface to ask it's client for a draw.
+ // This allows the output surface to ask its client for a draw.
virtual void OnDraw(const gfx::Transform& transform,
const gfx::Rect& viewport,
const gfx::Rect& clip,
« no previous file with comments | « no previous file | cc/surfaces/display.h » ('j') | cc/surfaces/display.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698