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

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

Issue 2463103002: Revert of Fix HTML5 video blurry (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « cc/resources/resource_provider.cc ('k') | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // in the 0-1 range, you need to do: 96 // in the 0-1 range, you need to do:
97 // (half_float - Offset()) * Multiplier() 97 // (half_float - Offset()) * Multiplier()
98 // to each returned value. 98 // to each returned value.
99 virtual float Offset() const = 0; 99 virtual float Offset() const = 0;
100 virtual float Multiplier() const = 0; 100 virtual float Multiplier() const = 0;
101 }; 101 };
102 102
103 static std::unique_ptr<HalfFloatMaker> NewHalfFloatMaker( 103 static std::unique_ptr<HalfFloatMaker> NewHalfFloatMaker(
104 int bits_per_channel); 104 int bits_per_channel);
105 105
106 ResourceFormat YuvResourceFormat(int bits) const;
107
108 private: 106 private:
109 class PlaneResource { 107 class PlaneResource {
110 public: 108 public:
111 PlaneResource(unsigned resource_id, 109 PlaneResource(unsigned resource_id,
112 const gfx::Size& resource_size, 110 const gfx::Size& resource_size,
113 ResourceFormat resource_format, 111 ResourceFormat resource_format,
114 gpu::Mailbox mailbox); 112 gpu::Mailbox mailbox);
115 PlaneResource(const PlaneResource& other); 113 PlaneResource(const PlaneResource& other);
116 114
117 // Returns true if this resource matches the unique identifiers of another 115 // Returns true if this resource matches the unique identifiers of another
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 // Recycle resources so that we can reduce the number of allocations and 203 // Recycle resources so that we can reduce the number of allocations and
206 // data transfers. 204 // data transfers.
207 ResourceList all_resources_; 205 ResourceList all_resources_;
208 206
209 DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater); 207 DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater);
210 }; 208 };
211 209
212 } // namespace cc 210 } // namespace cc
213 211
214 #endif // CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ 212 #endif // CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_
OLDNEW
« no previous file with comments | « cc/resources/resource_provider.cc ('k') | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698