| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |