| 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 "mojo/public/gles2/gles2_private.h" | 5 #include "mojo/public/gles2/gles2_private.h" |
| 6 | 6 |
| 7 #include <assert.h> | 7 #include <assert.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "mojo/public/c/gles2/gles2.h" | 10 #include "mojo/public/c/gles2/gles2.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 #include "mojo/public/c/gles2/gles2_call_visitor_autogen.h" | 78 #include "mojo/public/c/gles2/gles2_call_visitor_autogen.h" |
| 79 #undef VISIT_GL_CALL | 79 #undef VISIT_GL_CALL |
| 80 | 80 |
| 81 } // extern "C" | 81 } // extern "C" |
| 82 | 82 |
| 83 namespace mojo { | 83 namespace mojo { |
| 84 | 84 |
| 85 GLES2Support::~GLES2Support() {} | 85 GLES2Support::~GLES2Support() {} |
| 86 | 86 |
| 87 void GLES2Support::Init(GLES2Support* gles2_support) { | 87 void GLES2Support::Init(GLES2Support* gles2_support) { |
| 88 assert(!g_gles2_support); | 88 // TODO(msw): Resolve the re-initialization: assert(!g_gles2_support); |
| 89 g_gles2_support = gles2_support; | 89 if (!g_gles2_support) |
| 90 g_gles2_support = gles2_support; |
| 90 } | 91 } |
| 91 | 92 |
| 92 } // namespace mojo | 93 } // namespace mojo |
| OLD | NEW |