| 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 "shell/native_application_support.h" | 5 #include "shell/native_application_support.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "mojo/public/platform/native/gles2_impl_chromium_bind_uniform_location_
thunks.h" | 10 #include "mojo/public/platform/native/gles2_impl_chromium_bind_uniform_location_
thunks.h" |
| 11 #include "mojo/public/platform/native/gles2_impl_chromium_map_sub_thunks.h" | 11 #include "mojo/public/platform/native/gles2_impl_chromium_map_sub_thunks.h" |
| 12 #include "mojo/public/platform/native/gles2_impl_chromium_miscellaneous_thunks.h
" | 12 #include "mojo/public/platform/native/gles2_impl_chromium_miscellaneous_thunks.h
" |
| 13 #include "mojo/public/platform/native/gles2_impl_chromium_resize_thunks.h" | 13 #include "mojo/public/platform/native/gles2_impl_chromium_resize_thunks.h" |
| 14 #include "mojo/public/platform/native/gles2_impl_chromium_sync_point_thunks.h" | 14 #include "mojo/public/platform/native/gles2_impl_chromium_sync_point_thunks.h" |
| 15 #include "mojo/public/platform/native/gles2_impl_chromium_texture_mailbox_thunks
.h" | 15 #include "mojo/public/platform/native/gles2_impl_chromium_texture_mailbox_thunks
.h" |
| 16 #include "mojo/public/platform/native/gles2_impl_ext_debug_marker_thunks.h" | 16 #include "mojo/public/platform/native/gles2_impl_ext_debug_marker_thunks.h" |
| 17 #include "mojo/public/platform/native/gles2_impl_ext_discard_framebuffer_thunks.
h" |
| 17 #include "mojo/public/platform/native/gles2_impl_ext_texture_storage_thunks.h" | 18 #include "mojo/public/platform/native/gles2_impl_ext_texture_storage_thunks.h" |
| 18 #include "mojo/public/platform/native/gles2_impl_khr_blend_equation_advanced_thu
nks.h" | 19 #include "mojo/public/platform/native/gles2_impl_khr_blend_equation_advanced_thu
nks.h" |
| 19 #include "mojo/public/platform/native/gles2_impl_occlusion_query_ext_thunks.h" | 20 #include "mojo/public/platform/native/gles2_impl_occlusion_query_ext_thunks.h" |
| 20 #include "mojo/public/platform/native/gles2_impl_oes_vertex_array_object_thunks.
h" | 21 #include "mojo/public/platform/native/gles2_impl_oes_vertex_array_object_thunks.
h" |
| 21 #include "mojo/public/platform/native/gles2_impl_thunks.h" | 22 #include "mojo/public/platform/native/gles2_impl_thunks.h" |
| 22 #include "mojo/public/platform/native/gles2_thunks.h" | 23 #include "mojo/public/platform/native/gles2_thunks.h" |
| 23 #include "mojo/public/platform/native/mgl_onscreen_thunks.h" | 24 #include "mojo/public/platform/native/mgl_onscreen_thunks.h" |
| 24 #include "mojo/public/platform/native/mgl_thunks.h" | 25 #include "mojo/public/platform/native/mgl_thunks.h" |
| 25 #include "mojo/public/platform/native/system_impl_private_thunks.h" | 26 #include "mojo/public/platform/native/system_impl_private_thunks.h" |
| 26 #include "mojo/public/platform/native/system_thunks.h" | 27 #include "mojo/public/platform/native/system_thunks.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 "MojoSetSystemImplControlThunksPrivate", app_library); | 78 "MojoSetSystemImplControlThunksPrivate", app_library); |
| 78 SetThunks(&MojoMakeSystemImplThunksPrivate, "MojoSetSystemImplThunksPrivate", | 79 SetThunks(&MojoMakeSystemImplThunksPrivate, "MojoSetSystemImplThunksPrivate", |
| 79 app_library); | 80 app_library); |
| 80 | 81 |
| 81 SetThunks(&MojoMakeGLES2ControlThunks, "MojoSetGLES2ControlThunks", | 82 SetThunks(&MojoMakeGLES2ControlThunks, "MojoSetGLES2ControlThunks", |
| 82 app_library); | 83 app_library); |
| 83 SetThunks(&MojoMakeGLES2ImplThunks, "MojoSetGLES2ImplThunks", | 84 SetThunks(&MojoMakeGLES2ImplThunks, "MojoSetGLES2ImplThunks", |
| 84 app_library); | 85 app_library); |
| 85 SetThunks(MojoMakeGLES2ImplEXTDebugMarkerThunks, | 86 SetThunks(MojoMakeGLES2ImplEXTDebugMarkerThunks, |
| 86 "MojoSetGLES2ImplEXTDebugMarkerThunks", app_library); | 87 "MojoSetGLES2ImplEXTDebugMarkerThunks", app_library); |
| 88 SetThunks(MojoMakeGLES2ImplEXTDiscardFramebufferThunks, |
| 89 "MojoSetGLES2ImplEXTDiscardFramebufferThunks", app_library); |
| 87 SetThunks(MojoMakeGLES2ImplEXTTextureStorageThunks, | 90 SetThunks(MojoMakeGLES2ImplEXTTextureStorageThunks, |
| 88 "MojoSetGLES2ImplEXTTextureStorageThunks", app_library); | 91 "MojoSetGLES2ImplEXTTextureStorageThunks", app_library); |
| 89 SetThunks(MojoMakeGLES2ImplKHRBlendEquationAdvancedThunks, | 92 SetThunks(MojoMakeGLES2ImplKHRBlendEquationAdvancedThunks, |
| 90 "MojoSetGLES2ImplKHRBlendEquationAdvancedThunks", app_library); | 93 "MojoSetGLES2ImplKHRBlendEquationAdvancedThunks", app_library); |
| 91 SetThunks(MojoMakeGLES2ImplOcclusionQueryEXTThunks, | 94 SetThunks(MojoMakeGLES2ImplOcclusionQueryEXTThunks, |
| 92 "MojoSetGLES2ImplOcclusionQueryEXTThunks", app_library); | 95 "MojoSetGLES2ImplOcclusionQueryEXTThunks", app_library); |
| 93 SetThunks(MojoMakeGLES2ImplOESVertexArrayObjectThunks, | 96 SetThunks(MojoMakeGLES2ImplOESVertexArrayObjectThunks, |
| 94 "MojoSetGLES2ImplOESVertexArrayObjectThunks", app_library); | 97 "MojoSetGLES2ImplOESVertexArrayObjectThunks", app_library); |
| 95 // "Chromium" extensions: | 98 // "Chromium" extensions: |
| 96 SetThunks(MojoMakeGLES2ImplCHROMIUMBindUniformLocationThunks, | 99 SetThunks(MojoMakeGLES2ImplCHROMIUMBindUniformLocationThunks, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 125 } | 128 } |
| 126 // |MojoMain()| takes ownership of the Application request handle. | 129 // |MojoMain()| takes ownership of the Application request handle. |
| 127 MojoHandle handle = application_request.PassMessagePipe().release().value(); | 130 MojoHandle handle = application_request.PassMessagePipe().release().value(); |
| 128 MojoResult result = main_function(handle); | 131 MojoResult result = main_function(handle); |
| 129 LOG_IF(ERROR, result != MOJO_RESULT_OK) | 132 LOG_IF(ERROR, result != MOJO_RESULT_OK) |
| 130 << "MojoMain returned error (result: " << result << ")"; | 133 << "MojoMain returned error (result: " << result << ")"; |
| 131 return true; | 134 return true; |
| 132 } | 135 } |
| 133 | 136 |
| 134 } // namespace shell | 137 } // namespace shell |
| OLD | NEW |