| 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/browser/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 prefs.flash_stage3d_enabled = | 373 prefs.flash_stage3d_enabled = |
| 374 GpuProcessHost::gpu_enabled() && | 374 GpuProcessHost::gpu_enabled() && |
| 375 !command_line.HasSwitch(switches::kDisableFlashStage3d); | 375 !command_line.HasSwitch(switches::kDisableFlashStage3d); |
| 376 prefs.flash_stage3d_baseline_enabled = | 376 prefs.flash_stage3d_baseline_enabled = |
| 377 GpuProcessHost::gpu_enabled() && | 377 GpuProcessHost::gpu_enabled() && |
| 378 !command_line.HasSwitch(switches::kDisableFlashStage3d); | 378 !command_line.HasSwitch(switches::kDisableFlashStage3d); |
| 379 | 379 |
| 380 prefs.allow_file_access_from_file_urls = | 380 prefs.allow_file_access_from_file_urls = |
| 381 command_line.HasSwitch(switches::kAllowFileAccessFromFiles); | 381 command_line.HasSwitch(switches::kAllowFileAccessFromFiles); |
| 382 | 382 |
| 383 prefs.layer_squashing_enabled = true; |
| 384 if (command_line.HasSwitch(switches::kEnableLayerSquashing)) |
| 385 prefs.layer_squashing_enabled = true; |
| 386 if (command_line.HasSwitch(switches::kDisableLayerSquashing)) |
| 387 prefs.layer_squashing_enabled = false; |
| 388 |
| 383 prefs.accelerated_2d_canvas_enabled = | 389 prefs.accelerated_2d_canvas_enabled = |
| 384 GpuProcessHost::gpu_enabled() && | 390 GpuProcessHost::gpu_enabled() && |
| 385 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas); | 391 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas); |
| 386 prefs.antialiased_2d_canvas_disabled = | 392 prefs.antialiased_2d_canvas_disabled = |
| 387 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing); | 393 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing); |
| 388 prefs.antialiased_clips_2d_canvas_enabled = | 394 prefs.antialiased_clips_2d_canvas_enabled = |
| 389 command_line.HasSwitch(switches::kEnable2dCanvasClipAntialiasing); | 395 command_line.HasSwitch(switches::kEnable2dCanvasClipAntialiasing); |
| 390 prefs.accelerated_2d_canvas_msaa_sample_count = | 396 prefs.accelerated_2d_canvas_msaa_sample_count = |
| 391 atoi(command_line.GetSwitchValueASCII( | 397 atoi(command_line.GetSwitchValueASCII( |
| 392 switches::kAcceleratedCanvas2dMSAASampleCount).c_str()); | 398 switches::kAcceleratedCanvas2dMSAASampleCount).c_str()); |
| (...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1478 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1484 FrameTree* frame_tree = delegate_->GetFrameTree(); |
| 1479 | 1485 |
| 1480 frame_tree->ResetForMainFrameSwap(); | 1486 frame_tree->ResetForMainFrameSwap(); |
| 1481 } | 1487 } |
| 1482 | 1488 |
| 1483 void RenderViewHostImpl::SelectWordAroundCaret() { | 1489 void RenderViewHostImpl::SelectWordAroundCaret() { |
| 1484 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1490 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
| 1485 } | 1491 } |
| 1486 | 1492 |
| 1487 } // namespace content | 1493 } // namespace content |
| OLD | NEW |