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

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: Created 4 years, 10 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/video_resource_updater.h
diff --git a/cc/resources/video_resource_updater.h b/cc/resources/video_resource_updater.h
index 1307be9e5416a4507b9d383581bc96f40ff40e98..66d73e32144b2157efe503379f4d1793eca3a5e7 100644
--- a/cc/resources/video_resource_updater.h
+++ b/cc/resources/video_resource_updater.h
@@ -125,10 +125,16 @@ class CC_EXPORT VideoResourceUpdater
bool has_mailbox,
bool immutable_hint);
void DeleteResource(ResourceList::iterator resource_it);
+ ResourceList::iterator RecycleOrAllocateTexture(
+ const gfx::Size& resource_size,
+ ResourceFormat resource_format,
+ bool immutable_hint);
bool VerifyFrame(const scoped_refptr<media::VideoFrame>& video_frame);
void CopyPlaneTexture(const scoped_refptr<media::VideoFrame>& video_frame,
const gpu::MailboxHolder& mailbox_holder,
VideoFrameExternalResources* external_resources);
+ VideoFrameExternalResources CreateRGBTextureForSoftwarePlanes(
+ const scoped_refptr<media::VideoFrame>& video_frame);
VideoFrameExternalResources CreateForHardwarePlanes(
const scoped_refptr<media::VideoFrame>& video_frame);
VideoFrameExternalResources CreateForSoftwarePlanes(

Powered by Google App Engine
This is Rietveld 408576698