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

Unified Diff: src/ports/SkOSLibrary_win.cpp

Issue 1346423002: Skia: Add Command Buffer support to Linux/Mac (Closed) Base URL: https://skia.googlesource.com/skia@angle_on_linux
Patch Set: make windows compile Created 5 years, 3 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 | « src/ports/SkOSLibrary_posix.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkOSLibrary_win.cpp
diff --git a/src/ports/SkOSLibrary_win.cpp b/src/ports/SkOSLibrary_win.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..ca80415391b8eacd111bc5f221784cd1bb80725d
--- /dev/null
+++ b/src/ports/SkOSLibrary_win.cpp
@@ -0,0 +1,17 @@
+
+/*
+ * 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 "SkOSLibrary.h"
+#include <windows.h>
+
+void* DynamicLoadLibrary(const char* libraryName) {
+ return LoadLibrary(libraryName);
+}
+
+void* GetProcedureAddress(void* library, const char* functionName) {
+ return ::GetProcAddress((HMODULE)library, functionName);
+}
« no previous file with comments | « src/ports/SkOSLibrary_posix.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698