Browse Source

Merge pull request #925 from AtomicGameEngine/JME-ATOMIC-UPDATECEF

Updating Atomic WebView to Chrome 52
JoshEngebretson 9 years ago
parent
commit
26d98aaedb

+ 6 - 0
Source/AtomicWebView/Internal/WebAppBrowser.cpp

@@ -44,6 +44,12 @@ void WebAppBrowser::OnBeforeCommandLineProcessing(const CefString& process_type,
     command_line->AppendSwitch("--off-screen-rendering-enabled");
     command_line->AppendSwitch("--off-screen-rendering-enabled");
     command_line->AppendSwitch("--transparent-painting-enabled");
     command_line->AppendSwitch("--transparent-painting-enabled");
 
 
+#ifdef ATOMIC_PLATFORM_LINUX
+    // Issues with GPU acceleration (and possibly offscreen rendering)
+    // https://github.com/AtomicGameEngine/AtomicGameEngine/issues/924
+    command_line->AppendSwitch("--disable-gpu");
+#endif
+
     CefApp::OnBeforeCommandLineProcessing(process_type, command_line);
     CefApp::OnBeforeCommandLineProcessing(process_type, command_line);
 }
 }
 
 

+ 1 - 1
Source/AtomicWebView/WebClient.cpp

@@ -199,7 +199,7 @@ public:
     // CefLoadHandler
     // CefLoadHandler
 
 
     void OnLoadStart(CefRefPtr<CefBrowser> browser,
     void OnLoadStart(CefRefPtr<CefBrowser> browser,
-                     CefRefPtr<CefFrame> frame) OVERRIDE
+                     CefRefPtr<CefFrame> frame, TransitionType transition_type) OVERRIDE
     {
     {
         if (webClient_.Null() || !frame->IsMain())
         if (webClient_.Null() || !frame->IsMain())
             return;
             return;

+ 1 - 1
Submodules/CEF

@@ -1 +1 @@
-Subproject commit 5dfa70bed03399552ecb718527be5e30ff2f9b73
+Subproject commit 27a5010ad14d1e1c094d65440a48fa7d76193a37