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

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

Issue 8822025: Add --enable-accelerated-filters flag to Chrome. Note that most of this is cargo cult, based on ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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 accelerated_compositing_enabled(false), 78 accelerated_compositing_enabled(false),
79 threaded_compositing_enabled(false), 79 threaded_compositing_enabled(false),
80 force_compositing_mode(false), 80 force_compositing_mode(false),
81 allow_webui_compositing(false), 81 allow_webui_compositing(false),
82 composite_to_texture_enabled(false), 82 composite_to_texture_enabled(false),
83 fixed_position_compositing_enabled(false), 83 fixed_position_compositing_enabled(false),
84 accelerated_layers_enabled(false), 84 accelerated_layers_enabled(false),
85 accelerated_video_enabled(false), 85 accelerated_video_enabled(false),
86 accelerated_2d_canvas_enabled(false), 86 accelerated_2d_canvas_enabled(false),
87 accelerated_drawing_enabled(false), 87 accelerated_drawing_enabled(false),
88 accelerated_filters_enabled(false),
88 accelerated_plugins_enabled(false), 89 accelerated_plugins_enabled(false),
89 memory_info_enabled(false), 90 memory_info_enabled(false),
90 interactive_form_validation_enabled(true), 91 interactive_form_validation_enabled(true),
91 fullscreen_enabled(false), 92 fullscreen_enabled(false),
92 allow_displaying_insecure_content(true), 93 allow_displaying_insecure_content(true),
93 allow_running_insecure_content(false), 94 allow_running_insecure_content(false),
94 should_print_backgrounds(false), 95 should_print_backgrounds(false),
95 enable_scroll_animator(false), 96 enable_scroll_animator(false),
96 hixie76_websocket_protocol_enabled(false), 97 hixie76_websocket_protocol_enabled(false),
97 visual_word_movement_enabled(false) { 98 visual_word_movement_enabled(false) {
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // on the command line. 274 // on the command line.
274 settings->setAcceleratedCompositingForFixedPositionEnabled( 275 settings->setAcceleratedCompositingForFixedPositionEnabled(
275 fixed_position_compositing_enabled); 276 fixed_position_compositing_enabled);
276 277
277 // Enable gpu-accelerated 2d canvas if requested on the command line. 278 // Enable gpu-accelerated 2d canvas if requested on the command line.
278 settings->setAccelerated2dCanvasEnabled(accelerated_2d_canvas_enabled); 279 settings->setAccelerated2dCanvasEnabled(accelerated_2d_canvas_enabled);
279 280
280 // Enable gpu-accelerated drawing if requested on the command line. 281 // Enable gpu-accelerated drawing if requested on the command line.
281 settings->setAcceleratedDrawingEnabled(accelerated_drawing_enabled); 282 settings->setAcceleratedDrawingEnabled(accelerated_drawing_enabled);
282 283
284 // Enable gpu-accelerated filters if requested on the command line.
285 settings->setAcceleratedFiltersEnabled(accelerated_filters_enabled);
286
283 // Enabling accelerated layers from the command line enabled accelerated 287 // Enabling accelerated layers from the command line enabled accelerated
284 // 3D CSS, Video, and Animations. 288 // 3D CSS, Video, and Animations.
285 settings->setAcceleratedCompositingFor3DTransformsEnabled( 289 settings->setAcceleratedCompositingFor3DTransformsEnabled(
286 accelerated_layers_enabled); 290 accelerated_layers_enabled);
287 settings->setAcceleratedCompositingForVideoEnabled( 291 settings->setAcceleratedCompositingForVideoEnabled(
288 accelerated_video_enabled); 292 accelerated_video_enabled);
289 settings->setAcceleratedCompositingForAnimationEnabled( 293 settings->setAcceleratedCompositingForAnimationEnabled(
290 accelerated_layers_enabled); 294 accelerated_layers_enabled);
291 295
292 // Enabling accelerated plugins if specified from the command line. 296 // Enabling accelerated plugins if specified from the command line.
(...skipping 26 matching lines...) Expand all
319 settings->setAllowDisplayOfInsecureContent(allow_displaying_insecure_content); 323 settings->setAllowDisplayOfInsecureContent(allow_displaying_insecure_content);
320 settings->setAllowRunningOfInsecureContent(allow_running_insecure_content); 324 settings->setAllowRunningOfInsecureContent(allow_running_insecure_content);
321 settings->setShouldPrintBackgrounds(should_print_backgrounds); 325 settings->setShouldPrintBackgrounds(should_print_backgrounds);
322 settings->setEnableScrollAnimator(enable_scroll_animator); 326 settings->setEnableScrollAnimator(enable_scroll_animator);
323 settings->setHixie76WebSocketProtocolEnabled( 327 settings->setHixie76WebSocketProtocolEnabled(
324 hixie76_websocket_protocol_enabled); 328 hixie76_websocket_protocol_enabled);
325 settings->setVisualWordMovementEnabled(visual_word_movement_enabled); 329 settings->setVisualWordMovementEnabled(visual_word_movement_enabled);
326 330
327 WebNetworkStateNotifier::setOnLine(is_online); 331 WebNetworkStateNotifier::setOnLine(is_online);
328 } 332 }
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