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

Side by Side Diff: content/browser/gpu/gpu_process_host.cc

Issue 1825273002: Add more out of line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « content/browser/gpu/gpu_process_host.h ('k') | content/common/frame_replication_state.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 (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 #include "content/browser/gpu/gpu_process_host.h" 5 #include "content/browser/gpu/gpu_process_host.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 &SendGpuProcessMessage, kind, cause, message))) { 378 &SendGpuProcessMessage, kind, cause, message))) {
379 delete message; 379 delete message;
380 } 380 }
381 } 381 }
382 382
383 GpuMainThreadFactoryFunction g_gpu_main_thread_factory = NULL; 383 GpuMainThreadFactoryFunction g_gpu_main_thread_factory = NULL;
384 384
385 GpuProcessHost::EstablishChannelRequest::EstablishChannelRequest() 385 GpuProcessHost::EstablishChannelRequest::EstablishChannelRequest()
386 : client_id(0) {} 386 : client_id(0) {}
387 387
388 GpuProcessHost::EstablishChannelRequest::EstablishChannelRequest(
389 const EstablishChannelRequest& other) = default;
390
388 GpuProcessHost::EstablishChannelRequest::~EstablishChannelRequest() {} 391 GpuProcessHost::EstablishChannelRequest::~EstablishChannelRequest() {}
389 392
390 void GpuProcessHost::RegisterGpuMainThreadFactory( 393 void GpuProcessHost::RegisterGpuMainThreadFactory(
391 GpuMainThreadFactoryFunction create) { 394 GpuMainThreadFactoryFunction create) {
392 g_gpu_main_thread_factory = create; 395 g_gpu_main_thread_factory = create;
393 } 396 }
394 397
395 // static 398 // static
396 GpuProcessHost* GpuProcessHost::FromID(int host_id) { 399 GpuProcessHost* GpuProcessHost::FromID(int host_id) {
397 DCHECK_CURRENTLY_ON(BrowserThread::IO); 400 DCHECK_CURRENTLY_ON(BrowserThread::IO);
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1167 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1165 ClientIdToShaderCacheMap::iterator iter = 1168 ClientIdToShaderCacheMap::iterator iter =
1166 client_id_to_shader_cache_.find(client_id); 1169 client_id_to_shader_cache_.find(client_id);
1167 // If the cache doesn't exist then this is an off the record profile. 1170 // If the cache doesn't exist then this is an off the record profile.
1168 if (iter == client_id_to_shader_cache_.end()) 1171 if (iter == client_id_to_shader_cache_.end())
1169 return; 1172 return;
1170 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1173 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1171 } 1174 }
1172 1175
1173 } // namespace content 1176 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host.h ('k') | content/common/frame_replication_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698