| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_MUS_GLES2_GPU_MEMORY_BUFFER_IMPL_H_ | 5 #ifndef COMPONENTS_MUS_GLES2_GPU_MEMORY_BUFFER_IMPL_H_ |
| 6 #define COMPONENTS_MUS_GLES2_GPU_MEMORY_BUFFER_IMPL_H_ | 6 #define COMPONENTS_MUS_GLES2_GPU_MEMORY_BUFFER_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 9 |
| 8 #include "base/callback.h" | 10 #include "base/callback.h" |
| 9 #include "base/macros.h" | 11 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | |
| 11 #include "gpu/command_buffer/common/sync_token.h" | 12 #include "gpu/command_buffer/common/sync_token.h" |
| 12 #include "ui/gfx/geometry/size.h" | 13 #include "ui/gfx/geometry/size.h" |
| 13 #include "ui/gfx/gpu_memory_buffer.h" | 14 #include "ui/gfx/gpu_memory_buffer.h" |
| 14 | 15 |
| 15 #if defined(USE_OZONE) | 16 #if defined(USE_OZONE) |
| 16 #include "ui/ozone/public/native_pixmap.h" | 17 #include "ui/ozone/public/native_pixmap.h" |
| 17 #endif | 18 #endif |
| 18 | 19 |
| 19 namespace mus { | 20 namespace mus { |
| 20 | 21 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 49 const gfx::Size size_; | 50 const gfx::Size size_; |
| 50 const gfx::BufferFormat format_; | 51 const gfx::BufferFormat format_; |
| 51 bool mapped_; | 52 bool mapped_; |
| 52 | 53 |
| 53 private: | 54 private: |
| 54 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImpl); | 55 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImpl); |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 } // namespace mus | 58 } // namespace mus |
| 58 | 59 |
| 59 #endif // COMPONENTS_MUS_GLES2_GPU_MEMORY_BUFFER_IMPL_H_ | 60 #endif // COMPONENTS_MUS_GLES2_GPU_MEMORY_BUFFER_IMPL_H_ |
| OLD | NEW |