OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/browser_gpu_memory_buffer_manager.h" | 5 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 // The gpu_client uses a fixed tracing ID. | 450 // The gpu_client uses a fixed tracing ID. |
451 return gpu_client_tracing_id_; | 451 return gpu_client_tracing_id_; |
452 } | 452 } |
453 | 453 |
454 // In normal cases, |client_id| is a child process id, so we can perform | 454 // In normal cases, |client_id| is a child process id, so we can perform |
455 // the standard conversion. | 455 // the standard conversion. |
456 return ChildProcessHostImpl::ChildProcessUniqueIdToTracingProcessId( | 456 return ChildProcessHostImpl::ChildProcessUniqueIdToTracingProcessId( |
457 client_id); | 457 client_id); |
458 } | 458 } |
459 | 459 |
460 BrowserGpuMemoryBufferManager::BufferInfo::BufferInfo() = default; | |
461 | |
462 BrowserGpuMemoryBufferManager::BufferInfo::BufferInfo( | 460 BrowserGpuMemoryBufferManager::BufferInfo::BufferInfo( |
463 const gfx::Size& size, | 461 const gfx::Size& size, |
464 gfx::GpuMemoryBufferType type, | 462 gfx::GpuMemoryBufferType type, |
465 gfx::BufferFormat format, | 463 gfx::BufferFormat format, |
466 gfx::BufferUsage usage, | 464 gfx::BufferUsage usage, |
467 int gpu_host_id) | 465 int gpu_host_id) |
468 : size(size), | 466 : size(size), |
469 type(type), | 467 type(type), |
470 format(format), | 468 format(format), |
471 usage(usage), | 469 usage(usage), |
472 gpu_host_id(gpu_host_id) {} | 470 gpu_host_id(gpu_host_id) {} |
473 | 471 |
474 BrowserGpuMemoryBufferManager::BufferInfo::BufferInfo(const BufferInfo& other) = | 472 BrowserGpuMemoryBufferManager::BufferInfo::BufferInfo(const BufferInfo& other) = |
475 default; | 473 default; |
476 | 474 |
477 BrowserGpuMemoryBufferManager::BufferInfo::~BufferInfo() {} | 475 BrowserGpuMemoryBufferManager::BufferInfo::~BufferInfo() {} |
478 | 476 |
479 } // namespace content | 477 } // namespace content |
OLD | NEW |