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

Side by Side Diff: mojo/runner/native_application_support.cc

Issue 1181013010: Support impl-side painting in Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unittest and android gn build Created 5 years, 6 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 "mojo/runner/native_application_support.h" 5 #include "mojo/runner/native_application_support.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "mojo/platform_handle/platform_handle_private_thunks.h" 11 #include "mojo/platform_handle/platform_handle_private_thunks.h"
12 #include "mojo/public/platform/native/gles2_impl_chromium_copy_texture_thunks.h"
13 #include "mojo/public/platform/native/gles2_impl_chromium_image_thunks.h"
12 #include "mojo/public/platform/native/gles2_impl_chromium_miscellaneous_thunks.h " 14 #include "mojo/public/platform/native/gles2_impl_chromium_miscellaneous_thunks.h "
13 #include "mojo/public/platform/native/gles2_impl_chromium_sub_image_thunks.h" 15 #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" 16 #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" 17 #include "mojo/public/platform/native/gles2_impl_chromium_texture_mailbox_thunks .h"
16 #include "mojo/public/platform/native/gles2_impl_occlusion_query_ext_thunks.h" 18 #include "mojo/public/platform/native/gles2_impl_occlusion_query_ext_thunks.h"
17 #include "mojo/public/platform/native/gles2_impl_thunks.h" 19 #include "mojo/public/platform/native/gles2_impl_thunks.h"
18 #include "mojo/public/platform/native/gles2_thunks.h" 20 #include "mojo/public/platform/native/gles2_thunks.h"
19 #include "mojo/public/platform/native/system_thunks.h" 21 #include "mojo/public/platform/native/system_thunks.h"
20 22
21 namespace mojo { 23 namespace mojo {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 if (!SetThunks(&MojoMakeGLES2ImplThunks, "MojoSetGLES2ImplThunks", 78 if (!SetThunks(&MojoMakeGLES2ImplThunks, "MojoSetGLES2ImplThunks",
77 app_library)) { 79 app_library)) {
78 LOG(ERROR) 80 LOG(ERROR)
79 << "MojoSetGLES2ControlThunks found, but not MojoSetGLES2ImplThunks"; 81 << "MojoSetGLES2ControlThunks found, but not MojoSetGLES2ImplThunks";
80 return false; 82 return false;
81 } 83 }
82 84
83 // If the application is using GLES2 extension points, register those 85 // If the application is using GLES2 extension points, register those
84 // thunks. Applications may use or not use any of these, so don't warn if 86 // thunks. Applications may use or not use any of these, so don't warn if
85 // they are missing. 87 // they are missing.
88 SetThunks(MojoMakeGLES2ImplChromiumCopyTextureThunks,
89 "MojoSetGLES2ImplChromiumCopyTextureThunks", app_library);
90 SetThunks(MojoMakeGLES2ImplChromiumImageThunks,
91 "MojoSetGLES2ImplChromiumImageThunks", app_library);
86 SetThunks(MojoMakeGLES2ImplChromiumMiscellaneousThunks, 92 SetThunks(MojoMakeGLES2ImplChromiumMiscellaneousThunks,
87 "MojoSetGLES2ImplChromiumMiscellaneousThunks", app_library); 93 "MojoSetGLES2ImplChromiumMiscellaneousThunks", app_library);
88 SetThunks(MojoMakeGLES2ImplChromiumSubImageThunks, 94 SetThunks(MojoMakeGLES2ImplChromiumSubImageThunks,
89 "MojoSetGLES2ImplChromiumSubImageThunks", app_library); 95 "MojoSetGLES2ImplChromiumSubImageThunks", app_library);
90 SetThunks(MojoMakeGLES2ImplChromiumTextureMailboxThunks, 96 SetThunks(MojoMakeGLES2ImplChromiumTextureMailboxThunks,
91 "MojoSetGLES2ImplChromiumTextureMailboxThunks", app_library); 97 "MojoSetGLES2ImplChromiumTextureMailboxThunks", app_library);
92 SetThunks(MojoMakeGLES2ImplChromiumSyncPointThunks, 98 SetThunks(MojoMakeGLES2ImplChromiumSyncPointThunks,
93 "MojoSetGLES2ImplChromiumSyncPointThunks", app_library); 99 "MojoSetGLES2ImplChromiumSyncPointThunks", app_library);
94 SetThunks(MojoMakeGLES2ImplOcclusionQueryExtThunks, 100 SetThunks(MojoMakeGLES2ImplOcclusionQueryExtThunks,
95 "MojoSetGLES2ImplOcclusionQueryExtThunks", app_library); 101 "MojoSetGLES2ImplOcclusionQueryExtThunks", app_library);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 MojoHandle handle = application_request.PassMessagePipe().release().value(); 148 MojoHandle handle = application_request.PassMessagePipe().release().value();
143 MojoResult result = main_function(handle); 149 MojoResult result = main_function(handle);
144 if (result != MOJO_RESULT_OK) { 150 if (result != MOJO_RESULT_OK) {
145 LOG(ERROR) << "MojoMain returned error (result: " << result << ")"; 151 LOG(ERROR) << "MojoMain returned error (result: " << result << ")";
146 } 152 }
147 return true; 153 return true;
148 } 154 }
149 155
150 } // namespace runner 156 } // namespace runner
151 } // namespace mojo 157 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698