Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 287 webkit_glue::WebPreferences* prefs) { | 287 webkit_glue::WebPreferences* prefs) { |
| 288 if (should_override_prefs_) { | 288 if (should_override_prefs_) { |
| 289 *prefs = prefs_; | 289 *prefs = prefs_; |
| 290 } else { | 290 } else { |
| 291 ApplyLayoutTestDefaultPreferences(prefs); | 291 ApplyLayoutTestDefaultPreferences(prefs); |
| 292 if (is_compositing_test_) { | 292 if (is_compositing_test_) { |
| 293 CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 293 CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 294 if (command_line.HasSwitch(switches::kEnableSoftwareCompositing)) | 294 if (command_line.HasSwitch(switches::kEnableSoftwareCompositing)) |
| 295 prefs->accelerated_2d_canvas_enabled = true; | 295 prefs->accelerated_2d_canvas_enabled = true; |
| 296 prefs->accelerated_compositing_for_video_enabled = true; | 296 prefs->accelerated_compositing_for_video_enabled = true; |
| 297 prefs->deferred_2d_canvas_enabled = true; | |
|
jochen (gone - plz use gerrit)
2013/03/15 13:52:44
did you already remove the option from DumpRenderT
Justin Novosad
2013/03/20 20:00:55
Done: http://trac.webkit.org/changeset/146351
| |
| 298 prefs->mock_scrollbars_enabled = true; | 297 prefs->mock_scrollbars_enabled = true; |
| 299 } | 298 } |
| 300 } | 299 } |
| 301 } | 300 } |
| 302 | 301 |
| 303 bool WebKitTestController::OnMessageReceived(const IPC::Message& message) { | 302 bool WebKitTestController::OnMessageReceived(const IPC::Message& message) { |
| 304 DCHECK(CalledOnValidThread()); | 303 DCHECK(CalledOnValidThread()); |
| 305 bool handled = true; | 304 bool handled = true; |
| 306 IPC_BEGIN_MESSAGE_MAP(WebKitTestController, message) | 305 IPC_BEGIN_MESSAGE_MAP(WebKitTestController, message) |
| 307 IPC_MESSAGE_HANDLER(ShellViewHostMsg_PrintMessage, OnPrintMessage) | 306 IPC_MESSAGE_HANDLER(ShellViewHostMsg_PrintMessage, OnPrintMessage) |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 588 DevToolsManager::GetInstance()->CloseAllClientHosts(); | 587 DevToolsManager::GetInstance()->CloseAllClientHosts(); |
| 589 std::vector<Shell*> open_windows(Shell::windows()); | 588 std::vector<Shell*> open_windows(Shell::windows()); |
| 590 for (size_t i = 0; i < open_windows.size(); ++i) { | 589 for (size_t i = 0; i < open_windows.size(); ++i) { |
| 591 if (open_windows[i] != main_window_) | 590 if (open_windows[i] != main_window_) |
| 592 open_windows[i]->Close(); | 591 open_windows[i]->Close(); |
| 593 } | 592 } |
| 594 MessageLoop::current()->RunUntilIdle(); | 593 MessageLoop::current()->RunUntilIdle(); |
| 595 } | 594 } |
| 596 | 595 |
| 597 } // namespace content | 596 } // namespace content |
| OLD | NEW |