Unify wgl context creation.

R=robertphillips@google.com
Review URL: https://codereview.chromium.org/12455009

git-svn-id: http://skia.googlecode.com/svn/trunk@7990 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/utils/SkWGL.h b/include/utils/SkWGL.h
index 619b8e0..3d94174 100644
--- a/include/utils/SkWGL.h
+++ b/include/utils/SkWGL.h
@@ -106,4 +106,12 @@
     CreateContextAttribsProc fCreateContextAttribs;
 };
 
+/**
+ * Helper to create an OpenGL context for a DC using WGL. Configs with a sample count >= to
+ * msaaSampleCount are preferred but if none is available then a context with a lower sample count
+ * (including non-MSAA) will be created. If preferCoreProfile is true but a core profile cannot be
+ * created then a compatible profile context will be created.
+ */
+HGLRC SkCreateWGLContext(HDC dc, int msaaSampleCount, bool preferCoreProfile);
+
 #endif