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

Unified Diff: src/ports/SkOSLibrary_posix.cpp

Issue 2233073002: Add more error printing to know why command buffer lib failed to load. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkOSLibrary_posix.cpp
diff --git a/src/ports/SkOSLibrary_posix.cpp b/src/ports/SkOSLibrary_posix.cpp
index 901ee22f3c942f883c1db2f61d5d953990f7d0d3..6372a8122a18f9f729d373ee06223b12ea16b69f 100644
--- a/src/ports/SkOSLibrary_posix.cpp
+++ b/src/ports/SkOSLibrary_posix.cpp
@@ -12,7 +12,11 @@
#include <dlfcn.h>
void* DynamicLoadLibrary(const char* libraryName) {
- return dlopen(libraryName, RTLD_LAZY);
+ void* result = dlopen(libraryName, RTLD_LAZY);
+ if (!result) {
+ SkDebugf("Error loading %s {\n %s\n}\n", libraryName, dlerror());
+ }
+ return result;
}
void* GetProcedureAddress(void* library, const char* functionName) {
« no previous file with comments | « no previous file | tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698