changeset 57653:c7b41a9b3ca6

8234813: MTLRenderer_FillAAParallelogram is not implemented Added _Nonnull annotation
author avu
date Thu, 23 Jan 2020 20:07:34 +0300
parents f6f2dd18c0f6
children 29b5f320cbf9
files src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/EncoderManager.h src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/EncoderManager.m
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/EncoderManager.h	Thu Jan 23 17:24:18 2020 +0300
+++ b/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/EncoderManager.h	Thu Jan 23 20:07:34 2020 +0300
@@ -30,7 +30,7 @@
 // returns encoder that renders/fills geometry with current paint and composite
 - (id<MTLRenderCommandEncoder> _Nonnull)getRenderEncoder:(const BMTLSDOps * _Nonnull)dstOps;
 
-- (id<MTLRenderCommandEncoder> _Nonnull)getAARenderEncoder:(id<MTLTexture>)dstTxt;
+- (id<MTLRenderCommandEncoder> _Nonnull)getAARenderEncoder:(id<MTLTexture> _Nonnull)dstTxt;
 
 - (id<MTLRenderCommandEncoder> _Nonnull)getRenderEncoder:(id<MTLTexture> _Nonnull)dest
                                              isDstOpaque:(bool)isOpaque;
@@ -61,4 +61,4 @@
 - (void)endEncoder;
 @end
 
-#endif // EncoderManager_h_Included
\ No newline at end of file
+#endif // EncoderManager_h_Included
--- a/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/EncoderManager.m	Thu Jan 23 17:24:18 2020 +0300
+++ b/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/EncoderManager.m	Thu Jan 23 20:07:34 2020 +0300
@@ -245,7 +245,7 @@
     return [self getRenderEncoder:dstOps->pTexture isDstOpaque:dstOps->isOpaque];
 }
 
-- (id<MTLRenderCommandEncoder>) getAARenderEncoder:(id<MTLTexture>)dstTxt
+- (id<MTLRenderCommandEncoder>) getAARenderEncoder:(id<MTLTexture> _Nonnull) dstTxt
 {
     return [self getEncoder:dstTxt isOpaque:JNI_TRUE isTexture:JNI_FALSE isAA:JNI_TRUE srcFlags:NULL];