| 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 19 matching lines...) Expand all Loading... |
| 30 class CC_EXPORT VideoFrameExternalResources { | 30 class CC_EXPORT VideoFrameExternalResources { |
| 31 public: | 31 public: |
| 32 // Specifies what type of data is contained in the mailboxes, as well as how | 32 // Specifies what type of data is contained in the mailboxes, as well as how |
| 33 // many mailboxes will be present. | 33 // many mailboxes will be present. |
| 34 enum ResourceType { | 34 enum ResourceType { |
| 35 NONE, | 35 NONE, |
| 36 YUV_RESOURCE, | 36 YUV_RESOURCE, |
| 37 RGB_RESOURCE, | 37 RGB_RESOURCE, |
| 38 RGBA_RESOURCE, | 38 RGBA_RESOURCE, |
| 39 STREAM_TEXTURE_RESOURCE, | 39 STREAM_TEXTURE_RESOURCE, |
| 40 IO_SURFACE, |
| 40 | 41 |
| 41 #if defined(VIDEO_HOLE) | 42 #if defined(VIDEO_HOLE) |
| 42 // TODO(danakj): Implement this with a solid color layer instead of a video | 43 // TODO(danakj): Implement this with a solid color layer instead of a video |
| 43 // frame and video layer. | 44 // frame and video layer. |
| 44 HOLE, | 45 HOLE, |
| 45 #endif // defined(VIDEO_HOLE) | 46 #endif // defined(VIDEO_HOLE) |
| 46 | 47 |
| 47 // TODO(danakj): Remove this and abstract TextureMailbox into | 48 // TODO(danakj): Remove this and abstract TextureMailbox into |
| 48 // "ExternalResource" that can hold a hardware or software backing. | 49 // "ExternalResource" that can hold a hardware or software backing. |
| 49 SOFTWARE_RESOURCE | 50 SOFTWARE_RESOURCE |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // Recycle resources so that we can reduce the number of allocations and | 137 // Recycle resources so that we can reduce the number of allocations and |
| 137 // data transfers. | 138 // data transfers. |
| 138 ResourceList all_resources_; | 139 ResourceList all_resources_; |
| 139 | 140 |
| 140 DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater); | 141 DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater); |
| 141 }; | 142 }; |
| 142 | 143 |
| 143 } // namespace cc | 144 } // namespace cc |
| 144 | 145 |
| 145 #endif // CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ | 146 #endif // CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ |
| OLD | NEW |