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 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/hash_tables.h" | 11 #include "base/containers/hash_tables.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
14 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 // This class manages the sync points, which allow cross-channel | 18 // This class manages the sync points, which allow cross-channel |
19 // synchronization. | 19 // synchronization. |
20 class SyncPointManager : public base::RefCountedThreadSafe<SyncPointManager> { | 20 class SyncPointManager : public base::RefCountedThreadSafe<SyncPointManager> { |
21 public: | 21 public: |
(...skipping 27 matching lines...) Expand all Loading... |
49 base::Lock lock_; | 49 base::Lock lock_; |
50 SyncPointMap sync_point_map_; | 50 SyncPointMap sync_point_map_; |
51 uint32 next_sync_point_; | 51 uint32 next_sync_point_; |
52 | 52 |
53 DISALLOW_COPY_AND_ASSIGN(SyncPointManager); | 53 DISALLOW_COPY_AND_ASSIGN(SyncPointManager); |
54 }; | 54 }; |
55 | 55 |
56 } // namespace content | 56 } // namespace content |
57 | 57 |
58 #endif // CONTENT_COMMON_GPU_SYNC_POINT_MANAGER_H_ | 58 #endif // CONTENT_COMMON_GPU_SYNC_POINT_MANAGER_H_ |
OLD | NEW |