Refactor osr_output_device
This commit is contained in:
parent
9d8e510a55
commit
ea8ea1543f
8 changed files with 40 additions and 44 deletions
|
@ -190,7 +190,7 @@ void WebContentsPreferences::AppendExtraCommandLineSwitches(
|
|||
// Use frame scheduling for offscreen renderers.
|
||||
// TODO(zcbenz): Remove this after Chrome 54, on which it becomes default.
|
||||
bool offscreen;
|
||||
if (web_preferences.Get("offscreen", &offscreen) && offscreen)
|
||||
if (web_preferences.GetBoolean("offscreen", &offscreen) && offscreen)
|
||||
command_line->AppendSwitch(cc::switches::kEnableBeginFrameScheduling);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue