OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 5 |
6 #include "app/gfx/gl/gl_bindings_skia.h" | 6 #include "ui/gfx/gl/gl_bindings_skia.h" |
7 | 7 |
8 #include "app/gfx/gl/gl_bindings.h" | |
9 #include "app/gfx/gl/gl_implementation.h" | |
10 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "ui/gfx/gl/gl_bindings.h" |
| 10 #include "ui/gfx/gl/gl_implementation.h" |
11 | 11 |
12 // Skia is built against the headers in gpu\GLES. These functions | 12 // Skia is built against the headers in gpu\GLES. These functions |
13 // are exported without any call-type modifiers. | 13 // are exported without any call-type modifiers. |
14 #define GR_GL_FUNCTION_TYPE | 14 #define GR_GL_FUNCTION_TYPE |
15 | 15 |
16 #include "third_party/skia/gpu/include/GrGLInterface.h" | 16 #include "third_party/skia/gpu/include/GrGLInterface.h" |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 extern "C" { | 20 extern "C" { |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 static GrGLInterface host_gl_interface; | 502 static GrGLInterface host_gl_interface; |
503 static bool host_StubGL_initialized = false; | 503 static bool host_StubGL_initialized = false; |
504 if (!host_StubGL_initialized) { | 504 if (!host_StubGL_initialized) { |
505 InitializeGrGLInterface(&host_gl_interface); | 505 InitializeGrGLInterface(&host_gl_interface); |
506 GrGLSetGLInterface(&host_gl_interface); | 506 GrGLSetGLInterface(&host_gl_interface); |
507 host_StubGL_initialized = true; | 507 host_StubGL_initialized = true; |
508 } | 508 } |
509 } | 509 } |
510 | 510 |
511 } // namespace gfx | 511 } // namespace gfx |
OLD | NEW |