| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 
|  | 2 // Use of this source code is governed by a BSD-style license that can be | 
|  | 3 // found in the LICENSE file. | 
|  | 4 | 
|  | 5 #include "gpu/ipc/client/gpu_memory_buffer_impl_direct_composition.h" | 
|  | 6 | 
|  | 7 namespace gpu { | 
|  | 8 | 
|  | 9 GpuMemoryBufferImplDirectComposition::GpuMemoryBufferImplDirectComposition( | 
|  | 10     const gfx::Size& size, | 
|  | 11     gfx::GpuMemoryBufferHandle handle, | 
|  | 12     gfx::BufferFormat format, | 
|  | 13     const DestructionCallback& callback) | 
|  | 14     : GpuMemoryBufferImpl(handle.id, size, format, callback), handle_(handle) {} | 
|  | 15 GpuMemoryBufferImplDirectComposition::~GpuMemoryBufferImplDirectComposition() {} | 
|  | 16 | 
|  | 17 bool GpuMemoryBufferImplDirectComposition::Map() { | 
|  | 18   return false; | 
|  | 19 } | 
|  | 20 | 
|  | 21 void* GpuMemoryBufferImplDirectComposition::memory(size_t plane) { | 
|  | 22   return nullptr; | 
|  | 23 } | 
|  | 24 | 
|  | 25 void GpuMemoryBufferImplDirectComposition::Unmap() {} | 
|  | 26 | 
|  | 27 int GpuMemoryBufferImplDirectComposition::stride(size_t plane) const { | 
|  | 28   return 0; | 
|  | 29 } | 
|  | 30 | 
|  | 31 void GpuMemoryBufferImplDirectComposition::SetColorSpaceForScanout( | 
|  | 32     const gfx::ColorSpace& color_space) {} | 
|  | 33 | 
|  | 34 gfx::GpuMemoryBufferHandle GpuMemoryBufferImplDirectComposition::GetHandle() | 
|  | 35     const { | 
|  | 36   return handle_; | 
|  | 37 } | 
|  | 38 }  // namespace gpu | 
| OLD | NEW | 
|---|