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

Side by Side Diff: webkit/glue/webpreferences.cc

Issue 12871012: Removing command line switch to disable deferred 2d canvas. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed call to setDeferred2dCanvasEnabled in webpreferences.cc Created 7 years, 9 months 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
« no previous file with comments | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 show_paint_rects(false), 87 show_paint_rects(false),
88 asynchronous_spell_checking_enabled(true), 88 asynchronous_spell_checking_enabled(true),
89 unified_textchecker_enabled(false), 89 unified_textchecker_enabled(false),
90 accelerated_compositing_enabled(false), 90 accelerated_compositing_enabled(false),
91 force_compositing_mode(false), 91 force_compositing_mode(false),
92 accelerated_compositing_for_3d_transforms_enabled(false), 92 accelerated_compositing_for_3d_transforms_enabled(false),
93 accelerated_compositing_for_animation_enabled(false), 93 accelerated_compositing_for_animation_enabled(false),
94 accelerated_compositing_for_video_enabled(false), 94 accelerated_compositing_for_video_enabled(false),
95 accelerated_2d_canvas_enabled(false), 95 accelerated_2d_canvas_enabled(false),
96 minimum_accelerated_2d_canvas_size(257 * 256), 96 minimum_accelerated_2d_canvas_size(257 * 256),
97 deferred_2d_canvas_enabled(false),
98 antialiased_2d_canvas_disabled(false), 97 antialiased_2d_canvas_disabled(false),
99 accelerated_filters_enabled(false), 98 accelerated_filters_enabled(false),
100 gesture_tap_highlight_enabled(false), 99 gesture_tap_highlight_enabled(false),
101 accelerated_compositing_for_plugins_enabled(false), 100 accelerated_compositing_for_plugins_enabled(false),
102 memory_info_enabled(false), 101 memory_info_enabled(false),
103 fullscreen_enabled(false), 102 fullscreen_enabled(false),
104 allow_displaying_insecure_content(true), 103 allow_displaying_insecure_content(true),
105 allow_running_insecure_content(false), 104 allow_running_insecure_content(false),
106 password_echo_enabled(false), 105 password_echo_enabled(false),
107 should_print_backgrounds(false), 106 should_print_backgrounds(false),
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 373
375 // Enable gpu-accelerated compositing if requested on the command line. 374 // Enable gpu-accelerated compositing if requested on the command line.
376 settings->setAcceleratedCompositingEnabled(accelerated_compositing_enabled); 375 settings->setAcceleratedCompositingEnabled(accelerated_compositing_enabled);
377 376
378 // Enable gpu-accelerated 2d canvas if requested on the command line. 377 // Enable gpu-accelerated 2d canvas if requested on the command line.
379 settings->setAccelerated2dCanvasEnabled(accelerated_2d_canvas_enabled); 378 settings->setAccelerated2dCanvasEnabled(accelerated_2d_canvas_enabled);
380 379
381 settings->setMinimumAccelerated2dCanvasSize( 380 settings->setMinimumAccelerated2dCanvasSize(
382 minimum_accelerated_2d_canvas_size); 381 minimum_accelerated_2d_canvas_size);
383 382
384 // Enable deferred 2d canvas if requested on the command line.
385 settings->setDeferred2dCanvasEnabled(deferred_2d_canvas_enabled);
386
387 // Disable antialiasing for 2d canvas if requested on the command line. 383 // Disable antialiasing for 2d canvas if requested on the command line.
388 settings->setAntialiased2dCanvasEnabled(!antialiased_2d_canvas_disabled); 384 settings->setAntialiased2dCanvasEnabled(!antialiased_2d_canvas_disabled);
389 385
390 // Enable gpu-accelerated filters if requested on the command line. 386 // Enable gpu-accelerated filters if requested on the command line.
391 settings->setAcceleratedFiltersEnabled(accelerated_filters_enabled); 387 settings->setAcceleratedFiltersEnabled(accelerated_filters_enabled);
392 388
393 // Enable gesture tap highlight if requested on the command line. 389 // Enable gesture tap highlight if requested on the command line.
394 settings->setGestureTapHighlightEnabled(gesture_tap_highlight_enabled); 390 settings->setGestureTapHighlightEnabled(gesture_tap_highlight_enabled);
395 391
396 // Enabling accelerated layers from the command line enabled accelerated 392 // Enabling accelerated layers from the command line enabled accelerated
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 WebPreferences::EDITING_BEHAVIOR_MAC, WebSettings::EditingBehaviorMac); 483 WebPreferences::EDITING_BEHAVIOR_MAC, WebSettings::EditingBehaviorMac);
488 COMPILE_ASSERT_MATCHING_ENUMS( 484 COMPILE_ASSERT_MATCHING_ENUMS(
489 WebPreferences::EDITING_BEHAVIOR_WIN, WebSettings::EditingBehaviorWin); 485 WebPreferences::EDITING_BEHAVIOR_WIN, WebSettings::EditingBehaviorWin);
490 COMPILE_ASSERT_MATCHING_ENUMS( 486 COMPILE_ASSERT_MATCHING_ENUMS(
491 WebPreferences::EDITING_BEHAVIOR_UNIX, WebSettings::EditingBehaviorUnix); 487 WebPreferences::EDITING_BEHAVIOR_UNIX, WebSettings::EditingBehaviorUnix);
492 COMPILE_ASSERT_MATCHING_ENUMS( 488 COMPILE_ASSERT_MATCHING_ENUMS(
493 WebPreferences::EDITING_BEHAVIOR_ANDROID, 489 WebPreferences::EDITING_BEHAVIOR_ANDROID,
494 WebSettings::EditingBehaviorAndroid); 490 WebSettings::EditingBehaviorAndroid);
495 491
496 } // namespace webkit_glue 492 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698