| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 public: | 35 public: |
| 36 // Specifies what type of data is contained in the mailboxes, as well as how | 36 // Specifies what type of data is contained in the mailboxes, as well as how |
| 37 // many mailboxes will be present. | 37 // many mailboxes will be present. |
| 38 enum ResourceType { | 38 enum ResourceType { |
| 39 NONE, | 39 NONE, |
| 40 YUV_RESOURCE, | 40 YUV_RESOURCE, |
| 41 RGB_RESOURCE, | 41 RGB_RESOURCE, |
| 42 RGBA_PREMULTIPLIED_RESOURCE, | 42 RGBA_PREMULTIPLIED_RESOURCE, |
| 43 RGBA_RESOURCE, | 43 RGBA_RESOURCE, |
| 44 STREAM_TEXTURE_RESOURCE, | 44 STREAM_TEXTURE_RESOURCE, |
| 45 IO_SURFACE, | |
| 46 | 45 |
| 47 #if defined(VIDEO_HOLE) | 46 #if defined(VIDEO_HOLE) |
| 48 // TODO(danakj): Implement this with a solid color layer instead of a video | 47 // TODO(danakj): Implement this with a solid color layer instead of a video |
| 49 // frame and video layer. | 48 // frame and video layer. |
| 50 HOLE, | 49 HOLE, |
| 51 #endif // defined(VIDEO_HOLE) | 50 #endif // defined(VIDEO_HOLE) |
| 52 | 51 |
| 53 // TODO(danakj): Remove this and abstract TextureMailbox into | 52 // TODO(danakj): Remove this and abstract TextureMailbox into |
| 54 // "ExternalResource" that can hold a hardware or software backing. | 53 // "ExternalResource" that can hold a hardware or software backing. |
| 55 SOFTWARE_RESOURCE | 54 SOFTWARE_RESOURCE |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 // Recycle resources so that we can reduce the number of allocations and | 166 // Recycle resources so that we can reduce the number of allocations and |
| 168 // data transfers. | 167 // data transfers. |
| 169 ResourceList all_resources_; | 168 ResourceList all_resources_; |
| 170 | 169 |
| 171 DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater); | 170 DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater); |
| 172 }; | 171 }; |
| 173 | 172 |
| 174 } // namespace cc | 173 } // namespace cc |
| 175 | 174 |
| 176 #endif // CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ | 175 #endif // CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ |
| OLD | NEW |