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 COMPONENTS_VIZ_FRAME_SINKS_FRAME_EVICTOR_H_ | 5 #ifndef COMPONENTS_VIZ_FRAME_SINKS_FRAME_EVICTOR_H_ |
6 #define COMPONENTS_VIZ_FRAME_SINKS_FRAME_EVICTOR_H_ | 6 #define COMPONENTS_VIZ_FRAME_SINKS_FRAME_EVICTOR_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/viz/frame_sinks/frame_eviction_manager.h" | 9 #include "components/viz/frame_sinks/frame_eviction_manager.h" |
10 #include "components/viz/frame_sinks/viz_export.h" | 10 #include "components/viz/viz_export.h" |
11 | 11 |
12 namespace viz { | 12 namespace viz { |
13 | 13 |
14 class VIZ_EXPORT FrameEvictorClient { | 14 class VIZ_EXPORT FrameEvictorClient { |
15 public: | 15 public: |
16 virtual ~FrameEvictorClient() {} | 16 virtual ~FrameEvictorClient() {} |
17 virtual void EvictDelegatedFrame() = 0; | 17 virtual void EvictDelegatedFrame() = 0; |
18 }; | 18 }; |
19 | 19 |
20 class VIZ_EXPORT FrameEvictor : public FrameEvictionManagerClient { | 20 class VIZ_EXPORT FrameEvictor : public FrameEvictionManagerClient { |
(...skipping 16 matching lines...) Expand all Loading... |
37 FrameEvictorClient* client_; | 37 FrameEvictorClient* client_; |
38 bool has_frame_; | 38 bool has_frame_; |
39 bool visible_; | 39 bool visible_; |
40 | 40 |
41 DISALLOW_COPY_AND_ASSIGN(FrameEvictor); | 41 DISALLOW_COPY_AND_ASSIGN(FrameEvictor); |
42 }; | 42 }; |
43 | 43 |
44 } // namespace viz | 44 } // namespace viz |
45 | 45 |
46 #endif // COMPONENTS_VIZ_FRAME_SINKS_FRAME_EVICTOR_H_ | 46 #endif // COMPONENTS_VIZ_FRAME_SINKS_FRAME_EVICTOR_H_ |
OLD | NEW |