< prev index next >

src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLLayer.h

Print this page
@@ -39,21 +39,25 @@
      // intermediate buffer, used the RQ lock to synchronize
      MTLContext* ctx;
      float bufferWidth;
      float bufferHeight;
      id<MTLTexture> buffer;
-     int nextDrawableCount;
+     id<CAMetalDrawable> mtlDrawable;
+     id<MTLCommandBuffer> blitCommandBuf;
+     id<MTLBlitCommandEncoder> blitEncoder;
      int topInset;
      int leftInset;
  }
  
  @property (nonatomic, retain) JNFWeakJObjectWrapper *javaLayer;
  @property (readwrite, assign) MTLContext* ctx;
  @property (readwrite, assign) float bufferWidth;
  @property (readwrite, assign) float bufferHeight;
  @property (readwrite, assign) id<MTLTexture> buffer;
- @property (readwrite, assign) int nextDrawableCount;
+ @property (readwrite, assign) id<CAMetalDrawable> mtlDrawable;
+ @property (readwrite, assign) id<MTLCommandBuffer> blitCommandBuf;
+ @property (readwrite, assign) id<MTLBlitCommandEncoder> blitEncoder;
  @property (readwrite, assign) int topInset;
  @property (readwrite, assign) int leftInset;
  
  - (id) initWithJavaLayer:(JNFWeakJObjectWrapper *)layer;
  

@@ -64,8 +68,9 @@
                             DY1:(jfloat)dy1
                             DX2:(jfloat)dx2
                             DY2:(jfloat)dy2;
  - (void) blitCallback;
  - (void) display;
+ - (void) initBlit;
  @end
  
  #endif /* CGLLayer_h_Included */
< prev index next >