Windows: Fix white flashes during browser initialization (issue #1161).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1645 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2014-04-08 19:33:48 +00:00
parent d8aed5b52d
commit 66604e4741
5 changed files with 79 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
#include <string>
#include "libcef/browser/context.h"
#include "libcef/common/cef_switches.h"
#include "base/command_line.h"
@@ -126,4 +127,6 @@ void BrowserToWebSettings(const CefBrowserSettings& cef, WebPreferences& web) {
web.experimental_webgl_enabled = false;
if (cef.accelerated_compositing == STATE_DISABLED)
web.accelerated_compositing_enabled = false;
web.base_background_color = CefContext::Get()->settings().background_color;
}