diff options
author | 2012-10-23 13:52:43 +0000 | |
---|---|---|
committer | 2012-10-23 13:52:43 +0000 | |
commit | 0b1e481709ef9b86261f46e9fd44d8cdec7c2d8e (patch) | |
tree | a2c404cc3e4e5f95214398c7dfdf68877693a030 /src/gpu/gl/GrGLContextInfo.cpp | |
parent | 195952f0aee6e2dedf29d095e8be2edc2496dc18 (diff) |
Add vendor to context info.
R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6741062
git-svn-id: http://skia.googlecode.com/svn/trunk@6043 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/GrGLContextInfo.cpp')
-rw-r--r-- | src/gpu/gl/GrGLContextInfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLContextInfo.cpp b/src/gpu/gl/GrGLContextInfo.cpp index 9802e65985..060d236b22 100644 --- a/src/gpu/gl/GrGLContextInfo.cpp +++ b/src/gpu/gl/GrGLContextInfo.cpp @@ -30,6 +30,7 @@ GrGLContextInfo& GrGLContextInfo::operator = (const GrGLContextInfo& ctx) { fBindingInUse = ctx.fBindingInUse; fGLVersion = ctx.fGLVersion; fGLSLGeneration = ctx.fGLSLGeneration; + fVendor = ctx.fVendor; fExtensionString = ctx.fExtensionString; fGLCaps = ctx.fGLCaps; return *this; @@ -40,6 +41,7 @@ void GrGLContextInfo::reset() { fBindingInUse = kNone_GrGLBinding; fGLVersion = GR_GL_VER(0, 0); fGLSLGeneration = static_cast<GrGLSLGeneration>(0); + fVendor = kOther_GrGLVendor; fExtensionString = ""; fGLCaps.reset(); } @@ -70,7 +72,7 @@ bool GrGLContextInfo::initialize(const GrGLInterface* interface) { const GrGLubyte* ext; GR_GL_CALL_RET(interface, ext, GetString(GR_GL_EXTENSIONS)); fExtensionString = reinterpret_cast<const char*>(ext); - + fVendor = GrGLGetVendor(interface); fGLCaps.init(*this); return true; } |