mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-29 18:49:52 +01:00
Remove maximum frame rate limit with OSR (fixes issue #3077)
This commit is contained in:
parent
505bf24abb
commit
47f15dd307
@ -10,15 +10,13 @@ namespace {
|
||||
|
||||
// The rate at which new calls to OnPaint will be generated.
|
||||
const int kDefaultFrameRate = 30;
|
||||
const int kMaximumFrameRate = 60;
|
||||
|
||||
} // namespace
|
||||
|
||||
int ClampFrameRate(int frame_rate) {
|
||||
if (frame_rate < 1)
|
||||
return kDefaultFrameRate;
|
||||
else if (frame_rate > kMaximumFrameRate)
|
||||
return kMaximumFrameRate;
|
||||
|
||||
return frame_rate;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user