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 "gpu/ipc/client/gpu_memory_buffer_impl.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h" | 9 #include "gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.h" |
10 | 10 |
11 #if defined(OS_MACOSX) | 11 #if defined(OS_MACOSX) |
12 #include "content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h" | 12 #include "gpu/ipc/client/gpu_memory_buffer_impl_io_surface.h" |
13 #endif | 13 #endif |
14 | 14 |
15 #if defined(OS_ANDROID) | 15 #if defined(OS_ANDROID) |
16 #include "content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h" | 16 #include "gpu/ipc/client/gpu_memory_buffer_impl_surface_texture.h" |
17 #endif | 17 #endif |
18 | 18 |
19 #if defined(USE_OZONE) | 19 #if defined(USE_OZONE) |
20 #include "content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.h
" | 20 #include "gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.h" |
21 #endif | 21 #endif |
22 | 22 |
23 namespace content { | 23 namespace gpu { |
24 | 24 |
25 GpuMemoryBufferImpl::GpuMemoryBufferImpl(gfx::GpuMemoryBufferId id, | 25 GpuMemoryBufferImpl::GpuMemoryBufferImpl(gfx::GpuMemoryBufferId id, |
26 const gfx::Size& size, | 26 const gfx::Size& size, |
27 gfx::BufferFormat format, | 27 gfx::BufferFormat format, |
28 const DestructionCallback& callback) | 28 const DestructionCallback& callback) |
29 : id_(id), | 29 : id_(id), |
30 size_(size), | 30 size_(size), |
31 format_(format), | 31 format_(format), |
32 callback_(callback), | 32 callback_(callback), |
33 mapped_(false) {} | 33 mapped_(false) {} |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 } | 84 } |
85 | 85 |
86 gfx::GpuMemoryBufferId GpuMemoryBufferImpl::GetId() const { | 86 gfx::GpuMemoryBufferId GpuMemoryBufferImpl::GetId() const { |
87 return id_; | 87 return id_; |
88 } | 88 } |
89 | 89 |
90 ClientBuffer GpuMemoryBufferImpl::AsClientBuffer() { | 90 ClientBuffer GpuMemoryBufferImpl::AsClientBuffer() { |
91 return reinterpret_cast<ClientBuffer>(this); | 91 return reinterpret_cast<ClientBuffer>(this); |
92 } | 92 } |
93 | 93 |
94 } // namespace content | 94 } // namespace gpu |
OLD | NEW |