OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/common/gpu/client/gpu_memory_buffer_impl.h" | 5 #include "content/common/gpu/client/gpu_memory_buffer_impl.h" |
6 | 6 |
7 #include "content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h" | 7 #include "content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h" |
8 #include "content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h" | 8 #include "content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
71 return GpuMemoryBufferImplSharedMemory::CreateFromHandle( | 71 return GpuMemoryBufferImplSharedMemory::CreateFromHandle( |
72 handle, size, format, callback); | 72 handle, size, format, callback); |
73 case gfx::IO_SURFACE_BUFFER: | 73 case gfx::IO_SURFACE_BUFFER: |
74 return GpuMemoryBufferImplIOSurface::CreateFromHandle( | 74 return GpuMemoryBufferImplIOSurface::CreateFromHandle( |
75 handle, size, format, callback); | 75 handle, size, format, callback); |
76 default: | 76 default: |
77 return scoped_ptr<GpuMemoryBufferImpl>(); | 77 return scoped_ptr<GpuMemoryBufferImpl>(); |
78 } | 78 } |
79 } | 79 } |
80 | 80 |
81 // static | |
82 bool GpuMemoryBufferImpl::NeedsDestructionSyncPoint( | |
83 gfx::GpuMemoryBufferType type) { | |
84 return false; | |
piman
2014/10/31 01:24:18
true for IO_SURFACE_BUFFER?
Do we really need a p
| |
85 } | |
86 | |
81 } // namespace content | 87 } // namespace content |
OLD | NEW |