OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_COMMON_GPU_SYNC_POINT_MANAGER_H_ | 5 #ifndef CONTENT_COMMON_GPU_SYNC_POINT_MANAGER_H_ |
6 #define CONTENT_COMMON_GPU_SYNC_POINT_MANAGER_H_ | 6 #define CONTENT_COMMON_GPU_SYNC_POINT_MANAGER_H_ |
7 #pragma once | |
8 | 7 |
9 #include <vector> | 8 #include <vector> |
10 | 9 |
11 #include "base/callback.h" | 10 #include "base/callback.h" |
12 #include "base/hash_tables.h" | 11 #include "base/hash_tables.h" |
13 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
14 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
15 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
16 | 15 |
17 // This class manages the sync points, which allow cross-channel | 16 // This class manages the sync points, which allow cross-channel |
(...skipping 27 matching lines...) Expand all Loading... |
45 // Protects the 2 fields below. Note: callbacks shouldn't be called with this | 44 // Protects the 2 fields below. Note: callbacks shouldn't be called with this |
46 // held. | 45 // held. |
47 base::Lock lock_; | 46 base::Lock lock_; |
48 SyncPointMap sync_point_map_; | 47 SyncPointMap sync_point_map_; |
49 uint32 next_sync_point_; | 48 uint32 next_sync_point_; |
50 | 49 |
51 DISALLOW_COPY_AND_ASSIGN(SyncPointManager); | 50 DISALLOW_COPY_AND_ASSIGN(SyncPointManager); |
52 }; | 51 }; |
53 | 52 |
54 #endif // CONTENT_COMMON_GPU_SYNC_POINT_MANAGER_H_ | 53 #endif // CONTENT_COMMON_GPU_SYNC_POINT_MANAGER_H_ |
OLD | NEW |