зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1314524. Part 2 - devirtualize StateObject::HandleDormant(). r=kaku
MozReview-Commit-ID: D99L6Ioy6PJ --HG-- extra : rebase_source : fc5e74b89b24d3ec05d728c92dce07575342afbb extra : intermediate-source : 49336fedcb59f7e1264612cf9af7897164290650 extra : source : c64e21f8a16a74a931cf75d42c8c5278738ee534
This commit is contained in:
Родитель
43a41d07fa
Коммит
ba75e21f0c
|
@ -194,7 +194,7 @@ public:
|
|||
|
||||
// Event handlers for various events.
|
||||
// Return true if the event is handled by this state object.
|
||||
virtual bool HandleDormant(bool aDormant);
|
||||
bool HandleDormant(bool aDormant);
|
||||
|
||||
virtual bool HandleCDMProxyReady() { return false; }
|
||||
|
||||
|
@ -318,7 +318,7 @@ public:
|
|||
return DECODER_STATE_DECODING_METADATA;
|
||||
}
|
||||
|
||||
bool HandleDormant(bool aDormant) override
|
||||
bool HandleDormant(bool aDormant)
|
||||
{
|
||||
mPendingDormant = aDormant;
|
||||
return true;
|
||||
|
@ -390,7 +390,7 @@ public:
|
|||
return DECODER_STATE_WAIT_FOR_CDM;
|
||||
}
|
||||
|
||||
bool HandleDormant(bool aDormant) override;
|
||||
bool HandleDormant(bool aDormant);
|
||||
|
||||
bool HandleCDMProxyReady() override;
|
||||
|
||||
|
@ -453,7 +453,7 @@ public:
|
|||
return DECODER_STATE_DORMANT;
|
||||
}
|
||||
|
||||
bool HandleDormant(bool aDormant) override;
|
||||
bool HandleDormant(bool aDormant);
|
||||
|
||||
RefPtr<MediaDecoder::SeekPromise> HandleSeek(SeekTarget aTarget) override;
|
||||
|
||||
|
@ -530,7 +530,7 @@ public:
|
|||
|
||||
RefPtr<MediaDecoder::SeekPromise> HandleSeek(SeekTarget aTarget) override;
|
||||
|
||||
bool HandleDormant(bool aDormant) override;
|
||||
bool HandleDormant(bool aDormant);
|
||||
|
||||
void HandleVideoSuspendTimeout() override
|
||||
{
|
||||
|
@ -871,7 +871,7 @@ public:
|
|||
return DECODER_STATE_SEEKING;
|
||||
}
|
||||
|
||||
bool HandleDormant(bool aDormant) override;
|
||||
bool HandleDormant(bool aDormant);
|
||||
|
||||
bool HandleAudioDecoded(MediaData* aAudio) override
|
||||
{
|
||||
|
@ -1153,7 +1153,7 @@ public:
|
|||
return DECODER_STATE_SHUTDOWN;
|
||||
}
|
||||
|
||||
bool HandleDormant(bool aDormant) override
|
||||
bool HandleDormant(bool aDormant)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче