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 | |
389 prefs.accelerated_2d_canvas_enabled = | 383 prefs.accelerated_2d_canvas_enabled = |
390 GpuProcessHost::gpu_enabled() && | 384 GpuProcessHost::gpu_enabled() && |
391 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas); | 385 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas); |
392 prefs.antialiased_2d_canvas_disabled = | 386 prefs.antialiased_2d_canvas_disabled = |
393 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing); | 387 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing); |
394 prefs.antialiased_clips_2d_canvas_enabled = | 388 prefs.antialiased_clips_2d_canvas_enabled = |
395 command_line.HasSwitch(switches::kEnable2dCanvasClipAntialiasing); | 389 command_line.HasSwitch(switches::kEnable2dCanvasClipAntialiasing); |
396 prefs.accelerated_2d_canvas_msaa_sample_count = | 390 prefs.accelerated_2d_canvas_msaa_sample_count = |
397 atoi(command_line.GetSwitchValueASCII( | 391 atoi(command_line.GetSwitchValueASCII( |
398 switches::kAcceleratedCanvas2dMSAASampleCount).c_str()); | 392 switches::kAcceleratedCanvas2dMSAASampleCount).c_str()); |
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1484 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1478 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1485 | 1479 |
1486 frame_tree->ResetForMainFrameSwap(); | 1480 frame_tree->ResetForMainFrameSwap(); |
1487 } | 1481 } |
1488 | 1482 |
1489 void RenderViewHostImpl::SelectWordAroundCaret() { | 1483 void RenderViewHostImpl::SelectWordAroundCaret() { |
1490 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1484 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
1491 } | 1485 } |
1492 | 1486 |
1493 } // namespace content | 1487 } // namespace content |
OLD | NEW |