OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_ozone_native_pixmap.h
" | 5 #include "gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "gpu/ipc/common/gpu_memory_buffer_support.h" | 9 #include "gpu/ipc/common/gpu_memory_buffer_support.h" |
10 #include "ui/gfx/buffer_format_util.h" | 10 #include "ui/gfx/buffer_format_util.h" |
11 #include "ui/ozone/public/client_native_pixmap_factory.h" | 11 #include "ui/ozone/public/client_native_pixmap_factory.h" |
12 #include "ui/ozone/public/native_pixmap.h" | 12 #include "ui/ozone/public/native_pixmap.h" |
13 #include "ui/ozone/public/ozone_platform.h" | 13 #include "ui/ozone/public/ozone_platform.h" |
14 #include "ui/ozone/public/surface_factory_ozone.h" | 14 #include "ui/ozone/public/surface_factory_ozone.h" |
15 | 15 |
16 namespace content { | 16 namespace gpu { |
17 namespace { | 17 namespace { |
18 | 18 |
19 void FreeNativePixmapForTesting(scoped_refptr<ui::NativePixmap> native_pixmap) { | 19 void FreeNativePixmapForTesting(scoped_refptr<ui::NativePixmap> native_pixmap) { |
20 // Nothing to do here. |native_pixmap| will be freed when this function | 20 // Nothing to do here. |native_pixmap| will be freed when this function |
21 // returns and reference count drops to 0. | 21 // returns and reference count drops to 0. |
22 } | 22 } |
23 | 23 |
24 } // namespace | 24 } // namespace |
25 | 25 |
26 GpuMemoryBufferImplOzoneNativePixmap::GpuMemoryBufferImplOzoneNativePixmap( | 26 GpuMemoryBufferImplOzoneNativePixmap::GpuMemoryBufferImplOzoneNativePixmap( |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 } | 101 } |
102 | 102 |
103 gfx::GpuMemoryBufferHandle GpuMemoryBufferImplOzoneNativePixmap::GetHandle() | 103 gfx::GpuMemoryBufferHandle GpuMemoryBufferImplOzoneNativePixmap::GetHandle() |
104 const { | 104 const { |
105 gfx::GpuMemoryBufferHandle handle; | 105 gfx::GpuMemoryBufferHandle handle; |
106 handle.type = gfx::OZONE_NATIVE_PIXMAP; | 106 handle.type = gfx::OZONE_NATIVE_PIXMAP; |
107 handle.id = id_; | 107 handle.id = id_; |
108 return handle; | 108 return handle; |
109 } | 109 } |
110 | 110 |
111 } // namespace content | 111 } // namespace gpu |
OLD | NEW |