| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CC_SURFACES_PENDING_SURFACE_OBSERVER_H_ |
| 6 #define CC_SURFACES_PENDING_SURFACE_OBSERVER_H_ |
| 7 |
| 8 #include "cc/surfaces/surface_id.h" |
| 9 |
| 10 namespace cc { |
| 11 |
| 12 using SurfaceDependencies = std::set<SurfaceId>; |
| 13 |
| 14 class Surface; |
| 15 |
| 16 class PendingSurfaceObserver { |
| 17 public: |
| 18 virtual void OnSurfaceActivated(Surface* pending_surface) = 0; |
| 19 virtual void OnSurfaceChanged( |
| 20 Surface* pending_surface, |
| 21 const SurfaceDependencies& added_dependencies, |
| 22 const SurfaceDependencies& removed_dependencies) = 0; |
| 23 virtual void OnSurfaceDiscarded(Surface* pending_surface) = 0; |
| 24 |
| 25 protected: |
| 26 virtual ~PendingSurfaceObserver() {} |
| 27 }; |
| 28 |
| 29 } // namespace cc |
| 30 |
| 31 #endif // CC_SURFACES_PENDING_SURFACE_OBSERVER_H_ |
| OLD | NEW |