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

Unified Diff: media/base/video_frame.cc

Issue 4192012: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: fix presubmit Created 10 years, 2 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 | « media/base/seekable_buffer_unittest.cc ('k') | media/filters/audio_renderer_base_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame.cc
diff --git a/media/base/video_frame.cc b/media/base/video_frame.cc
index 57a4d0d0d39b5606ed1f072f02848983d53a71f5..332c3c5d3995581e10d0c5449afeb53c4842b623 100644
--- a/media/base/video_frame.cc
+++ b/media/base/video_frame.cc
@@ -39,8 +39,8 @@ void VideoFrame::CreateFrame(VideoFrame::Format format,
DCHECK(width * height < 100000000);
DCHECK(frame_out);
bool alloc_worked = false;
- scoped_refptr<VideoFrame> frame =
- new VideoFrame(VideoFrame::TYPE_SYSTEM_MEMORY, format, width, height);
+ scoped_refptr<VideoFrame> frame(
+ new VideoFrame(VideoFrame::TYPE_SYSTEM_MEMORY, format, width, height));
if (frame) {
frame->SetTimestamp(timestamp);
frame->SetDuration(duration);
@@ -85,8 +85,8 @@ void VideoFrame::CreateFrameExternal(SurfaceType type,
void* private_buffer,
scoped_refptr<VideoFrame>* frame_out) {
DCHECK(frame_out);
- scoped_refptr<VideoFrame> frame =
- new VideoFrame(type, format, width, height);
+ scoped_refptr<VideoFrame> frame(
+ new VideoFrame(type, format, width, height));
if (frame) {
frame->SetTimestamp(timestamp);
frame->SetDuration(duration);
@@ -108,8 +108,8 @@ void VideoFrame::CreateFrameGlTexture(Format format,
GlTexture const textures[kMaxPlanes],
scoped_refptr<VideoFrame>* frame_out) {
DCHECK(frame_out);
- scoped_refptr<VideoFrame> frame =
- new VideoFrame(TYPE_GL_TEXTURE, format, width, height);
+ scoped_refptr<VideoFrame> frame(
+ new VideoFrame(TYPE_GL_TEXTURE, format, width, height));
if (frame) {
frame->external_memory_ = true;
frame->planes_ = GetNumberOfPlanes(format);
« no previous file with comments | « media/base/seekable_buffer_unittest.cc ('k') | media/filters/audio_renderer_base_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698