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 "services/ui/common/gpu_memory_buffer_impl.h" | 5 #include "services/ui/public/cpp/lib/gpu_memory_buffer_impl.h" |
6 | 6 |
7 namespace ui { | 7 namespace ui { |
8 | 8 |
9 GpuMemoryBufferImpl::GpuMemoryBufferImpl(gfx::GpuMemoryBufferId id, | 9 GpuMemoryBufferImpl::GpuMemoryBufferImpl(gfx::GpuMemoryBufferId id, |
10 const gfx::Size& size, | 10 const gfx::Size& size, |
11 gfx::BufferFormat format) | 11 gfx::BufferFormat format) |
12 : id_(id), size_(size), format_(format), mapped_(false) {} | 12 : id_(id), size_(size), format_(format), mapped_(false) {} |
13 | 13 |
14 GpuMemoryBufferImpl::~GpuMemoryBufferImpl() { | 14 GpuMemoryBufferImpl::~GpuMemoryBufferImpl() { |
15 DCHECK(!mapped_); | 15 DCHECK(!mapped_); |
(...skipping 21 matching lines...) Expand all Loading... |
37 return reinterpret_cast<ClientBuffer>(this); | 37 return reinterpret_cast<ClientBuffer>(this); |
38 } | 38 } |
39 | 39 |
40 #if defined(USE_OZONE) | 40 #if defined(USE_OZONE) |
41 scoped_refptr<ui::NativePixmap> GpuMemoryBufferImpl::GetNativePixmap() { | 41 scoped_refptr<ui::NativePixmap> GpuMemoryBufferImpl::GetNativePixmap() { |
42 return scoped_refptr<ui::NativePixmap>(); | 42 return scoped_refptr<ui::NativePixmap>(); |
43 } | 43 } |
44 #endif | 44 #endif |
45 | 45 |
46 } // namespace ui | 46 } // namespace ui |
OLD | NEW |