diff options
author | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2013-11-13 11:14:04 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-15 13:49:20 +0100 |
commit | 42a4854214a7440f482f0ba613725701688a7efe (patch) | |
tree | 56f52c9a3141de3cb06759c87845b5ed2b03e831 /lib/web_contents_delegate_qt.cpp | |
parent | f5be472e0ba4aa19d0c0f91a848dfa5be9ebaa3b (diff) |
Delegated renderer: enable by default for QQuickWebView.
This also allows the software code path to be enabled:
- Programmatically by setting this dynamic property on the QCoreApplication:
"QQuickWebEngineView_DisableHardwareAcceleration"
- Through the Chromium command line switch "--disable-delegated-renderer"
for quick development use cases.
Change-Id: I32136d880444e0a24f042c7c4862950b7ed0c910
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Diffstat (limited to 'lib/web_contents_delegate_qt.cpp')
-rw-r--r-- | lib/web_contents_delegate_qt.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/web_contents_delegate_qt.cpp b/lib/web_contents_delegate_qt.cpp index 32e0ea1ca..5a96d9be4 100644 --- a/lib/web_contents_delegate_qt.cpp +++ b/lib/web_contents_delegate_qt.cpp @@ -44,6 +44,7 @@ #include "type_conversion.h" #include "web_contents_adapter.h" #include "web_contents_adapter_client.h" +#include "web_engine_context.h" #include "content/public/browser/render_view_host.h" #include "content/public/browser/web_contents.h" @@ -65,7 +66,7 @@ void WebContentsDelegateQt::NavigationStateChanged(const content::WebContents* s void WebContentsDelegateQt::AddNewContents(content::WebContents* source, content::WebContents* new_contents, WindowOpenDisposition disposition, const gfx::Rect& initial_pos, bool user_gesture, bool* was_blocked) { - WebContentsAdapter *newAdapter = new WebContentsAdapter(new_contents); + WebContentsAdapter *newAdapter = new WebContentsAdapter(WebEngineContext::current()->renderingMode(), new_contents); // Do the first ref-count manually to be able to know if the application is handling adoptNewWindow through the public API. newAdapter->ref.ref(); |