bug 962719 use unsigned ints for FrameID and ProducerID for defined overflow behavior r=roc

--HG--
extra : rebase_source : 0375f04a60a548975547b80e60e5cf5dada2f86f
This commit is contained in:
Karl Tomlinson 2015-08-12 11:02:41 +12:00
Родитель 795135daf2
Коммит ea84d39947
4 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -308,7 +308,7 @@ public:
bool aKeyframe,
int64_t aTimecode,
IntSize aDisplay,
int32_t aFrameID);
uint32_t aFrameID);
protected:
~VideoData();

Просмотреть файл

@ -2541,7 +2541,7 @@ void MediaDecoderStateMachine::RenderVideoFrames(int32_t aMaxFrames,
img->mFrameID = frame->mFrameID;
img->mProducerID = mProducerID;
VERBOSE_LOG("playing video frame %lld (id=%d) (queued=%i, state-machine=%i, decoder-queued=%i)",
VERBOSE_LOG("playing video frame %lld (id=%x) (queued=%i, state-machine=%i, decoder-queued=%i)",
frame->mTime, frame->mFrameID,
VideoQueue().GetSize() + mReader->SizeOfVideoQueueInFrames(),
VideoQueue().GetSize(), mReader->SizeOfVideoQueueInFrames());

Просмотреть файл

@ -288,8 +288,8 @@ public:
explicit ImageContainer(ImageContainer::Mode flag = SYNCHRONOUS);
typedef int32_t FrameID;
typedef int32_t ProducerID;
typedef uint32_t FrameID;
typedef uint32_t ProducerID;
/**

Просмотреть файл

@ -392,8 +392,8 @@ struct TimedTexture {
MaybeFence fence;
TimeStamp timeStamp;
IntRect picture;
int32_t frameID;
int32_t producerID;
uint32_t frameID;
uint32_t producerID;
};
/**
@ -487,8 +487,8 @@ struct ImageCompositeNotification {
PImageContainer imageContainer;
TimeStamp imageTimeStamp;
TimeStamp firstCompositeTimeStamp;
int32_t frameID;
int32_t producerID;
uint32_t frameID;
uint32_t producerID;
};
// Unit of a "changeset reply". This is a weird abstraction, probably