| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 130 // Finish all context operations, causing any pending callbacks to be |
| 131 // scheduled. | 131 // scheduled. |
| 132 void Finish(); | 132 //void Finish(); |
| 133 | 133 |
| 134 // Only flush the command buffer if supported. | 134 // Only flush the command buffer if supported. |
| 135 // Returns true if the shallow flush occurred, false otherwise. | 135 // Returns true if the shallow flush occurred, false otherwise. |
| 136 bool ShallowFlushIfSupported(); | 136 bool ShallowFlushIfSupported(); |
| 137 | 137 |
| 138 // Creates accounting for a child. Returns a child ID. | 138 // Creates accounting for a child. Returns a child ID. |
| 139 int CreateChild(); | 139 int CreateChild(); |
| 140 | 140 |
| 141 // Destroys accounting for the child, deleting all accounted resources. | 141 // Destroys accounting for the child, deleting all accounted resources. |
| 142 void DestroyChild(int child); | 142 void DestroyChild(int child); |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 base::ThreadChecker thread_checker_; | 432 base::ThreadChecker thread_checker_; |
| 433 | 433 |
| 434 scoped_refptr<Fence> current_read_lock_fence_; | 434 scoped_refptr<Fence> current_read_lock_fence_; |
| 435 | 435 |
| 436 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); | 436 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); |
| 437 }; | 437 }; |
| 438 | 438 |
| 439 } // namespace cc | 439 } // namespace cc |
| 440 | 440 |
| 441 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ | 441 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ |
| OLD | NEW |