| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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_TEST_FAKE_SURFACE_OBSERVER_H_ | 5 #ifndef CC_TEST_FAKE_SURFACE_OBSERVER_H_ |
| 6 #define CC_TEST_FAKE_SURFACE_OBSERVER_H_ | 6 #define CC_TEST_FAKE_SURFACE_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/containers/flat_set.h" | 8 #include "base/containers/flat_set.h" |
| 9 #include "cc/output/begin_frame_args.h" | 9 #include "cc/output/begin_frame_args.h" |
| 10 #include "cc/surfaces/surface_id.h" | 10 #include "cc/surfaces/surface_id.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 private: | 35 private: |
| 36 // SurfaceObserver implementation: | 36 // SurfaceObserver implementation: |
| 37 void OnSurfaceDamaged(const SurfaceId& surface_id, | 37 void OnSurfaceDamaged(const SurfaceId& surface_id, |
| 38 const BeginFrameAck& ack, | 38 const BeginFrameAck& ack, |
| 39 bool* changed) override; | 39 bool* changed) override; |
| 40 void OnSurfaceCreated(const SurfaceInfo& surface_info) override; | 40 void OnSurfaceCreated(const SurfaceInfo& surface_info) override; |
| 41 void OnSurfaceDiscarded(const SurfaceId& surface_id) override {} | 41 void OnSurfaceDiscarded(const SurfaceId& surface_id) override {} |
| 42 void OnSurfaceDestroyed(const SurfaceId& surface_id) override {} | 42 void OnSurfaceDestroyed(const SurfaceId& surface_id) override {} |
| 43 void OnSurfaceDamageExpected(const SurfaceId& surface_id, | 43 void OnSurfaceDamageExpected(const SurfaceId& surface_id, |
| 44 const BeginFrameArgs& args) override {} | 44 const BeginFrameArgs& args) override {} |
| 45 void OnSurfaceWillDraw(const SurfaceId& surface_id) overide {} |
| 45 | 46 |
| 46 bool damage_display_; | 47 bool damage_display_; |
| 47 BeginFrameAck last_ack_; | 48 BeginFrameAck last_ack_; |
| 48 base::flat_set<SurfaceId> damaged_surfaces_; | 49 base::flat_set<SurfaceId> damaged_surfaces_; |
| 49 SurfaceId last_created_surface_id_; | 50 SurfaceId last_created_surface_id_; |
| 50 SurfaceInfo last_surface_info_; | 51 SurfaceInfo last_surface_info_; |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 } // namespace cc | 54 } // namespace cc |
| 54 | 55 |
| 55 #endif // CC_TEST_FAKE_SURFACE_OBSERVER_H_ | 56 #endif // CC_TEST_FAKE_SURFACE_OBSERVER_H_ |
| OLD | NEW |