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

Unified Diff: cc/resources/resource_provider.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, 3 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
Index: cc/resources/resource_provider.h
diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h
index f671fb5e04d3f0c4dde62182a64c9b3ec5396189..20b0beaee4449a5eeda992bc5d762bceffc2a9fd 100644
--- a/cc/resources/resource_provider.h
+++ b/cc/resources/resource_provider.h
@@ -131,6 +131,7 @@ class CC_EXPORT ResourceProvider
ResourceType default_resource_type() const { return default_resource_type_; }
ResourceType GetResourceType(ResourceId id);
GLenum GetResourceTextureTarget(ResourceId id);
+ ResourceFormat GetResourceFormat(ResourceId id);
bool IsImmutable(ResourceId id);
TextureHint GetTextureHint(ResourceId id);
@@ -158,6 +159,12 @@ class CC_EXPORT ResourceProvider
std::unique_ptr<SingleReleaseCallbackImpl> release_callback_impl,
bool read_lock_fences_enabled);
+ ResourceId CreateResourceFromTextureMailbox(
+ const TextureMailbox& mailbox,
+ ResourceFormat format,
+ std::unique_ptr<SingleReleaseCallbackImpl> release_callback_impl,
+ bool read_lock_fences_enabled);
+
void DeleteResource(ResourceId id);
// Update pixels from image, copying source_rect (in image) to dest_offset (in

Powered by Google App Engine
This is Rietveld 408576698