 
     weak var cache:FramebufferCache?
     var framebufferRetainCount = 0
-    func lock() {
+    public func lock() {
         framebufferRetainCount += 1
     }
 

        }
    }
    
    func sizeForTargetOrientation(_ targetOrientation:ImageOrientation) -> GLSize {
        if self.orientation.rotationNeededForOrientation(targetOrientation).flipsDimensions() {
            return GLSize(width:size.height, height:size.width)
        } else {

    public var timingStyle:FramebufferTimingStyle = .stillImage
    public var orientation:ImageOrientation

    public let texture:GLuint
    let framebuffer:GLuint?
    let stencilBuffer:GLuint?
    let size:GLSize
