Chromium Code Reviews

Unified Diff: include/gpu/gl/SkNativeGLContext.h

Issue 336863009: When performing offscreen rendering on windows, attempt to use a pbuffer context. (Closed) Base URL: https://skia.googlesource.com/skia.git@klein
Patch Set: Address initial comments Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: include/gpu/gl/SkNativeGLContext.h
diff --git a/include/gpu/gl/SkNativeGLContext.h b/include/gpu/gl/SkNativeGLContext.h
index fac52b354fd6cccd2163e4529ab95c08ee15d3a5..01b73094fb4c943efbec80a331103fab980beebc 100644
--- a/include/gpu/gl/SkNativeGLContext.h
+++ b/include/gpu/gl/SkNativeGLContext.h
@@ -21,6 +21,7 @@
#elif defined(SK_BUILD_FOR_WIN32)
#include <windows.h>
#include <GL/GL.h>
+ #include "SkWGL.h"
#endif
class SkNativeGLContext : public SkGLContextHelper {
@@ -78,6 +79,7 @@ private:
HDC fDeviceContext;
HGLRC fGlRenderContext;
static ATOM gWC;
+ SkWGLPbufferContext* fPbufferContext;
#elif defined(SK_BUILD_FOR_IOS)
void* fEAGLContext;
#endif

Powered by Google App Engine