Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Unified Diff: webkit/glue/webpreferences.cc

Issue 8558030: Prepare Chromium for WebCompositor::initialize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« ui/gfx/compositor/compositor_cc.cc ('K') | « ui/gfx/compositor/compositor_cc.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webpreferences.cc
diff --git a/webkit/glue/webpreferences.cc b/webkit/glue/webpreferences.cc
index 199c6e7d51f42b1fc51e9b758e2eb10d9d66f292..6c435bbbf2a7f3517bd8f875fb4f8fa9de161be5 100644
--- a/webkit/glue/webpreferences.cc
+++ b/webkit/glue/webpreferences.cc
@@ -8,6 +8,7 @@
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositor.h"
tony 2011/11/18 23:30:08 Is this needed for this change or you're just doin
#include "third_party/WebKit/Source/WebKit/chromium/public/WebNetworkStateNotifier.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
@@ -258,7 +259,9 @@ void WebPreferences::Apply(WebView* web_view) const {
// Enable gpu-accelerated compositing if requested on the command line.
settings->setAcceleratedCompositingEnabled(accelerated_compositing_enabled);
+#ifndef WEBCOMPOSITOR_HAS_INITIALIZE
settings->setUseThreadedCompositor(threaded_compositing_enabled);
tony 2011/11/18 23:30:08 It feels weird to conditionally set this. Should
+#endif
// Always enter compositing if requested on the command line.
settings->setForceCompositingMode(force_compositing_mode);
« ui/gfx/compositor/compositor_cc.cc ('K') | « ui/gfx/compositor/compositor_cc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698