summaryrefslogtreecommitdiffstats
path: root/gfx/skia/skia/src/ports/SkOSLibrary_win.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/skia/skia/src/ports/SkOSLibrary_win.cpp')
-rw-r--r--gfx/skia/skia/src/ports/SkOSLibrary_win.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/gfx/skia/skia/src/ports/SkOSLibrary_win.cpp b/gfx/skia/skia/src/ports/SkOSLibrary_win.cpp
new file mode 100644
index 0000000000..b5fdec4c6d
--- /dev/null
+++ b/gfx/skia/skia/src/ports/SkOSLibrary_win.cpp
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+#include "include/core/SkTypes.h"
+#if defined(SK_BUILD_FOR_WIN)
+
+#include "src/base/SkLeanWindows.h"
+#include "src/ports/SkOSLibrary.h"
+
+void* SkLoadDynamicLibrary(const char* libraryName) {
+ return LoadLibraryA(libraryName);
+}
+
+void* SkGetProcedureAddress(void* library, const char* functionName) {
+ return reinterpret_cast<void*>(::GetProcAddress((HMODULE)library, functionName));
+}
+
+bool SkFreeDynamicLibrary(void* library) {
+ return FreeLibrary((HMODULE)library);
+}
+
+#endif//defined(SK_BUILD_FOR_WIN)