OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_SURFACES_SURFACE_OBSERVER_H_ | 5 #ifndef CC_SURFACES_SURFACE_OBSERVER_H_ |
6 #define CC_SURFACES_SURFACE_OBSERVER_H_ | 6 #define CC_SURFACES_SURFACE_OBSERVER_H_ |
7 | 7 |
8 namespace cc { | 8 namespace cc { |
9 | 9 |
10 struct BeginFrameAck; | 10 struct BeginFrameAck; |
(...skipping 20 matching lines...) Expand all Loading... |
31 const BeginFrameAck& ack, | 31 const BeginFrameAck& ack, |
32 bool* changed) = 0; | 32 bool* changed) = 0; |
33 | 33 |
34 // Called when a surface is garbage-collected. | 34 // Called when a surface is garbage-collected. |
35 virtual void OnSurfaceDiscarded(const SurfaceId& surface_id) = 0; | 35 virtual void OnSurfaceDiscarded(const SurfaceId& surface_id) = 0; |
36 | 36 |
37 // Runs when a Surface's CompositorFrame producer has received a BeginFrame | 37 // Runs when a Surface's CompositorFrame producer has received a BeginFrame |
38 // and, thus, is expected to produce damage soon. | 38 // and, thus, is expected to produce damage soon. |
39 virtual void OnSurfaceDamageExpected(const SurfaceId& surface_id, | 39 virtual void OnSurfaceDamageExpected(const SurfaceId& surface_id, |
40 const BeginFrameArgs& args) = 0; | 40 const BeginFrameArgs& args) = 0; |
| 41 |
| 42 // Runs when SurfaceAggregator has added the surface to the Display Frame. |
| 43 virtual void OnSurfaceWillDraw(const SurfaceId& surface_id) = 0; |
41 }; | 44 }; |
42 | 45 |
43 } // namespace cc | 46 } // namespace cc |
44 | 47 |
45 #endif // CC_SURFACES_SURFACE_OBSERVER_H_ | 48 #endif // CC_SURFACES_SURFACE_OBSERVER_H_ |
OLD | NEW |