| 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_TREES_SWAP_PROMISE_MANAGER_H_ | 5 #ifndef CC_TREES_SWAP_PROMISE_MANAGER_H_ |
| 6 #define CC_TREES_SWAP_PROMISE_MANAGER_H_ | 6 #define CC_TREES_SWAP_PROMISE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "cc/base/cc_export.h" | 12 #include "cc/cc_export.h" |
| 13 #include "cc/output/swap_promise.h" | 13 #include "cc/output/swap_promise.h" |
| 14 | 14 |
| 15 namespace cc { | 15 namespace cc { |
| 16 class SwapPromise; | 16 class SwapPromise; |
| 17 class SwapPromiseMonitor; | 17 class SwapPromiseMonitor; |
| 18 | 18 |
| 19 class CC_EXPORT SwapPromiseManager { | 19 class CC_EXPORT SwapPromiseManager { |
| 20 public: | 20 public: |
| 21 SwapPromiseManager(); | 21 SwapPromiseManager(); |
| 22 ~SwapPromiseManager(); | 22 ~SwapPromiseManager(); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 49 private: | 49 private: |
| 50 std::vector<std::unique_ptr<SwapPromise>> swap_promise_list_; | 50 std::vector<std::unique_ptr<SwapPromise>> swap_promise_list_; |
| 51 std::set<SwapPromiseMonitor*> swap_promise_monitors_; | 51 std::set<SwapPromiseMonitor*> swap_promise_monitors_; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(SwapPromiseManager); | 53 DISALLOW_COPY_AND_ASSIGN(SwapPromiseManager); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace cc | 56 } // namespace cc |
| 57 | 57 |
| 58 #endif // CC_TREES_SWAP_PROMISE_MANAGER_H_ | 58 #endif // CC_TREES_SWAP_PROMISE_MANAGER_H_ |
| OLD | NEW |