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

Unified Diff: media/video/fake_video_encode_accelerator.cc

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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/video/fake_video_encode_accelerator.cc
diff --git a/media/video/fake_video_encode_accelerator.cc b/media/video/fake_video_encode_accelerator.cc
index f0087db1f41964b3eab3b8583d78e4fe59a3a368..0fabbde4b64bc158c61955c0f1c9f47001478a72 100644
--- a/media/video/fake_video_encode_accelerator.cc
+++ b/media/video/fake_video_encode_accelerator.cc
@@ -44,7 +44,7 @@ FakeVideoEncodeAccelerator::GetSupportedProfiles() {
bool FakeVideoEncodeAccelerator::Initialize(VideoPixelFormat input_format,
const gfx::Size& input_visible_size,
VideoCodecProfile output_profile,
- uint32 initial_bitrate,
+ uint32_t initial_bitrate,
Client* client) {
if (!will_initialization_succeed_) {
return false;
@@ -79,8 +79,8 @@ void FakeVideoEncodeAccelerator::UseOutputBitstreamBuffer(
}
void FakeVideoEncodeAccelerator::RequestEncodingParametersChange(
- uint32 bitrate,
- uint32 framerate) {
+ uint32_t bitrate,
+ uint32_t framerate) {
stored_bitrates_.push_back(bitrate);
}
@@ -113,7 +113,7 @@ void FakeVideoEncodeAccelerator::EncodeTask() {
while (!queued_frames_.empty() && !available_buffers_.empty()) {
bool force_key_frame = queued_frames_.front();
queued_frames_.pop();
- int32 bitstream_buffer_id = available_buffers_.front().id();
+ int32_t bitstream_buffer_id = available_buffers_.front().id();
available_buffers_.pop_front();
bool key_frame = next_frame_is_first_frame_ || force_key_frame;
next_frame_is_first_frame_ = false;
@@ -128,7 +128,7 @@ void FakeVideoEncodeAccelerator::EncodeTask() {
}
void FakeVideoEncodeAccelerator::DoBitstreamBufferReady(
- int32 bitstream_buffer_id,
+ int32_t bitstream_buffer_id,
size_t payload_size,
bool key_frame) const {
client_->BitstreamBufferReady(bitstream_buffer_id,

Powered by Google App Engine
This is Rietveld 408576698