Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: shell/native_application_support.cc

Issue 1307883004: Use C OpenGL interface in mojo::GLContext (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_miscellaneous_thunks.h " 12 #include "mojo/public/platform/native/gles2_impl_chromium_miscellaneous_thunks.h "
12 #include "mojo/public/platform/native/gles2_impl_chromium_resize_thunks.h" 13 #include "mojo/public/platform/native/gles2_impl_chromium_resize_thunks.h"
13 #include "mojo/public/platform/native/gles2_impl_chromium_sub_image_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_occlusion_query_ext_thunks.h" 17 #include "mojo/public/platform/native/gles2_impl_occlusion_query_ext_thunks.h"
18 #include "mojo/public/platform/native/gles2_impl_oes_vertex_array_object_thunks. h" 18 #include "mojo/public/platform/native/gles2_impl_oes_vertex_array_object_thunks. h"
19 #include "mojo/public/platform/native/gles2_impl_thunks.h" 19 #include "mojo/public/platform/native/gles2_impl_thunks.h"
20 #include "mojo/public/platform/native/gles2_thunks.h" 20 #include "mojo/public/platform/native/gles2_thunks.h"
21 #include "mojo/public/platform/native/mgl_onscreen_thunks.h" 21 #include "mojo/public/platform/native/mgl_onscreen_thunks.h"
22 #include "mojo/public/platform/native/mgl_thunks.h" 22 #include "mojo/public/platform/native/mgl_thunks.h"
23 #include "mojo/public/platform/native/system_impl_private_thunks.h" 23 #include "mojo/public/platform/native/system_impl_private_thunks.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 app_library); 82 app_library);
83 SetThunks(MojoMakeGLES2ImplExtDebugMarkerThunks, 83 SetThunks(MojoMakeGLES2ImplExtDebugMarkerThunks,
84 "MojoSetGLES2ImplExtDebugMarkerThunks", app_library); 84 "MojoSetGLES2ImplExtDebugMarkerThunks", app_library);
85 SetThunks(MojoMakeGLES2ImplOcclusionQueryExtThunks, 85 SetThunks(MojoMakeGLES2ImplOcclusionQueryExtThunks,
86 "MojoSetGLES2ImplOcclusionQueryExtThunks", app_library); 86 "MojoSetGLES2ImplOcclusionQueryExtThunks", app_library);
87 SetThunks(MojoMakeGLES2ImplOesVertexArrayObjectThunks, 87 SetThunks(MojoMakeGLES2ImplOesVertexArrayObjectThunks,
88 "MojoSetGLES2ImplOesVertexArrayObjectThunks", app_library); 88 "MojoSetGLES2ImplOesVertexArrayObjectThunks", app_library);
89 // "Chromium" extensions: 89 // "Chromium" extensions:
90 SetThunks(MojoMakeGLES2ImplChromiumBindUniformLocationThunks, 90 SetThunks(MojoMakeGLES2ImplChromiumBindUniformLocationThunks,
91 "MojoSetGLES2ImplChromiumBindUniformLocationThunks", app_library); 91 "MojoSetGLES2ImplChromiumBindUniformLocationThunks", app_library);
92 SetThunks(MojoMakeGLES2ImplChromiumMapSubThunks,
93 "MojoSetGLES2ImplChromiumMapSubThunks", app_library);
92 SetThunks(MojoMakeGLES2ImplChromiumMiscellaneousThunks, 94 SetThunks(MojoMakeGLES2ImplChromiumMiscellaneousThunks,
93 "MojoSetGLES2ImplChromiumMiscellaneousThunks", app_library); 95 "MojoSetGLES2ImplChromiumMiscellaneousThunks", app_library);
94 SetThunks(MojoMakeGLES2ImplChromiumResizeThunks, 96 SetThunks(MojoMakeGLES2ImplChromiumResizeThunks,
95 "MojoSetGLES2ImplChromiumResizeThunks", app_library); 97 "MojoSetGLES2ImplChromiumResizeThunks", app_library);
96 SetThunks(MojoMakeGLES2ImplChromiumSubImageThunks,
97 "MojoSetGLES2ImplChromiumSubImageThunks", app_library);
98 SetThunks(MojoMakeGLES2ImplChromiumSyncPointThunks, 98 SetThunks(MojoMakeGLES2ImplChromiumSyncPointThunks,
99 "MojoSetGLES2ImplChromiumSyncPointThunks", app_library); 99 "MojoSetGLES2ImplChromiumSyncPointThunks", app_library);
100 SetThunks(MojoMakeGLES2ImplChromiumTextureMailboxThunks, 100 SetThunks(MojoMakeGLES2ImplChromiumTextureMailboxThunks,
101 "MojoSetGLES2ImplChromiumTextureMailboxThunks", app_library); 101 "MojoSetGLES2ImplChromiumTextureMailboxThunks", app_library);
102 102
103 if (SetThunks(MojoMakeMGLThunks, "MojoSetMGLThunks", app_library)) { 103 if (SetThunks(MojoMakeMGLThunks, "MojoSetMGLThunks", app_library)) {
104 // TODO(jamesr): We should only need to expose these on apps that need to 104 // TODO(jamesr): We should only need to expose these on apps that need to
105 // draw to the screen like the system compositor. 105 // draw to the screen like the system compositor.
106 SetThunks(MojoMakeMGLOnscreenThunks, "MojoSetMGLOnscreenThunks", 106 SetThunks(MojoMakeMGLOnscreenThunks, "MojoSetMGLOnscreenThunks",
107 app_library); 107 app_library);
(...skipping 11 matching lines...) Expand all
119 } 119 }
120 // |MojoMain()| takes ownership of the Application request handle. 120 // |MojoMain()| takes ownership of the Application request handle.
121 MojoHandle handle = application_request.PassMessagePipe().release().value(); 121 MojoHandle handle = application_request.PassMessagePipe().release().value();
122 MojoResult result = main_function(handle); 122 MojoResult result = main_function(handle);
123 LOG_IF(ERROR, result != MOJO_RESULT_OK) 123 LOG_IF(ERROR, result != MOJO_RESULT_OK)
124 << "MojoMain returned error (result: " << result << ")"; 124 << "MojoMain returned error (result: " << result << ")";
125 return true; 125 return true;
126 } 126 }
127 127
128 } // namespace shell 128 } // namespace shell
OLDNEW
« mojo/gpu/gl_context.cc ('K') | « mojo/public/platform/native/gles2_impl_chromium_sub_image_thunks.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698