Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
|
vmpstr
2017/02/07 22:46:19
nit: 2017
Fady Samuel
2017/02/08 00:52:49
Done.
| |
| 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 "cc/surfaces/surface_id.h" | |
| 9 | |
| 10 namespace cc { | |
| 11 | |
| 12 using SurfaceDependencies = std::unordered_set<SurfaceId, SurfaceIdHash>; | |
| 13 | |
| 14 class Surface; | |
| 15 | |
| 16 class PendingFrameObserver { | |
| 17 public: | |
| 18 virtual void OnSurfaceActivated(Surface* surface) = 0; | |
| 19 virtual void OnSurfaceChanged( | |
|
vmpstr
2017/02/07 22:46:19
Is this OnSurfaceDependenciesChanged or can surfac
Fady Samuel
2017/02/08 00:52:49
Done.
| |
| 20 Surface* surface, | |
| 21 const SurfaceDependencies& added_dependencies, | |
| 22 const SurfaceDependencies& removed_dependencies) = 0; | |
| 23 virtual void OnSurfaceDiscarded(Surface* surface) = 0; | |
| 24 | |
| 25 protected: | |
| 26 virtual ~PendingFrameObserver() {} | |
| 27 }; | |
| 28 | |
| 29 } // namespace cc | |
| 30 | |
| 31 #endif // CC_SURFACES_PENDING_FRAME_OBSERVER_H_ | |
| OLD | NEW |