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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 bool read_lock_fences_enabled; | 60 bool read_lock_fences_enabled; |
61 | 61 |
62 // TODO(danakj): Remove these too. | 62 // TODO(danakj): Remove these too. |
63 std::vector<unsigned> software_resources; | 63 std::vector<unsigned> software_resources; |
64 ReleaseCallbackImpl software_release_callback; | 64 ReleaseCallbackImpl software_release_callback; |
65 | 65 |
66 // Used by hardware textures which do not return values in the 0-1 range. | 66 // Used by hardware textures which do not return values in the 0-1 range. |
67 // After a lookup, subtract offset and multiply by multiplier. | 67 // After a lookup, subtract offset and multiply by multiplier. |
68 float offset; | 68 float offset; |
69 float multiplier; | 69 float multiplier; |
| 70 uint32_t bits_per_channel; |
70 | 71 |
71 VideoFrameExternalResources(); | 72 VideoFrameExternalResources(); |
72 VideoFrameExternalResources(const VideoFrameExternalResources& other); | 73 VideoFrameExternalResources(const VideoFrameExternalResources& other); |
73 ~VideoFrameExternalResources(); | 74 ~VideoFrameExternalResources(); |
74 }; | 75 }; |
75 | 76 |
76 // VideoResourceUpdater is used by the video system to produce frame content as | 77 // VideoResourceUpdater is used by the video system to produce frame content as |
77 // resources consumable by the compositor. | 78 // resources consumable by the compositor. |
78 class CC_EXPORT VideoResourceUpdater | 79 class CC_EXPORT VideoResourceUpdater |
79 : public base::SupportsWeakPtr<VideoResourceUpdater> { | 80 : public base::SupportsWeakPtr<VideoResourceUpdater> { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // Recycle resources so that we can reduce the number of allocations and | 168 // Recycle resources so that we can reduce the number of allocations and |
168 // data transfers. | 169 // data transfers. |
169 ResourceList all_resources_; | 170 ResourceList all_resources_; |
170 | 171 |
171 DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater); | 172 DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater); |
172 }; | 173 }; |
173 | 174 |
174 } // namespace cc | 175 } // namespace cc |
175 | 176 |
176 #endif // CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ | 177 #endif // CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ |
OLD | NEW |