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

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

Issue 11778051: Add a switch to enable composited scrolling for frames and enable it on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/WebKit/chromium/public/WebNetworkStateNotifi er.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNetworkStateNotifi er.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 flash_3d_enabled(true), 78 flash_3d_enabled(true),
79 flash_stage3d_enabled(false), 79 flash_stage3d_enabled(false),
80 gl_multisampling_enabled(true), 80 gl_multisampling_enabled(true),
81 privileged_webgl_extensions_enabled(false), 81 privileged_webgl_extensions_enabled(false),
82 webgl_errors_to_console_enabled(true), 82 webgl_errors_to_console_enabled(true),
83 show_composited_layer_borders(false), 83 show_composited_layer_borders(false),
84 show_composited_layer_tree(false), 84 show_composited_layer_tree(false),
85 show_fps_counter(false), 85 show_fps_counter(false),
86 accelerated_compositing_for_overflow_scroll_enabled(false), 86 accelerated_compositing_for_overflow_scroll_enabled(false),
87 accelerated_compositing_for_scrollable_frames_enabled(false), 87 accelerated_compositing_for_scrollable_frames_enabled(false),
88 composited_scrolling_for_frames_enabled(false),
88 show_paint_rects(false), 89 show_paint_rects(false),
89 render_vsync_enabled(true), 90 render_vsync_enabled(true),
90 asynchronous_spell_checking_enabled(true), 91 asynchronous_spell_checking_enabled(true),
91 unified_textchecker_enabled(false), 92 unified_textchecker_enabled(false),
92 accelerated_compositing_enabled(false), 93 accelerated_compositing_enabled(false),
93 force_compositing_mode(false), 94 force_compositing_mode(false),
94 fixed_position_compositing_enabled(false), 95 fixed_position_compositing_enabled(false),
95 accelerated_compositing_for_3d_transforms_enabled(false), 96 accelerated_compositing_for_3d_transforms_enabled(false),
96 accelerated_compositing_for_animation_enabled(false), 97 accelerated_compositing_for_animation_enabled(false),
97 accelerated_compositing_for_video_enabled(false), 98 accelerated_compositing_for_video_enabled(false),
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 357
357 // Enables accelerated compositing for overflow scroll. 358 // Enables accelerated compositing for overflow scroll.
358 settings->setAcceleratedCompositingForOverflowScrollEnabled( 359 settings->setAcceleratedCompositingForOverflowScrollEnabled(
359 accelerated_compositing_for_overflow_scroll_enabled); 360 accelerated_compositing_for_overflow_scroll_enabled);
360 361
361 // Enables accelerated compositing for scrollable frames if requested on 362 // Enables accelerated compositing for scrollable frames if requested on
362 // command line. 363 // command line.
363 settings->setAcceleratedCompositingForScrollableFramesEnabled( 364 settings->setAcceleratedCompositingForScrollableFramesEnabled(
364 accelerated_compositing_for_scrollable_frames_enabled); 365 accelerated_compositing_for_scrollable_frames_enabled);
365 366
367 // Enables composited scrolling for frames if requested on command line.
368 settings->setCompositedScrollingForFramesEnabled(
369 composited_scrolling_for_frames_enabled);
370
366 // Display the current compositor tree as overlay if requested on 371 // Display the current compositor tree as overlay if requested on
367 // the command line 372 // the command line
368 settings->setShowPlatformLayerTree(show_composited_layer_tree); 373 settings->setShowPlatformLayerTree(show_composited_layer_tree);
369 374
370 // Display visualization of what has changed on the screen using an 375 // Display visualization of what has changed on the screen using an
371 // overlay of rects, if requested on the command line. 376 // overlay of rects, if requested on the command line.
372 settings->setShowPaintRects(show_paint_rects); 377 settings->setShowPaintRects(show_paint_rects);
373 378
374 // Set whether to throttle framerate to Vsync. 379 // Set whether to throttle framerate to Vsync.
375 settings->setRenderVSyncEnabled(render_vsync_enabled); 380 settings->setRenderVSyncEnabled(render_vsync_enabled);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 mismatching_enums) 491 mismatching_enums)
487 492
488 COMPILE_ASSERT_MATCHING_ENUMS( 493 COMPILE_ASSERT_MATCHING_ENUMS(
489 WebPreferences::EDITING_BEHAVIOR_MAC, WebSettings::EditingBehaviorMac); 494 WebPreferences::EDITING_BEHAVIOR_MAC, WebSettings::EditingBehaviorMac);
490 COMPILE_ASSERT_MATCHING_ENUMS( 495 COMPILE_ASSERT_MATCHING_ENUMS(
491 WebPreferences::EDITING_BEHAVIOR_WIN, WebSettings::EditingBehaviorWin); 496 WebPreferences::EDITING_BEHAVIOR_WIN, WebSettings::EditingBehaviorWin);
492 COMPILE_ASSERT_MATCHING_ENUMS( 497 COMPILE_ASSERT_MATCHING_ENUMS(
493 WebPreferences::EDITING_BEHAVIOR_UNIX, WebSettings::EditingBehaviorUnix); 498 WebPreferences::EDITING_BEHAVIOR_UNIX, WebSettings::EditingBehaviorUnix);
494 499
495 } // namespace webkit_glue 500 } // 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