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

Unified 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: rebase to ToT 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/video_resource_updater.h
diff --git a/cc/resources/video_resource_updater.h b/cc/resources/video_resource_updater.h
index a42784c9b999ca948b2ed1f4ee32fb8e09f10cf5..cc41866de736f323d46d4c2e71c900c972a8383a 100644
--- a/cc/resources/video_resource_updater.h
+++ b/cc/resources/video_resource_updater.h
@@ -49,6 +49,7 @@ class CC_EXPORT VideoFrameExternalResources {
};
ResourceType type;
+ ResourceFormat format;
std::vector<TextureMailbox> mailboxes;
std::vector<ReleaseCallbackImpl> release_callbacks;
bool read_lock_fences_enabled;
@@ -89,6 +90,11 @@ class CC_EXPORT VideoResourceUpdater
size_t num,
uint16_t* dst);
+ ResourceFormat YuvResourceFormat(int bits) const;
+ void UseRGForTesting(bool use_rg_for_testing) {
+ use_rg_for_testing_ = use_rg_for_testing;
+ }
+
private:
class PlaneResource {
public:
@@ -190,6 +196,8 @@ class CC_EXPORT VideoResourceUpdater
// data transfers.
ResourceList all_resources_;
+ bool use_rg_for_testing_ = false;
+
DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater);
};
« 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