| 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 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1240 bool RenderProcessHostImpl::IsForGuestsOnly() const { | 1240 bool RenderProcessHostImpl::IsForGuestsOnly() const { |
| 1241 return is_for_guests_only_; | 1241 return is_for_guests_only_; |
| 1242 } | 1242 } |
| 1243 | 1243 |
| 1244 StoragePartition* RenderProcessHostImpl::GetStoragePartition() const { | 1244 StoragePartition* RenderProcessHostImpl::GetStoragePartition() const { |
| 1245 return storage_partition_impl_; | 1245 return storage_partition_impl_; |
| 1246 } | 1246 } |
| 1247 | 1247 |
| 1248 static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) { | 1248 static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) { |
| 1249 command_line->AppendSwitchASCII( | 1249 command_line->AppendSwitchASCII( |
| 1250 switches::kNumRasterThreads, | 1250 switches::kNumCategorizedWorkerThreads, |
| 1251 base::IntToString(NumberOfRendererRasterThreads())); | 1251 base::IntToString(NumberOfRendererCategorizedWorkerThreads())); |
| 1252 | 1252 |
| 1253 if (IsGpuRasterizationEnabled()) | 1253 if (IsGpuRasterizationEnabled()) |
| 1254 command_line->AppendSwitch(switches::kEnableGpuRasterization); | 1254 command_line->AppendSwitch(switches::kEnableGpuRasterization); |
| 1255 | 1255 |
| 1256 if (IsAsyncWorkerContextEnabled()) | 1256 if (IsAsyncWorkerContextEnabled()) |
| 1257 command_line->AppendSwitch(switches::kEnableGpuAsyncWorkerContext); | 1257 command_line->AppendSwitch(switches::kEnableGpuAsyncWorkerContext); |
| 1258 | 1258 |
| 1259 int msaa_sample_count = GpuRasterizationMSAASampleCount(); | 1259 int msaa_sample_count = GpuRasterizationMSAASampleCount(); |
| 1260 if (msaa_sample_count >= 0) { | 1260 if (msaa_sample_count >= 0) { |
| 1261 command_line->AppendSwitchASCII(switches::kGpuRasterizationMSAASampleCount, | 1261 command_line->AppendSwitchASCII(switches::kGpuRasterizationMSAASampleCount, |
| (...skipping 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2781 | 2781 |
| 2782 // Skip widgets in other processes. | 2782 // Skip widgets in other processes. |
| 2783 if (rvh->GetProcess()->GetID() != GetID()) | 2783 if (rvh->GetProcess()->GetID() != GetID()) |
| 2784 continue; | 2784 continue; |
| 2785 | 2785 |
| 2786 rvh->OnWebkitPreferencesChanged(); | 2786 rvh->OnWebkitPreferencesChanged(); |
| 2787 } | 2787 } |
| 2788 } | 2788 } |
| 2789 | 2789 |
| 2790 } // namespace content | 2790 } // namespace content |
| OLD | NEW |