| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/renderer_host/media/shared_memory_buffer_tracker.h" | 5 #include "content/browser/renderer_host/media/shared_memory_buffer_tracker.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "content/browser/renderer_host/media/shared_memory_buffer_handle.h" | 8 #include "content/browser/renderer_host/media/shared_memory_buffer_handle.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 SharedMemoryBufferTracker::GetBufferHandle() { | 34 SharedMemoryBufferTracker::GetBufferHandle() { |
| 35 return base::MakeUnique<SharedMemoryBufferHandle>(this); | 35 return base::MakeUnique<SharedMemoryBufferHandle>(this); |
| 36 } | 36 } |
| 37 | 37 |
| 38 bool SharedMemoryBufferTracker::ShareToProcess( | 38 bool SharedMemoryBufferTracker::ShareToProcess( |
| 39 base::ProcessHandle process_handle, | 39 base::ProcessHandle process_handle, |
| 40 base::SharedMemoryHandle* new_handle) { | 40 base::SharedMemoryHandle* new_handle) { |
| 41 return shared_memory_.ShareToProcess(process_handle, new_handle); | 41 return shared_memory_.ShareToProcess(process_handle, new_handle); |
| 42 } | 42 } |
| 43 | 43 |
| 44 bool SharedMemoryBufferTracker::ShareToProcess2( | |
| 45 int plane, | |
| 46 base::ProcessHandle process_handle, | |
| 47 gfx::GpuMemoryBufferHandle* new_handle) { | |
| 48 NOTREACHED(); | |
| 49 return false; | |
| 50 } | |
| 51 | |
| 52 } // namespace content | 44 } // namespace content |
| OLD | NEW |