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

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

Issue 1648433002: compositor: Enable partial raster by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to ToT Created 4 years, 10 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
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 command_line->AppendSwitch(switches::kEnableGpuRasterization); 1272 command_line->AppendSwitch(switches::kEnableGpuRasterization);
1273 1273
1274 int msaa_sample_count = GpuRasterizationMSAASampleCount(); 1274 int msaa_sample_count = GpuRasterizationMSAASampleCount();
1275 if (msaa_sample_count >= 0) { 1275 if (msaa_sample_count >= 0) {
1276 command_line->AppendSwitchASCII(switches::kGpuRasterizationMSAASampleCount, 1276 command_line->AppendSwitchASCII(switches::kGpuRasterizationMSAASampleCount,
1277 base::IntToString(msaa_sample_count)); 1277 base::IntToString(msaa_sample_count));
1278 } 1278 }
1279 1279
1280 if (IsZeroCopyUploadEnabled()) 1280 if (IsZeroCopyUploadEnabled())
1281 command_line->AppendSwitch(switches::kEnableZeroCopy); 1281 command_line->AppendSwitch(switches::kEnableZeroCopy);
1282 if (IsPartialRasterEnabled()) 1282 if (!IsPartialRasterEnabled())
1283 command_line->AppendSwitch(switches::kEnablePartialRaster); 1283 command_line->AppendSwitch(switches::kDisablePartialRaster);
1284 1284
1285 if (IsForceGpuRasterizationEnabled()) 1285 if (IsForceGpuRasterizationEnabled())
1286 command_line->AppendSwitch(switches::kForceGpuRasterization); 1286 command_line->AppendSwitch(switches::kForceGpuRasterization);
1287 1287
1288 if (IsGpuMemoryBufferCompositorResourcesEnabled()) { 1288 if (IsGpuMemoryBufferCompositorResourcesEnabled()) {
1289 command_line->AppendSwitch( 1289 command_line->AppendSwitch(
1290 switches::kEnableGpuMemoryBufferCompositorResources); 1290 switches::kEnableGpuMemoryBufferCompositorResources);
1291 } 1291 }
1292 1292
1293 // Persistent buffers may come at a performance hit (not all platform specific 1293 // Persistent buffers may come at a performance hit (not all platform specific
(...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after
2795 2795
2796 // Skip widgets in other processes. 2796 // Skip widgets in other processes.
2797 if (rvh->GetProcess()->GetID() != GetID()) 2797 if (rvh->GetProcess()->GetID() != GetID())
2798 continue; 2798 continue;
2799 2799
2800 rvh->OnWebkitPreferencesChanged(); 2800 rvh->OnWebkitPreferencesChanged();
2801 } 2801 }
2802 } 2802 }
2803 2803
2804 } // namespace content 2804 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698