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

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

Issue 8771056: Add a command-line switch --enable-per-tile-painting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years 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) 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"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 unified_textchecker_enabled(false), 78 unified_textchecker_enabled(false),
79 accelerated_compositing_enabled(false), 79 accelerated_compositing_enabled(false),
80 threaded_compositing_enabled(false), 80 threaded_compositing_enabled(false),
81 force_compositing_mode(false), 81 force_compositing_mode(false),
82 allow_webui_compositing(false), 82 allow_webui_compositing(false),
83 composite_to_texture_enabled(false), 83 composite_to_texture_enabled(false),
84 fixed_position_compositing_enabled(false), 84 fixed_position_compositing_enabled(false),
85 accelerated_layers_enabled(false), 85 accelerated_layers_enabled(false),
86 accelerated_video_enabled(false), 86 accelerated_video_enabled(false),
87 accelerated_2d_canvas_enabled(false), 87 accelerated_2d_canvas_enabled(false),
88 accelerated_drawing_enabled(false), 88 accelerated_painting_enabled(false),
89 accelerated_filters_enabled(false), 89 accelerated_filters_enabled(false),
90 accelerated_plugins_enabled(false), 90 accelerated_plugins_enabled(false),
91 memory_info_enabled(false), 91 memory_info_enabled(false),
92 interactive_form_validation_enabled(true), 92 interactive_form_validation_enabled(true),
93 fullscreen_enabled(false), 93 fullscreen_enabled(false),
94 allow_displaying_insecure_content(true), 94 allow_displaying_insecure_content(true),
95 allow_running_insecure_content(false), 95 allow_running_insecure_content(false),
96 should_print_backgrounds(false), 96 should_print_backgrounds(false),
97 enable_scroll_animator(false), 97 enable_scroll_animator(false),
98 hixie76_websocket_protocol_enabled(false), 98 hixie76_websocket_protocol_enabled(false),
99 visual_word_movement_enabled(false) { 99 visual_word_movement_enabled(false),
100 per_tile_painting_enabled(false) {
100 } 101 }
101 102
102 WebPreferences::~WebPreferences() { 103 WebPreferences::~WebPreferences() {
103 } 104 }
104 105
105 namespace { 106 namespace {
106 107
107 void setStandardFontFamilyWrapper(WebSettings* settings, 108 void setStandardFontFamilyWrapper(WebSettings* settings,
108 const string16& font, 109 const string16& font,
109 UScriptCode script) { 110 UScriptCode script) {
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 settings->setCompositeToTextureEnabled(composite_to_texture_enabled); 273 settings->setCompositeToTextureEnabled(composite_to_texture_enabled);
273 274
274 // Enable compositing for fixed position elements if requested 275 // Enable compositing for fixed position elements if requested
275 // on the command line. 276 // on the command line.
276 settings->setAcceleratedCompositingForFixedPositionEnabled( 277 settings->setAcceleratedCompositingForFixedPositionEnabled(
277 fixed_position_compositing_enabled); 278 fixed_position_compositing_enabled);
278 279
279 // Enable gpu-accelerated 2d canvas if requested on the command line. 280 // Enable gpu-accelerated 2d canvas if requested on the command line.
280 settings->setAccelerated2dCanvasEnabled(accelerated_2d_canvas_enabled); 281 settings->setAccelerated2dCanvasEnabled(accelerated_2d_canvas_enabled);
281 282
282 // Enable gpu-accelerated drawing if requested on the command line. 283 // Enable gpu-accelerated painting if requested on the command line.
283 settings->setAcceleratedDrawingEnabled(accelerated_drawing_enabled); 284 settings->setAcceleratedPaintingEnabled(accelerated_painting_enabled);
284 285
285 // Enable gpu-accelerated filters if requested on the command line. 286 // Enable gpu-accelerated filters if requested on the command line.
286 settings->setAcceleratedFiltersEnabled(accelerated_filters_enabled); 287 settings->setAcceleratedFiltersEnabled(accelerated_filters_enabled);
287 288
288 // Enabling accelerated layers from the command line enabled accelerated 289 // Enabling accelerated layers from the command line enabled accelerated
289 // 3D CSS, Video, and Animations. 290 // 3D CSS, Video, and Animations.
290 settings->setAcceleratedCompositingFor3DTransformsEnabled( 291 settings->setAcceleratedCompositingFor3DTransformsEnabled(
291 accelerated_layers_enabled); 292 accelerated_layers_enabled);
292 settings->setAcceleratedCompositingForVideoEnabled( 293 settings->setAcceleratedCompositingForVideoEnabled(
293 accelerated_video_enabled); 294 accelerated_video_enabled);
(...skipping 29 matching lines...) Expand all
323 324
324 settings->setFullScreenEnabled(fullscreen_enabled); 325 settings->setFullScreenEnabled(fullscreen_enabled);
325 settings->setAllowDisplayOfInsecureContent(allow_displaying_insecure_content); 326 settings->setAllowDisplayOfInsecureContent(allow_displaying_insecure_content);
326 settings->setAllowRunningOfInsecureContent(allow_running_insecure_content); 327 settings->setAllowRunningOfInsecureContent(allow_running_insecure_content);
327 settings->setShouldPrintBackgrounds(should_print_backgrounds); 328 settings->setShouldPrintBackgrounds(should_print_backgrounds);
328 settings->setEnableScrollAnimator(enable_scroll_animator); 329 settings->setEnableScrollAnimator(enable_scroll_animator);
329 settings->setHixie76WebSocketProtocolEnabled( 330 settings->setHixie76WebSocketProtocolEnabled(
330 hixie76_websocket_protocol_enabled); 331 hixie76_websocket_protocol_enabled);
331 settings->setVisualWordMovementEnabled(visual_word_movement_enabled); 332 settings->setVisualWordMovementEnabled(visual_word_movement_enabled);
332 333
334 // Enable per-tile painting if requested on the command line.
335 settings->setPerTilePaintingEnabled(per_tile_painting_enabled);
336
333 WebNetworkStateNotifier::setOnLine(is_online); 337 WebNetworkStateNotifier::setOnLine(is_online);
334 } 338 }
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