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

Unified Diff: cc/surfaces/display.h

Issue 2403573002: cc: Introduce mechanism to observe CompositorFrames submitted to new surfaceIDs (Closed)
Patch Set: Updated changes missed Created 4 years, 2 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.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 abc3e73e092c9dc0d84cac40a485e8f78492df1e..40973fc15c747a3510fa94fe27412ef3313c56e7 100644
--- a/cc/surfaces/display.h
+++ b/cc/surfaces/display.h
@@ -51,7 +51,7 @@ class TextureMailboxDeleter;
// surface IDs used to draw into the display and deciding when to draw.
class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
public OutputSurfaceClient,
- public SurfaceDamageObserver {
+ public SurfaceObserver {
public:
// The |begin_frame_source| and |scheduler| may be null (together). In that
// case, DrawAndSwap must be called externally when needed.
@@ -99,8 +99,11 @@ class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
const gfx::Rect& viewport,
bool resourceless_software_draw) override;
- // SurfaceDamageObserver implementation.
+ // SurfaceObserver implementation.
void OnSurfaceDamaged(const SurfaceId& surface, bool* changed) override;
+ void OnSurfaceCreated(const SurfaceId& surface_id,
+ const gfx::Size& frame,
+ float device_scale_factor) override;
bool has_scheduler() const { return !!scheduler_; }
DirectRenderer* renderer_for_testing() const { return renderer_.get(); }
« no previous file with comments | « no previous file | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698