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

Unified Diff: cc/resources/video_resource_updater.h

Issue 1803863003: cc: Remove some unnecessary const scoped_refptr&. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/output/texture_mailbox_deleter.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 1307be9e5416a4507b9d383581bc96f40ff40e98..d4eaae32a6734355f8ab1643f5a81622a49dd634 100644
--- a/cc/resources/video_resource_updater.h
+++ b/cc/resources/video_resource_updater.h
@@ -83,7 +83,7 @@ class CC_EXPORT VideoResourceUpdater
~VideoResourceUpdater();
VideoFrameExternalResources CreateExternalResourcesFromVideoFrame(
- const scoped_refptr<media::VideoFrame>& video_frame);
+ scoped_refptr<media::VideoFrame> video_frame);
private:
struct PlaneResource {
@@ -125,14 +125,13 @@ class CC_EXPORT VideoResourceUpdater
bool has_mailbox,
bool immutable_hint);
void DeleteResource(ResourceList::iterator resource_it);
- bool VerifyFrame(const scoped_refptr<media::VideoFrame>& video_frame);
- void CopyPlaneTexture(const scoped_refptr<media::VideoFrame>& video_frame,
+ void CopyPlaneTexture(media::VideoFrame* video_frame,
const gpu::MailboxHolder& mailbox_holder,
VideoFrameExternalResources* external_resources);
VideoFrameExternalResources CreateForHardwarePlanes(
- const scoped_refptr<media::VideoFrame>& video_frame);
+ scoped_refptr<media::VideoFrame> video_frame);
VideoFrameExternalResources CreateForSoftwarePlanes(
- const scoped_refptr<media::VideoFrame>& video_frame);
+ scoped_refptr<media::VideoFrame> video_frame);
static void RecycleResource(base::WeakPtr<VideoResourceUpdater> updater,
unsigned resource_id,
« no previous file with comments | « cc/output/texture_mailbox_deleter.cc ('k') | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698