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

Unified Diff: media/filters/vpx_video_decoder.cc

Issue 2158923004: Convert media constants to constexpr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: media/filters/vpx_video_decoder.cc
diff --git a/media/filters/vpx_video_decoder.cc b/media/filters/vpx_video_decoder.cc
index 75d3fb8ac1c194e7fde34b38dac24c33d3036dab..35996d88f3d1064a79ea77150635b4a1ee2f8eea 100644
--- a/media/filters/vpx_video_decoder.cc
+++ b/media/filters/vpx_video_decoder.cc
@@ -696,14 +696,14 @@ bool VpxVideoDecoder::CopyVpxImageToVideoFrame(
vpx_image->stride[VPX_PLANE_U], vpx_image->stride[VPX_PLANE_V],
vpx_image_alpha->stride[VPX_PLANE_Y], vpx_image->planes[VPX_PLANE_Y],
vpx_image->planes[VPX_PLANE_U], vpx_image->planes[VPX_PLANE_V],
- &frame_buffer->alpha_data[0], kNoTimestamp());
+ &frame_buffer->alpha_data[0], kNoTimestamp);
} else {
*video_frame = VideoFrame::WrapExternalYuvData(
codec_format, coded_size, gfx::Rect(visible_size),
config_.natural_size(), vpx_image->stride[VPX_PLANE_Y],
vpx_image->stride[VPX_PLANE_U], vpx_image->stride[VPX_PLANE_V],
vpx_image->planes[VPX_PLANE_Y], vpx_image->planes[VPX_PLANE_U],
- vpx_image->planes[VPX_PLANE_V], kNoTimestamp());
+ vpx_image->planes[VPX_PLANE_V], kNoTimestamp);
}
if (!(*video_frame))
return false;
@@ -716,9 +716,9 @@ bool VpxVideoDecoder::CopyVpxImageToVideoFrame(
DCHECK(codec_format == PIXEL_FORMAT_YV12 ||
codec_format == PIXEL_FORMAT_YV12A);
- *video_frame = frame_pool_.CreateFrame(
- codec_format, visible_size, gfx::Rect(visible_size),
- config_.natural_size(), kNoTimestamp());
+ *video_frame = frame_pool_.CreateFrame(codec_format, visible_size,
+ gfx::Rect(visible_size),
+ config_.natural_size(), kNoTimestamp);
if (!(*video_frame))
return false;

Powered by Google App Engine
This is Rietveld 408576698