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_shared_memory.h" | 7 #include "content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h" |
8 #include "content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h" | 8 #include "content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 return GpuMemoryBufferImplSharedMemory::CreateFromHandle( | 74 return GpuMemoryBufferImplSharedMemory::CreateFromHandle( |
75 handle, size, format, callback); | 75 handle, size, format, callback); |
76 case gfx::SURFACE_TEXTURE_BUFFER: | 76 case gfx::SURFACE_TEXTURE_BUFFER: |
77 return GpuMemoryBufferImplSurfaceTexture::CreateFromHandle( | 77 return GpuMemoryBufferImplSurfaceTexture::CreateFromHandle( |
78 handle, size, format, callback); | 78 handle, size, format, callback); |
79 default: | 79 default: |
80 return scoped_ptr<GpuMemoryBufferImpl>(); | 80 return scoped_ptr<GpuMemoryBufferImpl>(); |
81 } | 81 } |
82 } | 82 } |
83 | 83 |
| 84 // static |
| 85 bool GpuMemoryBufferImpl::NeedsDestructionSyncPoint( |
| 86 gfx::GpuMemoryBufferType type) { |
| 87 return false; |
| 88 } |
| 89 |
84 } // namespace content | 90 } // namespace content |
OLD | NEW |