Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CC_SURFACES_PENDING_FRAME_OBSERVER_H_ | |
| 6 #define CC_SURFACES_PENDING_FRAME_OBSERVER_H_ | |
| 7 | |
| 8 #include "base/containers/flat_set.h" | |
| 9 #include "cc/surfaces/surface_id.h" | |
| 10 #include "cc/surfaces/surfaces_export.h" | |
| 11 | |
| 12 namespace cc { | |
| 13 | |
| 14 using SurfaceDependencies = base::flat_set<SurfaceId>; | |
| 15 | |
| 16 class Surface; | |
| 17 | |
| 18 class CC_SURFACES_EXPORT PendingFrameObserver { | |
|
rjkroege
2017/02/08 21:52:29
Add class comment
Fady Samuel
2017/02/08 23:39:57
Done.
| |
| 19 public: | |
| 20 // Called when a CompositorFrame within |surface| has activated. | |
| 21 virtual void OnSurfaceActivated(Surface* surface) = 0; | |
| 22 | |
| 23 // Called when the dependencies of a pending CompositorFrame within |surface| | |
| 24 // have changed. | |
| 25 virtual void OnSurfaceDependenciesChanged( | |
| 26 Surface* surface, | |
| 27 const SurfaceDependencies& added_dependencies, | |
| 28 const SurfaceDependencies& removed_dependencies) = 0; | |
| 29 | |
| 30 // Called when |surface| is being destroyed. | |
| 31 virtual void OnSurfaceDiscarded(Surface* surface) = 0; | |
| 32 | |
| 33 protected: | |
| 34 virtual ~PendingFrameObserver() {} | |
|
vmpstr
2017/02/08 19:25:39
= default?
Fady Samuel
2017/02/08 23:39:57
Done.
| |
| 35 }; | |
| 36 | |
| 37 } // namespace cc | |
| 38 | |
| 39 #endif // CC_SURFACES_PENDING_FRAME_OBSERVER_H_ | |
| OLD | NEW |