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 if (command_line.HasSwitch(switches::kEnableLayerSquashing)) | 373 if (command_line.HasSwitch(switches::kEnableLayerSquashing)) |
374 prefs.layer_squashing_enabled = true; | 374 prefs.layer_squashing_enabled = true; |
375 if (command_line.HasSwitch(switches::kDisableLayerSquashing)) | 375 if (command_line.HasSwitch(switches::kDisableLayerSquashing)) |
376 prefs.layer_squashing_enabled = false; | 376 prefs.layer_squashing_enabled = false; |
377 | 377 |
378 prefs.accelerated_2d_canvas_enabled = | 378 prefs.accelerated_2d_canvas_enabled = |
379 GpuProcessHost::gpu_enabled() && | 379 GpuProcessHost::gpu_enabled() && |
380 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas); | 380 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas); |
381 prefs.antialiased_2d_canvas_disabled = | 381 prefs.antialiased_2d_canvas_disabled = |
382 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing); | 382 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing); |
| 383 prefs.antialiased_clips_2d_canvas_enabled = |
| 384 command_line.HasSwitch(switches::kEnable2dCanvasClipAntialiasing); |
383 prefs.accelerated_2d_canvas_msaa_sample_count = | 385 prefs.accelerated_2d_canvas_msaa_sample_count = |
384 atoi(command_line.GetSwitchValueASCII( | 386 atoi(command_line.GetSwitchValueASCII( |
385 switches::kAcceleratedCanvas2dMSAASampleCount).c_str()); | 387 switches::kAcceleratedCanvas2dMSAASampleCount).c_str()); |
386 prefs.container_culling_enabled = | 388 prefs.container_culling_enabled = |
387 command_line.HasSwitch(switches::kEnableContainerCulling); | 389 command_line.HasSwitch(switches::kEnableContainerCulling); |
388 prefs.text_blobs_enabled = | 390 prefs.text_blobs_enabled = |
389 command_line.HasSwitch(switches::kEnableTextBlobs); | 391 command_line.HasSwitch(switches::kEnableTextBlobs); |
390 prefs.region_based_columns_enabled = | 392 prefs.region_based_columns_enabled = |
391 command_line.HasSwitch(switches::kEnableRegionBasedColumns); | 393 command_line.HasSwitch(switches::kEnableRegionBasedColumns); |
392 | 394 |
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1405 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1407 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1406 | 1408 |
1407 frame_tree->ResetForMainFrameSwap(); | 1409 frame_tree->ResetForMainFrameSwap(); |
1408 } | 1410 } |
1409 | 1411 |
1410 void RenderViewHostImpl::SelectWordAroundCaret() { | 1412 void RenderViewHostImpl::SelectWordAroundCaret() { |
1411 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1413 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
1412 } | 1414 } |
1413 | 1415 |
1414 } // namespace content | 1416 } // namespace content |
OLD | NEW |