Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: cc/resources/video_resource_updater.h

Issue 2122573003: media: replace LUMINANCE_F16 by RG_88 for 9/10-bit h264 videos Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve hubbe's concerns except for test. separate the CLs. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 RGBA_PREMULTIPLIED_RESOURCE, 42 RGBA_PREMULTIPLIED_RESOURCE,
43 RGBA_RESOURCE, 43 RGBA_RESOURCE,
44 STREAM_TEXTURE_RESOURCE, 44 STREAM_TEXTURE_RESOURCE,
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 ResourceFormat format;
52 std::vector<TextureMailbox> mailboxes; 53 std::vector<TextureMailbox> mailboxes;
53 std::vector<ReleaseCallbackImpl> release_callbacks; 54 std::vector<ReleaseCallbackImpl> release_callbacks;
54 bool read_lock_fences_enabled; 55 bool read_lock_fences_enabled;
55 56
56 // TODO(danakj): Remove these too. 57 // TODO(danakj): Remove these too.
57 std::vector<unsigned> software_resources; 58 std::vector<unsigned> software_resources;
58 ReleaseCallbackImpl software_release_callback; 59 ReleaseCallbackImpl software_release_callback;
59 60
60 // Used by hardware textures which do not return values in the 0-1 range. 61 // Used by hardware textures which do not return values in the 0-1 range.
61 // After a lookup, subtract offset and multiply by multiplier. 62 // After a lookup, subtract offset and multiply by multiplier.
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 // Recycle resources so that we can reduce the number of allocations and 190 // Recycle resources so that we can reduce the number of allocations and
190 // data transfers. 191 // data transfers.
191 ResourceList all_resources_; 192 ResourceList all_resources_;
192 193
193 DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater); 194 DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater);
194 }; 195 };
195 196
196 } // namespace cc 197 } // namespace cc
197 198
198 #endif // CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ 199 #endif // CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698