| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_VIDEO_RESOURCE_UPDATER_H_ | 5 #ifndef CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ |
| 6 #define CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ | 6 #define CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #endif // defined(VIDEO_HOLE) | 46 #endif // defined(VIDEO_HOLE) |
| 47 | 47 |
| 48 // TODO(danakj): Remove this and abstract TextureMailbox into | 48 // TODO(danakj): Remove this and abstract TextureMailbox into |
| 49 // "ExternalResource" that can hold a hardware or software backing. | 49 // "ExternalResource" that can hold a hardware or software backing. |
| 50 SOFTWARE_RESOURCE | 50 SOFTWARE_RESOURCE |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 ResourceType type; | 53 ResourceType type; |
| 54 std::vector<TextureMailbox> mailboxes; | 54 std::vector<TextureMailbox> mailboxes; |
| 55 std::vector<ReleaseCallbackImpl> release_callbacks; | 55 std::vector<ReleaseCallbackImpl> release_callbacks; |
| 56 bool read_lock_fences_enabled; |
| 56 | 57 |
| 57 // TODO(danakj): Remove these too. | 58 // TODO(danakj): Remove these too. |
| 58 std::vector<unsigned> software_resources; | 59 std::vector<unsigned> software_resources; |
| 59 ReleaseCallbackImpl software_release_callback; | 60 ReleaseCallbackImpl software_release_callback; |
| 60 | 61 |
| 61 VideoFrameExternalResources(); | 62 VideoFrameExternalResources(); |
| 62 ~VideoFrameExternalResources(); | 63 ~VideoFrameExternalResources(); |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 // VideoResourceUpdater is used by the video system to produce frame content as | 66 // VideoResourceUpdater is used by the video system to produce frame content as |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 // Recycle resources so that we can reduce the number of allocations and | 138 // Recycle resources so that we can reduce the number of allocations and |
| 138 // data transfers. | 139 // data transfers. |
| 139 ResourceList all_resources_; | 140 ResourceList all_resources_; |
| 140 | 141 |
| 141 DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater); | 142 DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater); |
| 142 }; | 143 }; |
| 143 | 144 |
| 144 } // namespace cc | 145 } // namespace cc |
| 145 | 146 |
| 146 #endif // CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ | 147 #endif // CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ |
| OLD | NEW |