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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
378 prefs.flash_3d_enabled = | 378 prefs.flash_3d_enabled = |
379 GpuProcessHost::gpu_enabled() && | 379 GpuProcessHost::gpu_enabled() && |
380 !command_line.HasSwitch(switches::kDisableFlash3d); | 380 !command_line.HasSwitch(switches::kDisableFlash3d); |
381 prefs.flash_stage3d_enabled = | 381 prefs.flash_stage3d_enabled = |
382 GpuProcessHost::gpu_enabled() && | 382 GpuProcessHost::gpu_enabled() && |
383 !command_line.HasSwitch(switches::kDisableFlashStage3d); | 383 !command_line.HasSwitch(switches::kDisableFlashStage3d); |
384 prefs.flash_stage3d_baseline_enabled = | 384 prefs.flash_stage3d_baseline_enabled = |
385 GpuProcessHost::gpu_enabled() && | 385 GpuProcessHost::gpu_enabled() && |
386 !command_line.HasSwitch(switches::kDisableFlashStage3d); | 386 !command_line.HasSwitch(switches::kDisableFlashStage3d); |
387 | 387 |
388 prefs.gl_multisampling_enabled = | |
389 !command_line.HasSwitch(switches::kDisableGLMultisampling); | |
Zhenyao Mo
2014/06/09 20:39:39
This is handled in GpuDataManagerImpl::GetInstance
| |
390 prefs.site_specific_quirks_enabled = | 388 prefs.site_specific_quirks_enabled = |
391 !command_line.HasSwitch(switches::kDisableSiteSpecificQuirks); | 389 !command_line.HasSwitch(switches::kDisableSiteSpecificQuirks); |
392 prefs.allow_file_access_from_file_urls = | 390 prefs.allow_file_access_from_file_urls = |
393 command_line.HasSwitch(switches::kAllowFileAccessFromFiles); | 391 command_line.HasSwitch(switches::kAllowFileAccessFromFiles); |
394 | 392 |
395 prefs.layer_squashing_enabled = true; | 393 prefs.layer_squashing_enabled = true; |
396 if (command_line.HasSwitch(switches::kEnableLayerSquashing)) | 394 if (command_line.HasSwitch(switches::kEnableLayerSquashing)) |
397 prefs.layer_squashing_enabled = true; | 395 prefs.layer_squashing_enabled = true; |
398 if (command_line.HasSwitch(switches::kDisableLayerSquashing)) | 396 if (command_line.HasSwitch(switches::kDisableLayerSquashing)) |
399 prefs.layer_squashing_enabled = false; | 397 prefs.layer_squashing_enabled = false; |
(...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1671 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1669 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1672 | 1670 |
1673 frame_tree->ResetForMainFrameSwap(); | 1671 frame_tree->ResetForMainFrameSwap(); |
1674 } | 1672 } |
1675 | 1673 |
1676 void RenderViewHostImpl::SelectWordAroundCaret() { | 1674 void RenderViewHostImpl::SelectWordAroundCaret() { |
1677 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1675 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
1678 } | 1676 } |
1679 | 1677 |
1680 } // namespace content | 1678 } // namespace content |
OLD | NEW |