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

Unified Diff: cc/surfaces/display.h

Issue 2854163003: [cc] Plumb BeginFrameAcks through SurfaceManager to DisplayScheduler. (Closed)
Patch Set: fix clang compile error Created 3 years, 7 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 | « cc/surfaces/direct_compositor_frame_sink_unittest.cc ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display.h
diff --git a/cc/surfaces/display.h b/cc/surfaces/display.h
index df0f717061c6ead464fc4c285c6b5c2eb0d10ecd..5e0142a42fbd6b7d2937b377f9ed5f542dc868db 100644
--- a/cc/surfaces/display.h
+++ b/cc/surfaces/display.h
@@ -40,7 +40,6 @@ class RendererSettings;
class ResourceProvider;
class SharedBitmapManager;
class SoftwareRenderer;
-class SurfaceAggregator;
class TextureMailboxDeleter;
// A Display produces a surface that can be used to draw to a physical display
@@ -78,6 +77,7 @@ class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
// DisplaySchedulerClient implementation.
bool DrawAndSwap() override;
+ bool SurfaceHasUndrawnFrame(const SurfaceId& surface_id) const override;
// OutputSurfaceClient implementation.
void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override;
@@ -86,9 +86,14 @@ class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
const gpu::TextureInUseResponses& responses) override;
// SurfaceObserver implementation.
- void OnSurfaceDamaged(const SurfaceId& surface, bool* changed) override;
+ void OnSurfaceDamaged(const SurfaceId& surface,
+ const BeginFrameAck& ack,
+ bool* changed) override;
void OnSurfaceCreated(const SurfaceInfo& surface_info) override;
void OnSurfaceDiscarded(const SurfaceId& surface_id) override;
+ void OnSurfaceDestroyed(const SurfaceId& surface_id) override;
+ void OnSurfaceDamageExpected(const SurfaceId& surface_id,
+ const BeginFrameArgs& args) override;
bool has_scheduler() const { return !!scheduler_; }
DirectRenderer* renderer_for_testing() const { return renderer_.get(); }
« no previous file with comments | « cc/surfaces/direct_compositor_frame_sink_unittest.cc ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698