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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/glue/webpreferences.h" 5 #include "webkit/glue/webpreferences.h"
6 6
7 #include <unicode/uchar.h> 7 #include <unicode/uchar.h>
8 8
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #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
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNetworkStateNotifi er.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNetworkStateNotifi er.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSettings.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSettings.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
18 #include "webkit/glue/webkit_glue.h" 19 #include "webkit/glue/webkit_glue.h"
19 20
20 using WebKit::WebNetworkStateNotifier; 21 using WebKit::WebNetworkStateNotifier;
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 // Display an FPS indicator if requested on the command line. 252 // Display an FPS indicator if requested on the command line.
252 settings->setShowFPSCounter(show_fps_counter); 253 settings->setShowFPSCounter(show_fps_counter);
253 254
254 // Display the current compositor tree as overlay if requested on 255 // Display the current compositor tree as overlay if requested on
255 // the command line 256 // the command line
256 settings->setShowPlatformLayerTree(show_composited_layer_tree); 257 settings->setShowPlatformLayerTree(show_composited_layer_tree);
257 258
258 // Enable gpu-accelerated compositing if requested on the command line. 259 // Enable gpu-accelerated compositing if requested on the command line.
259 settings->setAcceleratedCompositingEnabled(accelerated_compositing_enabled); 260 settings->setAcceleratedCompositingEnabled(accelerated_compositing_enabled);
260 261
262 #ifndef WEBCOMPOSITOR_HAS_INITIALIZE
261 settings->setUseThreadedCompositor(threaded_compositing_enabled); 263 settings->setUseThreadedCompositor(threaded_compositing_enabled);
tony 2011/11/18 23:30:08 It feels weird to conditionally set this. Should
264 #endif
262 265
263 // Always enter compositing if requested on the command line. 266 // Always enter compositing if requested on the command line.
264 settings->setForceCompositingMode(force_compositing_mode); 267 settings->setForceCompositingMode(force_compositing_mode);
265 268
266 // Enable composite to offscreen texture if requested on the command line. 269 // Enable composite to offscreen texture if requested on the command line.
267 settings->setCompositeToTextureEnabled(composite_to_texture_enabled); 270 settings->setCompositeToTextureEnabled(composite_to_texture_enabled);
268 271
269 // Enable compositing for fixed position elements if requested 272 // Enable compositing for fixed position elements if requested
270 // on the command line. 273 // on the command line.
271 settings->setAcceleratedCompositingForFixedPositionEnabled( 274 settings->setAcceleratedCompositingForFixedPositionEnabled(
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 settings->setAllowDisplayOfInsecureContent(allow_displaying_insecure_content); 319 settings->setAllowDisplayOfInsecureContent(allow_displaying_insecure_content);
317 settings->setAllowRunningOfInsecureContent(allow_running_insecure_content); 320 settings->setAllowRunningOfInsecureContent(allow_running_insecure_content);
318 settings->setShouldPrintBackgrounds(should_print_backgrounds); 321 settings->setShouldPrintBackgrounds(should_print_backgrounds);
319 settings->setEnableScrollAnimator(enable_scroll_animator); 322 settings->setEnableScrollAnimator(enable_scroll_animator);
320 settings->setHixie76WebSocketProtocolEnabled( 323 settings->setHixie76WebSocketProtocolEnabled(
321 hixie76_websocket_protocol_enabled); 324 hixie76_websocket_protocol_enabled);
322 settings->setVisualWordMovementEnabled(visual_word_movement_enabled); 325 settings->setVisualWordMovementEnabled(visual_word_movement_enabled);
323 326
324 WebNetworkStateNotifier::setOnLine(is_online); 327 WebNetworkStateNotifier::setOnLine(is_online);
325 } 328 }
OLDNEW
« 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