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

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

Issue 11414308: Add vsync notification command line switch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 10 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
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 composited_scrolling_for_frames_enabled(false),
89 mock_scrollbars_enabled(false), 89 mock_scrollbars_enabled(false),
90 show_paint_rects(false), 90 show_paint_rects(false),
91 render_vsync_enabled(true), 91 render_vsync_enabled(true),
92 render_vsync_notification_enabled(false),
92 asynchronous_spell_checking_enabled(true), 93 asynchronous_spell_checking_enabled(true),
93 unified_textchecker_enabled(false), 94 unified_textchecker_enabled(false),
94 accelerated_compositing_enabled(false), 95 accelerated_compositing_enabled(false),
95 force_compositing_mode(false), 96 force_compositing_mode(false),
96 accelerated_compositing_for_3d_transforms_enabled(false), 97 accelerated_compositing_for_3d_transforms_enabled(false),
97 accelerated_compositing_for_animation_enabled(false), 98 accelerated_compositing_for_animation_enabled(false),
98 accelerated_compositing_for_video_enabled(false), 99 accelerated_compositing_for_video_enabled(false),
99 accelerated_2d_canvas_enabled(false), 100 accelerated_2d_canvas_enabled(false),
100 deferred_2d_canvas_enabled(false), 101 deferred_2d_canvas_enabled(false),
101 antialiased_2d_canvas_disabled(false), 102 antialiased_2d_canvas_disabled(false),
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 383
383 // Display visualization of what has changed on the screen using an 384 // Display visualization of what has changed on the screen using an
384 // overlay of rects, if requested on the command line. 385 // overlay of rects, if requested on the command line.
385 settings->setShowPaintRects(show_paint_rects); 386 settings->setShowPaintRects(show_paint_rects);
386 387
387 // Record rendering stats for benchmarks. 388 // Record rendering stats for benchmarks.
388 settings->setRecordRenderingStats(record_rendering_stats); 389 settings->setRecordRenderingStats(record_rendering_stats);
389 390
390 // Set whether to throttle framerate to Vsync. 391 // Set whether to throttle framerate to Vsync.
391 settings->setRenderVSyncEnabled(render_vsync_enabled); 392 settings->setRenderVSyncEnabled(render_vsync_enabled);
393 settings->setRenderVSyncNotificationEnabled(
394 render_vsync_notification_enabled);
392 395
393 // Enable gpu-accelerated compositing if requested on the command line. 396 // Enable gpu-accelerated compositing if requested on the command line.
394 settings->setAcceleratedCompositingEnabled(accelerated_compositing_enabled); 397 settings->setAcceleratedCompositingEnabled(accelerated_compositing_enabled);
395 398
396 // Enable gpu-accelerated 2d canvas if requested on the command line. 399 // Enable gpu-accelerated 2d canvas if requested on the command line.
397 settings->setAccelerated2dCanvasEnabled(accelerated_2d_canvas_enabled); 400 settings->setAccelerated2dCanvasEnabled(accelerated_2d_canvas_enabled);
398 401
399 // Enable deferred 2d canvas if requested on the command line. 402 // Enable deferred 2d canvas if requested on the command line.
400 settings->setDeferred2dCanvasEnabled(deferred_2d_canvas_enabled); 403 settings->setDeferred2dCanvasEnabled(deferred_2d_canvas_enabled);
401 404
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 WebPreferences::EDITING_BEHAVIOR_MAC, WebSettings::EditingBehaviorMac); 509 WebPreferences::EDITING_BEHAVIOR_MAC, WebSettings::EditingBehaviorMac);
507 COMPILE_ASSERT_MATCHING_ENUMS( 510 COMPILE_ASSERT_MATCHING_ENUMS(
508 WebPreferences::EDITING_BEHAVIOR_WIN, WebSettings::EditingBehaviorWin); 511 WebPreferences::EDITING_BEHAVIOR_WIN, WebSettings::EditingBehaviorWin);
509 COMPILE_ASSERT_MATCHING_ENUMS( 512 COMPILE_ASSERT_MATCHING_ENUMS(
510 WebPreferences::EDITING_BEHAVIOR_UNIX, WebSettings::EditingBehaviorUnix); 513 WebPreferences::EDITING_BEHAVIOR_UNIX, WebSettings::EditingBehaviorUnix);
511 COMPILE_ASSERT_MATCHING_ENUMS( 514 COMPILE_ASSERT_MATCHING_ENUMS(
512 WebPreferences::EDITING_BEHAVIOR_ANDROID, 515 WebPreferences::EDITING_BEHAVIOR_ANDROID,
513 WebSettings::EditingBehaviorAndroid); 516 WebSettings::EditingBehaviorAndroid);
514 517
515 } // namespace webkit_glue 518 } // namespace webkit_glue
OLDNEW
« webkit/compositor_bindings/web_layer_tree_view_impl.cc ('K') | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698