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

Unified Diff: media/video/fake_video_encode_accelerator.h

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.h
diff --git a/media/video/fake_video_encode_accelerator.h b/media/video/fake_video_encode_accelerator.h
index 91b6f1d4f77b0f52a6610e2a97a6a8321bf2e3d3..d1f08e7862548c776017f26dfa5c04ae209d0780 100644
--- a/media/video/fake_video_encode_accelerator.h
+++ b/media/video/fake_video_encode_accelerator.h
@@ -32,16 +32,16 @@ class MEDIA_EXPORT FakeVideoEncodeAccelerator : public VideoEncodeAccelerator {
bool Initialize(VideoPixelFormat input_format,
const gfx::Size& input_visible_size,
VideoCodecProfile output_profile,
- uint32 initial_bitrate,
+ uint32_t initial_bitrate,
Client* client) override;
void Encode(const scoped_refptr<VideoFrame>& frame,
bool force_keyframe) override;
void UseOutputBitstreamBuffer(const BitstreamBuffer& buffer) override;
- void RequestEncodingParametersChange(uint32 bitrate,
- uint32 framerate) override;
+ void RequestEncodingParametersChange(uint32_t bitrate,
+ uint32_t framerate) override;
void Destroy() override;
- const std::vector<uint32>& stored_bitrates() const {
+ const std::vector<uint32_t>& stored_bitrates() const {
return stored_bitrates_;
}
void SendDummyFrameForTesting(bool key_frame);
@@ -52,13 +52,13 @@ class MEDIA_EXPORT FakeVideoEncodeAccelerator : public VideoEncodeAccelerator {
const gfx::Size& input_coded_size,
size_t output_buffer_size) const;
void EncodeTask();
- void DoBitstreamBufferReady(int32 bitstream_buffer_id,
+ void DoBitstreamBufferReady(int32_t bitstream_buffer_id,
size_t payload_size,
bool key_frame) const;
// Our original (constructor) calling message loop used for all tasks.
const scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
- std::vector<uint32> stored_bitrates_;
+ std::vector<uint32_t> stored_bitrates_;
bool will_initialization_succeed_;
VideoEncodeAccelerator::Client* client_;

Powered by Google App Engine
This is Rietveld 408576698