mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 1320101 - Pass mLastFramerateTenths by copy. r=jesup
Just for the cleanliness of not having to pass an atomic that we always read by reference. MozReview-Commit-ID: 60HzuTAENdQ --HG-- extra : rebase_source : 999b0847139107b16eb2daaf24e6195bd3ebcd7e
This commit is contained in:
parent
ccf57b4de1
commit
54dd33be82
@ -1133,7 +1133,7 @@ void
|
||||
WebrtcVideoConduit::SelectBitrates(unsigned short width,
|
||||
unsigned short height,
|
||||
unsigned int cap,
|
||||
mozilla::Atomic<int32_t, mozilla::Relaxed>& aLastFramerateTenths,
|
||||
int32_t aLastFramerateTenths,
|
||||
unsigned int& out_min,
|
||||
unsigned int& out_start,
|
||||
unsigned int& out_max)
|
||||
@ -1155,7 +1155,7 @@ WebrtcVideoConduit::SelectBitrates(unsigned short width,
|
||||
}
|
||||
}
|
||||
|
||||
// mLastFramerateTenths is an atomic, and scaled by *10
|
||||
// mLastFramerateTenths is scaled by *10
|
||||
double framerate = std::min((aLastFramerateTenths/10.),60.0);
|
||||
MOZ_ASSERT(framerate > 0);
|
||||
// Now linear reduction/increase based on fps (max 60fps i.e. doubling)
|
||||
|
@ -147,7 +147,7 @@ public:
|
||||
void SelectBitrates(unsigned short width,
|
||||
unsigned short height,
|
||||
unsigned int cap,
|
||||
mozilla::Atomic<int32_t, mozilla::Relaxed>& aLastFramerateTenths,
|
||||
int32_t aLastFramerateTenths,
|
||||
unsigned int& out_min,
|
||||
unsigned int& out_start,
|
||||
unsigned int& out_max);
|
||||
|
Loading…
Reference in New Issue
Block a user