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

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

Issue 1425533006: cc: Add flag to specify to ResourceProvider to always use GMBs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test and build Created 5 years, 1 month 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 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1189 } 1189 }
1190 1190
1191 if (IsZeroCopyUploadEnabled()) 1191 if (IsZeroCopyUploadEnabled())
1192 command_line->AppendSwitch(switches::kEnableZeroCopy); 1192 command_line->AppendSwitch(switches::kEnableZeroCopy);
1193 if (IsPartialRasterEnabled()) 1193 if (IsPartialRasterEnabled())
1194 command_line->AppendSwitch(switches::kEnablePartialRaster); 1194 command_line->AppendSwitch(switches::kEnablePartialRaster);
1195 1195
1196 if (IsForceGpuRasterizationEnabled()) 1196 if (IsForceGpuRasterizationEnabled())
1197 command_line->AppendSwitch(switches::kForceGpuRasterization); 1197 command_line->AppendSwitch(switches::kForceGpuRasterization);
1198 1198
1199 if (IsGpuMemoryBufferCompositorResourcesEnabled()) {
1200 command_line->AppendSwitch(
1201 switches::kEnableGpuMemoryBufferCompositorResources);
1202 }
1203
1199 // Persistent buffers may come at a performance hit (not all platform specific 1204 // Persistent buffers may come at a performance hit (not all platform specific
1200 // buffers support it), so only enable them if partial raster is enabled and 1205 // buffers support it), so only enable them if partial raster is enabled and
1201 // we are actually going to use them. 1206 // we are actually going to use them.
1202 gfx::BufferUsage buffer_usage = 1207 gfx::BufferUsage buffer_usage =
1203 IsPartialRasterEnabled() 1208 IsPartialRasterEnabled()
1204 ? gfx::BufferUsage::GPU_READ_CPU_READ_WRITE_PERSISTENT 1209 ? gfx::BufferUsage::GPU_READ_CPU_READ_WRITE_PERSISTENT
1205 : gfx::BufferUsage::GPU_READ_CPU_READ_WRITE; 1210 : gfx::BufferUsage::GPU_READ_CPU_READ_WRITE;
1206 std::vector<unsigned> image_targets( 1211 std::vector<unsigned> image_targets(
1207 static_cast<size_t>(gfx::BufferFormat::LAST) + 1, GL_TEXTURE_2D); 1212 static_cast<size_t>(gfx::BufferFormat::LAST) + 1, GL_TEXTURE_2D);
1208 for (size_t format = 0; 1213 for (size_t format = 0;
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after
2624 void RenderProcessHostImpl::GetAudioOutputControllers( 2629 void RenderProcessHostImpl::GetAudioOutputControllers(
2625 const GetAudioOutputControllersCallback& callback) const { 2630 const GetAudioOutputControllersCallback& callback) const {
2626 audio_renderer_host()->GetOutputControllers(callback); 2631 audio_renderer_host()->GetOutputControllers(callback);
2627 } 2632 }
2628 2633
2629 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2634 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2630 return bluetooth_dispatcher_host_.get(); 2635 return bluetooth_dispatcher_host_.get();
2631 } 2636 }
2632 2637
2633 } // namespace content 2638 } // 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