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 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_OZONE_NATIVE_PIXMAP_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_OZONE_NATIVE_PIXMAP_H_ |
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_OZONE_NATIVE_PIXMAP_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_OZONE_NATIVE_PIXMAP_H_ |
7 | 7 |
8 #include "content/common/gpu/client/gpu_memory_buffer_impl.h" | 8 #include "content/common/gpu/client/gpu_memory_buffer_impl.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
(...skipping 16 matching lines...) Expand all Loading... |
27 bool Map(void** data) override; | 27 bool Map(void** data) override; |
28 void Unmap() override; | 28 void Unmap() override; |
29 void GetStride(int* stride) const override; | 29 void GetStride(int* stride) const override; |
30 gfx::GpuMemoryBufferHandle GetHandle() const override; | 30 gfx::GpuMemoryBufferHandle GetHandle() const override; |
31 | 31 |
32 private: | 32 private: |
33 GpuMemoryBufferImplOzoneNativePixmap( | 33 GpuMemoryBufferImplOzoneNativePixmap( |
34 gfx::GpuMemoryBufferId id, | 34 gfx::GpuMemoryBufferId id, |
35 const gfx::Size& size, | 35 const gfx::Size& size, |
36 gfx::BufferFormat format, | 36 gfx::BufferFormat format, |
| 37 gfx::BufferUsage usage, |
37 const DestructionCallback& callback, | 38 const DestructionCallback& callback, |
38 scoped_ptr<ui::ClientNativePixmap> native_pixmap); | 39 scoped_ptr<ui::ClientNativePixmap> pixmap); |
39 ~GpuMemoryBufferImplOzoneNativePixmap() override; | 40 ~GpuMemoryBufferImplOzoneNativePixmap() override; |
40 | 41 |
| 42 gfx::BufferUsage usage_; |
41 scoped_ptr<ui::ClientNativePixmap> pixmap_; | 43 scoped_ptr<ui::ClientNativePixmap> pixmap_; |
42 | 44 |
43 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplOzoneNativePixmap); | 45 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplOzoneNativePixmap); |
44 }; | 46 }; |
45 | 47 |
46 } // namespace content | 48 } // namespace content |
47 | 49 |
48 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_OZONE_NATIVE_PIXMAP_
H_ | 50 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_OZONE_NATIVE_PIXMAP_
H_ |
OLD | NEW |