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 #include "ui/gl/gl_image_memory.h" | 5 #include "ui/gl/gl_image_memory.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 #include "base/numerics/safe_conversions.h" | 10 #include "base/numerics/safe_conversions.h" |
9 #include "base/trace_event/trace_event.h" | 11 #include "base/trace_event/trace_event.h" |
10 #include "ui/gfx/buffer_format_util.h" | 12 #include "ui/gfx/buffer_format_util.h" |
11 #include "ui/gl/gl_bindings.h" | 13 #include "ui/gl/gl_bindings.h" |
12 #include "ui/gl/gl_context.h" | 14 #include "ui/gl/gl_context.h" |
13 #include "ui/gl/gl_version_info.h" | 15 #include "ui/gl/gl_version_info.h" |
14 | 16 |
15 using gfx::BufferFormat; | 17 using gfx::BufferFormat; |
16 | 18 |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 return false; | 443 return false; |
442 } | 444 } |
443 | 445 |
444 // static | 446 // static |
445 unsigned GLImageMemory::GetInternalFormatForTesting(BufferFormat format) { | 447 unsigned GLImageMemory::GetInternalFormatForTesting(BufferFormat format) { |
446 DCHECK(ValidFormat(format)); | 448 DCHECK(ValidFormat(format)); |
447 return TextureFormat(format); | 449 return TextureFormat(format); |
448 } | 450 } |
449 | 451 |
450 } // namespace gl | 452 } // namespace gl |
OLD | NEW |