| 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 "ui/gl/gl_image_ozone_native_pixmap.h" | 5 #include "ui/gl/gl_image_ozone_native_pixmap.h" |
| 6 | 6 |
| 7 #define FOURCC(a, b, c, d) \ | 7 #define FOURCC(a, b, c, d) \ |
| 8 ((static_cast<uint32>(a)) | (static_cast<uint32>(b) << 8) | \ | 8 ((static_cast<uint32_t>(a)) | (static_cast<uint32_t>(b) << 8) | \ |
| 9 (static_cast<uint32>(c) << 16) | (static_cast<uint32>(d) << 24)) | 9 (static_cast<uint32_t>(c) << 16) | (static_cast<uint32_t>(d) << 24)) |
| 10 | 10 |
| 11 #define DRM_FORMAT_ARGB8888 FOURCC('A', 'R', '2', '4') | 11 #define DRM_FORMAT_ARGB8888 FOURCC('A', 'R', '2', '4') |
| 12 #define DRM_FORMAT_ABGR8888 FOURCC('A', 'B', '2', '4') | 12 #define DRM_FORMAT_ABGR8888 FOURCC('A', 'B', '2', '4') |
| 13 #define DRM_FORMAT_XRGB8888 FOURCC('X', 'R', '2', '4') | 13 #define DRM_FORMAT_XRGB8888 FOURCC('X', 'R', '2', '4') |
| 14 #define DRM_FORMAT_XBGR8888 FOURCC('X', 'B', '2', '4') | 14 #define DRM_FORMAT_XBGR8888 FOURCC('X', 'B', '2', '4') |
| 15 | 15 |
| 16 namespace gfx { | 16 namespace gfx { |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 bool ValidInternalFormat(unsigned internalformat) { | 19 bool ValidInternalFormat(unsigned internalformat) { |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 } | 153 } |
| 154 | 154 |
| 155 void GLImageOzoneNativePixmap::OnMemoryDump( | 155 void GLImageOzoneNativePixmap::OnMemoryDump( |
| 156 base::trace_event::ProcessMemoryDump* pmd, | 156 base::trace_event::ProcessMemoryDump* pmd, |
| 157 uint64_t process_tracing_id, | 157 uint64_t process_tracing_id, |
| 158 const std::string& dump_name) { | 158 const std::string& dump_name) { |
| 159 // TODO(ericrk): Implement GLImage OnMemoryDump. crbug.com/514914 | 159 // TODO(ericrk): Implement GLImage OnMemoryDump. crbug.com/514914 |
| 160 } | 160 } |
| 161 | 161 |
| 162 } // namespace gfx | 162 } // namespace gfx |
| OLD | NEW |