diff options
Diffstat (limited to 'include/gpu/gl/GrGLTypes.h')
-rw-r--r-- | include/gpu/gl/GrGLTypes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gpu/gl/GrGLTypes.h b/include/gpu/gl/GrGLTypes.h index 5916c69181..75aa87d971 100644 --- a/include/gpu/gl/GrGLTypes.h +++ b/include/gpu/gl/GrGLTypes.h @@ -128,4 +128,9 @@ struct GrGLFramebufferInfo { } }; +#ifdef SK_SUPPORT_LEGACY_BACKEND_OBJECTS +GR_STATIC_ASSERT(sizeof(GrBackendObject) >= sizeof(const GrGLTextureInfo*)); +GR_STATIC_ASSERT(sizeof(GrBackendObject) >= sizeof(const GrGLFramebufferInfo*)); +#endif + #endif |