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

Unified Diff: src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp

Issue 137753005: Make GrGLInterface be context-specific on all platforms (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 11 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/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp
diff --git a/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp b/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp
index 06e406f8597d13582150c047b14657ec8033940e..26695b3e5a7d99c61ee1c8c8f779ffae6181de89 100644
--- a/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp
+++ b/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp
@@ -41,10 +41,6 @@ private:
};
const GrGLInterface* GrGLCreateNativeInterface() {
- // wglGetProcAddress requires a context.
- // GL Function pointers retrieved in one context may not be valid in another
- // context. For that reason we create a new GrGLInterface each time we're
- // called.
AutoLibraryUnload alu("opengl32.dll");
if (NULL == alu.get()) {
return NULL;
@@ -75,7 +71,7 @@ const GrGLInterface* GrGLCreateNativeInterface() {
// We must have array and element_array buffer objects.
return NULL;
}
- GrGLInterface* interface = new GrGLInterface();
+ GrGLInterface* interface = SkNEW(GrGLInterface);
// Functions that are part of GL 1.1 will return NULL in
// wglGetProcAddress
« no previous file with comments | « src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698