| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 public: | 30 public: |
| 31 // Specifies what type of data is contained in the mailboxes, as well as how | 31 // Specifies what type of data is contained in the mailboxes, as well as how |
| 32 // many mailboxes will be present. | 32 // many mailboxes will be present. |
| 33 enum ResourceType { | 33 enum ResourceType { |
| 34 NONE, | 34 NONE, |
| 35 YUV_RESOURCE, | 35 YUV_RESOURCE, |
| 36 RGB_RESOURCE, | 36 RGB_RESOURCE, |
| 37 STREAM_TEXTURE_RESOURCE, | 37 STREAM_TEXTURE_RESOURCE, |
| 38 IO_SURFACE, | 38 IO_SURFACE, |
| 39 | 39 |
| 40 #if defined(GOOGLE_TV) | 40 #if defined(VIDEO_HOLE) |
| 41 // TODO(danakj): Implement this with a solid color layer instead of a video | 41 // TODO(danakj): Implement this with a solid color layer instead of a video |
| 42 // frame and video layer. | 42 // frame and video layer. |
| 43 HOLE, | 43 HOLE, |
| 44 #endif | 44 #endif // defined(VIDEO_HOLE) |
| 45 | 45 |
| 46 // TODO(danakj): Remove this and abstract TextureMailbox into | 46 // TODO(danakj): Remove this and abstract TextureMailbox into |
| 47 // "ExternalResource" that can hold a hardware or software backing. | 47 // "ExternalResource" that can hold a hardware or software backing. |
| 48 SOFTWARE_RESOURCE | 48 SOFTWARE_RESOURCE |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 ResourceType type; | 51 ResourceType type; |
| 52 std::vector<TextureMailbox> mailboxes; | 52 std::vector<TextureMailbox> mailboxes; |
| 53 std::vector<ReleaseCallback> release_callbacks; | 53 std::vector<ReleaseCallback> release_callbacks; |
| 54 | 54 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 std::vector<unsigned> all_resources_; | 114 std::vector<unsigned> all_resources_; |
| 115 std::vector<PlaneResource> recycled_resources_; | 115 std::vector<PlaneResource> recycled_resources_; |
| 116 | 116 |
| 117 DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater); | 117 DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater); |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 } // namespace cc | 120 } // namespace cc |
| 121 | 121 |
| 122 #endif // CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ | 122 #endif // CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ |
| OLD | NEW |