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 "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/trace_event/trace_event.h" | 8 #include "base/trace_event/trace_event.h" |
9 #include "ui/gl/gl_bindings.h" | 9 #include "ui/gl/gl_bindings.h" |
| 10 #include "ui/gl/scoped_binders.h" |
| 11 |
| 12 #if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || \ |
| 13 defined(USE_OZONE) |
10 #include "ui/gl/gl_surface_egl.h" | 14 #include "ui/gl/gl_surface_egl.h" |
11 #include "ui/gl/scoped_binders.h" | 15 #endif |
12 | 16 |
13 namespace gfx { | 17 namespace gfx { |
14 namespace { | 18 namespace { |
15 | 19 |
16 bool ValidInternalFormat(unsigned internalformat) { | 20 bool ValidInternalFormat(unsigned internalformat) { |
17 switch (internalformat) { | 21 switch (internalformat) { |
18 case GL_RGBA: | 22 case GL_RGBA: |
19 return true; | 23 return true; |
20 default: | 24 default: |
21 return false; | 25 return false; |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 size_.width(), | 376 size_.width(), |
373 size_.height(), | 377 size_.height(), |
374 0, // border | 378 0, // border |
375 DataFormat(format_), | 379 DataFormat(format_), |
376 DataType(format_), | 380 DataType(format_), |
377 memory_); | 381 memory_); |
378 } | 382 } |
379 } | 383 } |
380 | 384 |
381 } // namespace gfx | 385 } // namespace gfx |
OLD | NEW |