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

Unified Diff: cc/surfaces/display.h

Issue 1304063014: cc: Plumbing for BeginFrameSource based on Surfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More use-after-free. Attempt to fix mojo. Created 5 years, 3 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/surfaces/display.h
diff --git a/cc/surfaces/display.h b/cc/surfaces/display.h
index b849b461afb69bbf506b9a330635e8e3edc7d171..3873d133cec14b1da355b57734e51d36d9d627fe 100644
--- a/cc/surfaces/display.h
+++ b/cc/surfaces/display.h
@@ -11,6 +11,7 @@
#include "cc/output/output_surface_client.h"
#include "cc/output/renderer.h"
#include "cc/resources/returned_resource.h"
+#include "cc/scheduler/begin_frame_source.h"
#include "cc/surfaces/display_scheduler.h"
#include "cc/surfaces/surface_aggregator.h"
#include "cc/surfaces/surface_id.h"
@@ -28,6 +29,7 @@ class Size;
namespace cc {
+class BeginFrameSource;
class DirectRenderer;
class DisplayClient;
class OutputSurface;
@@ -46,6 +48,7 @@ class TextureMailboxDeleter;
class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
public OutputSurfaceClient,
public RendererClient,
+ public SurfaceAggregatorClient,
public SurfaceDamageObserver {
public:
Display(DisplayClient* client,
@@ -66,6 +69,10 @@ class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
SurfaceId CurrentSurfaceId();
+ // SurfaceAggregatorClient implementation
+ void AddSurface(Surface* surface) override;
+ void RemoveSurface(Surface* surface) override;
+
// DisplaySchedulerClient implementation.
bool DrawAndSwap() override;

Powered by Google App Engine
This is Rietveld 408576698