Index: src/gpu/gl/GrGLCaps.cpp |
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp |
index 6fe804f2f89cba82830df271f0c54172c3d29119..501411c0e98fed6bd997d7da6521853da6254dd4 100644 |
--- a/src/gpu/gl/GrGLCaps.cpp |
+++ b/src/gpu/gl/GrGLCaps.cpp |
@@ -90,11 +90,11 @@ GrGLCaps& GrGLCaps::operator= (const GrGLCaps& caps) { |
return *this; |
} |
-void GrGLCaps::init(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli) { |
+bool GrGLCaps::init(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli) { |
this->reset(); |
if (!ctxInfo.isInitialized()) { |
- return; |
+ return false; |
} |
GrGLStandard standard = ctxInfo.standard(); |
@@ -353,6 +353,8 @@ void GrGLCaps::init(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli) { |
} |
this->initConfigRenderableTable(ctxInfo); |
+ |
+ return true; |
} |
void GrGLCaps::initConfigRenderableTable(const GrGLContextInfo& ctxInfo) { |