| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/mus/gles2/mojo_gpu_memory_buffer.h" | 5 #include "components/mus/common/mojo_gpu_memory_buffer.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "base/memory/shared_memory.h" | 11 #include "base/memory/shared_memory.h" |
| 12 #include "base/numerics/safe_conversions.h" | 12 #include "base/numerics/safe_conversions.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "ui/gfx/buffer_format_util.h" | 14 #include "ui/gfx/buffer_format_util.h" |
| 15 | 15 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 gfx::RowSizeForBufferFormat(size_.width(), format_, 0)); | 84 gfx::RowSizeForBufferFormat(size_.width(), format_, 0)); |
| 85 | 85 |
| 86 return handle; | 86 return handle; |
| 87 } | 87 } |
| 88 | 88 |
| 89 gfx::GpuMemoryBufferType MojoGpuMemoryBufferImpl::GetBufferType() const { | 89 gfx::GpuMemoryBufferType MojoGpuMemoryBufferImpl::GetBufferType() const { |
| 90 return gfx::SHARED_MEMORY_BUFFER; | 90 return gfx::SHARED_MEMORY_BUFFER; |
| 91 } | 91 } |
| 92 | 92 |
| 93 } // namespace mus | 93 } // namespace mus |
| OLD | NEW |