Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(877)

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 643433003: Remove deferred filters command-line flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 prefs.layer_squashing_enabled = false; 364 prefs.layer_squashing_enabled = false;
365 365
366 prefs.accelerated_2d_canvas_enabled = 366 prefs.accelerated_2d_canvas_enabled =
367 GpuProcessHost::gpu_enabled() && 367 GpuProcessHost::gpu_enabled() &&
368 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas); 368 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas);
369 prefs.antialiased_2d_canvas_disabled = 369 prefs.antialiased_2d_canvas_disabled =
370 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing); 370 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing);
371 prefs.accelerated_2d_canvas_msaa_sample_count = 371 prefs.accelerated_2d_canvas_msaa_sample_count =
372 atoi(command_line.GetSwitchValueASCII( 372 atoi(command_line.GetSwitchValueASCII(
373 switches::kAcceleratedCanvas2dMSAASampleCount).c_str()); 373 switches::kAcceleratedCanvas2dMSAASampleCount).c_str());
374 prefs.deferred_filters_enabled =
375 !command_line.HasSwitch(switches::kDisableDeferredFilters);
376 prefs.container_culling_enabled = 374 prefs.container_culling_enabled =
377 command_line.HasSwitch(switches::kEnableContainerCulling); 375 command_line.HasSwitch(switches::kEnableContainerCulling);
378 prefs.text_blobs_enabled = 376 prefs.text_blobs_enabled =
379 command_line.HasSwitch(switches::kEnableTextBlobs); 377 command_line.HasSwitch(switches::kEnableTextBlobs);
380 prefs.region_based_columns_enabled = 378 prefs.region_based_columns_enabled =
381 command_line.HasSwitch(switches::kEnableRegionBasedColumns); 379 command_line.HasSwitch(switches::kEnableRegionBasedColumns);
382 380
383 if (IsPinchVirtualViewportEnabled()) { 381 if (IsPinchVirtualViewportEnabled()) {
384 prefs.pinch_virtual_viewport_enabled = true; 382 prefs.pinch_virtual_viewport_enabled = true;
385 prefs.pinch_overlay_scrollbar_thickness = 10; 383 prefs.pinch_overlay_scrollbar_thickness = 10;
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1395 FrameTree* frame_tree = delegate_->GetFrameTree(); 1393 FrameTree* frame_tree = delegate_->GetFrameTree();
1396 1394
1397 frame_tree->ResetForMainFrameSwap(); 1395 frame_tree->ResetForMainFrameSwap();
1398 } 1396 }
1399 1397
1400 void RenderViewHostImpl::SelectWordAroundCaret() { 1398 void RenderViewHostImpl::SelectWordAroundCaret() {
1401 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); 1399 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID()));
1402 } 1400 }
1403 1401
1404 } // namespace content 1402 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698