Index: cc/resources/video_resource_updater.h |
diff --git a/cc/resources/video_resource_updater.h b/cc/resources/video_resource_updater.h |
index a5c063dd7681dad8dc4b8839575a5a810351f1d4..88fe4151a7b2d306be2c791385423543a3a8daaf 100644 |
--- a/cc/resources/video_resource_updater.h |
+++ b/cc/resources/video_resource_updater.h |
@@ -136,13 +136,21 @@ 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 RecycleOrAllocateResource( |
+ const gfx::Size& resource_size, |
+ ResourceFormat resource_format, |
+ const gfx::ColorSpace& color_space, |
+ bool software_resource, |
+ bool immutable_hint, |
+ int unique_id, |
+ int plane_index); |
ResourceList::iterator AllocateResource(const gfx::Size& plane_size, |
ResourceFormat format, |
const gfx::ColorSpace& color_space, |
bool has_mailbox, |
bool immutable_hint); |
void DeleteResource(ResourceList::iterator resource_it); |
- void CopyPlaneTexture(media::VideoFrame* video_frame, |
+ bool CopyPlaneTexture(media::VideoFrame* video_frame, |
const gpu::MailboxHolder& mailbox_holder, |
VideoFrameExternalResources* external_resources); |
VideoFrameExternalResources CreateForHardwarePlanes( |