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

Side by Side Diff: content/shell/webkit_test_controller.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 | « content/public/common/content_switches.cc ('k') | content/shell/webkit_test_helpers.cc » ('j') | 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 "content/shell/webkit_test_controller.h" 5 #include "content/shell/webkit_test_controller.h"
6 6
7 #include <iostream> 7 #include <iostream>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 webkit_glue::WebPreferences* prefs) { 288 webkit_glue::WebPreferences* prefs) {
289 if (should_override_prefs_) { 289 if (should_override_prefs_) {
290 *prefs = prefs_; 290 *prefs = prefs_;
291 } else { 291 } else {
292 ApplyLayoutTestDefaultPreferences(prefs); 292 ApplyLayoutTestDefaultPreferences(prefs);
293 if (is_compositing_test_) { 293 if (is_compositing_test_) {
294 CommandLine& command_line = *CommandLine::ForCurrentProcess(); 294 CommandLine& command_line = *CommandLine::ForCurrentProcess();
295 if (command_line.HasSwitch(switches::kEnableSoftwareCompositing)) 295 if (command_line.HasSwitch(switches::kEnableSoftwareCompositing))
296 prefs->accelerated_2d_canvas_enabled = true; 296 prefs->accelerated_2d_canvas_enabled = true;
297 prefs->accelerated_compositing_for_video_enabled = true; 297 prefs->accelerated_compositing_for_video_enabled = true;
298 prefs->deferred_2d_canvas_enabled = true;
299 prefs->mock_scrollbars_enabled = true; 298 prefs->mock_scrollbars_enabled = true;
300 } 299 }
301 } 300 }
302 } 301 }
303 302
304 bool WebKitTestController::OnMessageReceived(const IPC::Message& message) { 303 bool WebKitTestController::OnMessageReceived(const IPC::Message& message) {
305 DCHECK(CalledOnValidThread()); 304 DCHECK(CalledOnValidThread());
306 bool handled = true; 305 bool handled = true;
307 IPC_BEGIN_MESSAGE_MAP(WebKitTestController, message) 306 IPC_BEGIN_MESSAGE_MAP(WebKitTestController, message)
308 IPC_MESSAGE_HANDLER(ShellViewHostMsg_PrintMessage, OnPrintMessage) 307 IPC_MESSAGE_HANDLER(ShellViewHostMsg_PrintMessage, OnPrintMessage)
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 open_windows[i]->Close(); 593 open_windows[i]->Close();
595 } 594 }
596 MessageLoop::current()->RunUntilIdle(); 595 MessageLoop::current()->RunUntilIdle();
597 } 596 }
598 597
599 void WebKitTestController::OnResetDone() { 598 void WebKitTestController::OnResetDone() {
600 MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure()); 599 MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
601 } 600 }
602 601
603 } // namespace content 602 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/shell/webkit_test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698