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

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

Issue 1949023005: gpu: Add flag for enabling asynchronous worker context. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase fix Created 4 years, 7 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 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 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 } 1202 }
1203 1203
1204 static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) { 1204 static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) {
1205 command_line->AppendSwitchASCII( 1205 command_line->AppendSwitchASCII(
1206 switches::kNumRasterThreads, 1206 switches::kNumRasterThreads,
1207 base::IntToString(NumberOfRendererRasterThreads())); 1207 base::IntToString(NumberOfRendererRasterThreads()));
1208 1208
1209 if (IsGpuRasterizationEnabled()) 1209 if (IsGpuRasterizationEnabled())
1210 command_line->AppendSwitch(switches::kEnableGpuRasterization); 1210 command_line->AppendSwitch(switches::kEnableGpuRasterization);
1211 1211
1212 if (IsAsyncWorkerContextEnabled())
1213 command_line->AppendSwitch(switches::kEnableGpuAsyncWorkerContext);
1214
1212 int msaa_sample_count = GpuRasterizationMSAASampleCount(); 1215 int msaa_sample_count = GpuRasterizationMSAASampleCount();
1213 if (msaa_sample_count >= 0) { 1216 if (msaa_sample_count >= 0) {
1214 command_line->AppendSwitchASCII(switches::kGpuRasterizationMSAASampleCount, 1217 command_line->AppendSwitchASCII(switches::kGpuRasterizationMSAASampleCount,
1215 base::IntToString(msaa_sample_count)); 1218 base::IntToString(msaa_sample_count));
1216 } 1219 }
1217 1220
1218 if (IsZeroCopyUploadEnabled()) 1221 if (IsZeroCopyUploadEnabled())
1219 command_line->AppendSwitch(switches::kEnableZeroCopy); 1222 command_line->AppendSwitch(switches::kEnableZeroCopy);
1220 if (!IsPartialRasterEnabled()) 1223 if (!IsPartialRasterEnabled())
1221 command_line->AppendSwitch(switches::kDisablePartialRaster); 1224 command_line->AppendSwitch(switches::kDisablePartialRaster);
(...skipping 1530 matching lines...) Expand 10 before | Expand all | Expand 10 after
2752 2755
2753 // Skip widgets in other processes. 2756 // Skip widgets in other processes.
2754 if (rvh->GetProcess()->GetID() != GetID()) 2757 if (rvh->GetProcess()->GetID() != GetID())
2755 continue; 2758 continue;
2756 2759
2757 rvh->OnWebkitPreferencesChanged(); 2760 rvh->OnWebkitPreferencesChanged();
2758 } 2761 }
2759 } 2762 }
2760 2763
2761 } // namespace content 2764 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698