Index: include/gpu/gl/SkGLContext.h |
diff --git a/include/gpu/gl/SkGLContext.h b/include/gpu/gl/SkGLContext.h |
index fe41a606ef19923d246f31eab3269f63b0973c27..ddf5dc080a113ec648e9b94409184e22eda21610 100644 |
--- a/include/gpu/gl/SkGLContext.h |
+++ b/include/gpu/gl/SkGLContext.h |
@@ -25,7 +25,7 @@ |
const GrGLInterface* gl() const { return fGL.get(); } |
- bool fenceSyncSupport() const { return fFenceSync != nullptr; } |
+ bool fenceSyncSupport() const { return SkToBool(fFenceSync); } |
bool getMaxGpuFrameLag(int* maxFrameLag) const { |
if (!fFenceSync) { |