OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 SharedContextRateLimiter_h | 5 #ifndef SharedContextRateLimiter_h |
6 #define SharedContextRateLimiter_h | 6 #define SharedContextRateLimiter_h |
7 | 7 |
8 #include "public/platform/WebGraphicsContext3D.h" | 8 #include "public/platform/WebGraphicsContext3D.h" |
9 #include "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
10 #include "wtf/Deque.h" | 10 #include "wtf/Deque.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 void reset(); | 44 void reset(); |
45 private: | 45 private: |
46 SharedContextRateLimiter(unsigned maxPendingTicks); | 46 SharedContextRateLimiter(unsigned maxPendingTicks); |
47 | 47 |
48 OwnPtr<WebGraphicsContext3DProvider> m_contextProvider; | 48 OwnPtr<WebGraphicsContext3DProvider> m_contextProvider; |
49 Deque<WebGLId> m_queries; | 49 Deque<WebGLId> m_queries; |
50 unsigned m_maxPendingTicks; | 50 unsigned m_maxPendingTicks; |
51 bool m_canUseSyncQueries; | 51 bool m_canUseSyncQueries; |
52 }; | 52 }; |
53 | 53 |
54 } // blink | 54 } // namespace blink |
55 | 55 |
56 #endif | 56 #endif |
OLD | NEW |