Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ORB_ASSUME_NONNULL_BEGIN
ORB_EXTERN_C_BEGIN

// TODO: Review those names later
typedef ORB_ENUM(uint32_t, ORBColorMode) {
typedef ORB_ENUM(int32_t, ORBColorMode) {
ORBColorMode0 = 0,
ORBColorMode1 = 1,
ORBColorMode2 = 2,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//
// ORBDisplayList.h
// OpenRenderBox

#pragma once

#include <OpenRenderBox/ORBBase.h>

#if ORB_OBJC_FOUNDATION

#include <Foundation/Foundation.h>

ORB_ASSUME_NONNULL_BEGIN

// TODO
@interface ORBDisplayList : NSObject

@end

ORB_ASSUME_NONNULL_END

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@

#if ORB_OBJC_FOUNDATION

#include <OpenRenderBox/ORBColor.h>
#include <OpenRenderBoxObjC/Device/ORBDevice.h>
#include <OpenRenderBoxObjC/Render/ORBDrawableStatistics.h>
#include <OpenRenderBox/ORBColor.h>
#include <OpenRenderBoxObjC/Render/_ORBDrawableDelegate.h>
#include <OpenRenderBoxObjC/Render/ORBDisplayList.h>

//#include "RBImageQueueLayer.h"
//#include "RBSurfaceContentsLayer.h"
//#include "_RBDrawableDelegate-Protocol.h"
//#include "_RBSharedSurfaceOwner-Protocol.h"

#include <QuartzCore/QuartzCore.h>
Expand All @@ -24,7 +25,7 @@

ORB_ASSUME_NONNULL_BEGIN

@interface ORBLayer: CALayer </*_RBDrawableDelegate, _RBSharedSurfaceOwner,*/ ORBDrawableStatistics>
@interface ORBLayer: CALayer <_ORBDrawableDelegate, /*_RBSharedSurfaceOwner,*/ ORBDrawableStatistics>

@property (retain, nonatomic, nullable) ORBDevice *device;
@property (nonatomic) BOOL rendersAsynchronously;
Expand Down Expand Up @@ -68,7 +69,7 @@ ORB_ASSUME_NONNULL_BEGIN
- (BOOL)_willMoveSubsurface:(unsigned int)subsurface;
- (void)copyImageInRect:(CGRect)rect options:(nullable id)options completionQueue:(nullable id)queue handler:(nullable id /* block */)handler;
- (BOOL)displayWithBounds:(CGRect)bounds callback:(nullable id /* block */)callback;
- (void)drawInDisplayList:(nullable id)list;
- (void)drawInDisplayList:(nullable ORBDisplayList *)list;
- (void)resetStatistics:(NSUInteger)statistics alpha:(double)alpha;
- (void)waitUntilAsyncRenderingCompleted;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
//
// ORBLayerDelegate.h
// OpenRenderBox

#pragma once

#include <OpenRenderBox/ORBBase.h>

#if ORB_OBJC_FOUNDATION

#include <OpenRenderBoxObjC/Render/ORBDisplayList.h>

#include <Foundation/Foundation.h>
#include <QuartzCore/QuartzCore.h>

ORB_ASSUME_NONNULL_BEGIN

@class ORBLayer;

@protocol ORBLayerDelegate <CALayerDelegate>

@required

@optional

- (void)RBLayer:(ORBLayer *)layer draw:(ORBDisplayList *)inDisplayList;
- (nullable id)RBLayerDefaultDevice:(ORBLayer *)layer;

@end

ORB_ASSUME_NONNULL_END

#endif /* ORB_OBJC_FOUNDATION */

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//
// _ORBDrawableDelegate.h
// OpenRenderBox

#pragma once

#include <OpenRenderBox/ORBBase.h>

#if ORB_OBJC_FOUNDATION

#include <Foundation/Foundation.h>

ORB_ASSUME_NONNULL_BEGIN

@protocol _ORBDrawableDelegate <NSObject>

@required

- (void)_RBDrawableStatisticsDidChange;

@optional

@end

ORB_ASSUME_NONNULL_END

#endif /* ORB_OBJC_FOUNDATION */

2 changes: 2 additions & 0 deletions Sources/OpenRenderBoxShims/Export.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
public typealias ORBColor = RBColor
public typealias ORBDevice = RBDevice
public typealias ORBLayer = RBLayer
public typealias ORBLayerDelegate = RBLayerDelegate
public typealias ORBDisplayList = RBDisplayList
public typealias ORBPath = RBPath
public typealias ORBUUID = RBUUID
public let renderBoxEnabled = true
Expand Down