OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CC_RESOURCES_RESOURCE_PROVIDER_H_ | 5 #ifndef CC_RESOURCES_RESOURCE_PROVIDER_H_ |
6 #define CC_RESOURCES_RESOURCE_PROVIDER_H_ | 6 #define CC_RESOURCES_RESOURCE_PROVIDER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 size_t NumBlockingUploads(); | 120 size_t NumBlockingUploads(); |
121 void MarkPendingUploadsAsNonBlocking(); | 121 void MarkPendingUploadsAsNonBlocking(); |
122 double EstimatedUploadsPerSecond(); | 122 double EstimatedUploadsPerSecond(); |
123 void FlushUploads(); | 123 void FlushUploads(); |
124 void ReleaseCachedData(); | 124 void ReleaseCachedData(); |
125 | 125 |
126 // Flush all context operations, kicking uploads and ensuring ordering with | 126 // Flush all context operations, kicking uploads and ensuring ordering with |
127 // respect to other contexts. | 127 // respect to other contexts. |
128 void Flush(); | 128 void Flush(); |
129 | 129 |
| 130 // Finish all context operations, causing any pending callbacks to be |
| 131 // scheduled. |
| 132 void Finish(); |
| 133 |
130 // Only flush the command buffer if supported. | 134 // Only flush the command buffer if supported. |
131 // Returns true if the shallow flush occurred, false otherwise. | 135 // Returns true if the shallow flush occurred, false otherwise. |
132 bool ShallowFlushIfSupported(); | 136 bool ShallowFlushIfSupported(); |
133 | 137 |
134 // Creates accounting for a child. Returns a child ID. | 138 // Creates accounting for a child. Returns a child ID. |
135 int CreateChild(); | 139 int CreateChild(); |
136 | 140 |
137 // Destroys accounting for the child, deleting all accounted resources. | 141 // Destroys accounting for the child, deleting all accounted resources. |
138 void DestroyChild(int child); | 142 void DestroyChild(int child); |
139 | 143 |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 base::ThreadChecker thread_checker_; | 405 base::ThreadChecker thread_checker_; |
402 | 406 |
403 scoped_refptr<Fence> current_read_lock_fence_; | 407 scoped_refptr<Fence> current_read_lock_fence_; |
404 | 408 |
405 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); | 409 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); |
406 }; | 410 }; |
407 | 411 |
408 } // namespace cc | 412 } // namespace cc |
409 | 413 |
410 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ | 414 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ |
OLD | NEW |