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

Unified Diff: cc/resources/video_resource_updater.h

Issue 1761893003: Avoid planar YUV resources when one component EGL images are not supported (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resurrect Created 4 years, 4 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 4dba54c42d3aaeaa8e616367b2c4e83c282df4cb..f8efb98a4df5fc5954c3a526002d47cdf3734377 100644
--- a/cc/resources/video_resource_updater.h
+++ b/cc/resources/video_resource_updater.h
@@ -136,6 +136,10 @@ class CC_EXPORT VideoResourceUpdater
// This needs to be a container where iterators can be erased without
// invalidating other iterators.
typedef std::list<PlaneResource> ResourceList;
+ ResourceList::iterator RecycleOrAllocateTexture(
+ const gfx::Size& resource_size,
+ ResourceFormat resource_format,
+ bool immutable_hint);
ResourceList::iterator AllocateResource(const gfx::Size& plane_size,
ResourceFormat format,
bool has_mailbox,
@@ -146,6 +150,8 @@ class CC_EXPORT VideoResourceUpdater
VideoFrameExternalResources* external_resources);
VideoFrameExternalResources CreateForHardwarePlanes(
scoped_refptr<media::VideoFrame> video_frame);
+ VideoFrameExternalResources CreateRGBTextureForSoftwarePlanes(
+ media::VideoFrame* video_frame);
VideoFrameExternalResources CreateForSoftwarePlanes(
scoped_refptr<media::VideoFrame> video_frame);
« 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