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

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

Issue 889063002: (not for commit) Create 2nd ContextProvider for Ganesh rasterization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 // IOSurface backed images require GL_TEXTURE_RECTANGLE_ARB. 1119 // IOSurface backed images require GL_TEXTURE_RECTANGLE_ARB.
1120 command_line->AppendSwitchASCII( 1120 command_line->AppendSwitchASCII(
1121 switches::kUseImageTextureTarget, 1121 switches::kUseImageTextureTarget,
1122 gpu::gles2::GLES2Util::GetStringEnum(GL_TEXTURE_RECTANGLE_ARB)); 1122 gpu::gles2::GLES2Util::GetStringEnum(GL_TEXTURE_RECTANGLE_ARB));
1123 break; 1123 break;
1124 default: 1124 default:
1125 break; 1125 break;
1126 } 1126 }
1127 } 1127 }
1128 1128
1129 if (IsTilePrepareEnabled())
1130 command_line->AppendSwitch(switches::kEnableTilePrepare);
1131
1129 // Appending disable-gpu-feature switches due to software rendering list. 1132 // Appending disable-gpu-feature switches due to software rendering list.
1130 GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance(); 1133 GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance();
1131 DCHECK(gpu_data_manager); 1134 DCHECK(gpu_data_manager);
1132 gpu_data_manager->AppendRendererCommandLine(command_line); 1135 gpu_data_manager->AppendRendererCommandLine(command_line);
1133 } 1136 }
1134 1137
1135 void RenderProcessHostImpl::AppendRendererCommandLine( 1138 void RenderProcessHostImpl::AppendRendererCommandLine(
1136 base::CommandLine* command_line) const { 1139 base::CommandLine* command_line) const {
1137 // Pass the process type first, so it shows first in process listings. 1140 // Pass the process type first, so it shows first in process listings.
1138 command_line->AppendSwitchASCII(switches::kProcessType, 1141 command_line->AppendSwitchASCII(switches::kProcessType,
(...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after
2388 2391
2389 void RenderProcessHostImpl::DecrementWorkerRefCount() { 2392 void RenderProcessHostImpl::DecrementWorkerRefCount() {
2390 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2393 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2391 DCHECK_GT(worker_ref_count_, 0); 2394 DCHECK_GT(worker_ref_count_, 0);
2392 --worker_ref_count_; 2395 --worker_ref_count_;
2393 if (worker_ref_count_ == 0) 2396 if (worker_ref_count_ == 0)
2394 Cleanup(); 2397 Cleanup();
2395 } 2398 }
2396 2399
2397 } // namespace content 2400 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | content/common/gpu/client/context_provider_command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698