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

Unified Diff: cc/layers/video_frame_provider_client_impl.h

Issue 12596015: cc: Keep a reference on the media::VideoFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: cc/layers/video_frame_provider_client_impl.h
diff --git a/cc/layers/video_frame_provider_client_impl.h b/cc/layers/video_frame_provider_client_impl.h
index c7f332e928ea4d6861a2757b7d22420bdcef9893..2bcb4462b7376e1472a54ac45a2bea8da6fd64b3 100644
--- a/cc/layers/video_frame_provider_client_impl.h
+++ b/cc/layers/video_frame_provider_client_impl.h
@@ -29,8 +29,8 @@ class VideoFrameProviderClientImpl
void Stop();
bool Stopped() const { return !provider_; }
- media::VideoFrame* AcquireLockAndCurrentFrame();
- void PutCurrentFrame(media::VideoFrame* frame);
+ scoped_refptr<media::VideoFrame> AcquireLockAndCurrentFrame();
+ void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame);
void ReleaseLock();
const gfx::Transform& stream_texture_matrix() const {
return stream_texture_matrix_;

Powered by Google App Engine
This is Rietveld 408576698