Chromium Code Reviews| Index: mojo/public/platform/native/gles2/call_visitor.h |
| diff --git a/mojo/gles2/gles2_impl.cc b/mojo/public/platform/native/gles2/call_visitor.h |
| similarity index 60% |
| copy from mojo/gles2/gles2_impl.cc |
| copy to mojo/public/platform/native/gles2/call_visitor.h |
| index 4049f6d8772a7aaceaa096b643aa49e233c593ec..a2b36c62d538a14ad7619c647089d666e098ae97 100644 |
| --- a/mojo/gles2/gles2_impl.cc |
| +++ b/mojo/public/platform/native/gles2/call_visitor.h |
| @@ -1,20 +1,3 @@ |
| -// Copyright 2014 The Chromium Authors. All rights reserved. |
| -// Use of this source code is governed by a BSD-style license that can be |
| -// found in the LICENSE file. |
| - |
| -#include "gpu/command_buffer/client/gles2_interface.h" |
| -#include "mojo/gles2/control_thunks_impl.h" |
| -#include "mojo/public/c/gpu/GLES2/gl2.h" |
| -#include "mojo/public/c/gpu/MGL/mgl.h" |
| - |
| -extern "C" { |
| - |
| -#define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \ |
| - ReturnType GL_APIENTRY gl##Function PARAMETERS { \ |
| - auto interface = gles2::ControlThunksImpl::Get()->CurrentGLES2Interface(); \ |
| - DCHECK(interface); \ |
| - return interface->Function ARGUMENTS; \ |
| - } |
| #include "mojo/public/platform/native/gles2/call_visitor_autogen.h" |
|
jamesr
2015/09/22 20:28:35
dumb as it is this should probably retain a copyri
Petr Hosek
2015/09/22 23:31:26
Done.
|
| #include "mojo/public/platform/native/gles2/call_visitor_chromium_bind_uniform_location_autogen.h" |
| #include "mojo/public/platform/native/gles2/call_visitor_chromium_map_sub_autogen.h" |
| @@ -29,6 +12,3 @@ extern "C" { |
| #include "mojo/public/platform/native/gles2/call_visitor_ext_texture_storage_autogen.h" |
| #include "mojo/public/platform/native/gles2/call_visitor_khr_blend_equation_advanced_autogen.h" |
| #include "mojo/public/platform/native/gles2/call_visitor_oes_vertex_array_object_autogen.h" |
| -#undef VISIT_GL_CALL |
| - |
| -} // extern "C" |