Skip to content

Commit

Permalink
Made the pipeline additions a little more generic, so they wouldn't b…
Browse files Browse the repository at this point in the history
…reak on the Mac.
  • Loading branch information
BradLarson committed Apr 28, 2014
1 parent 263aac3 commit 347d21c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
9 changes: 3 additions & 6 deletions framework/Source/GPUImageFilterPipeline.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@class GPUImageOutput;
@protocol GPUImageInput;
#import "GPUImageOutput.h"

@interface GPUImageFilterPipeline : NSObject
{
Expand All @@ -21,8 +18,8 @@
- (void) addFilter:(GPUImageOutput<GPUImageInput> *)filter;
- (void) addFilter:(GPUImageOutput<GPUImageInput> *)filter atIndex:(NSUInteger)insertIndex;
- (void) replaceFilterAtIndex:(NSUInteger)index withFilter:(GPUImageOutput<GPUImageInput> *)filter;
- (void) replaceAllFilters:(NSArray*) newFilters;
- (void) removeFilter:(GPUImageFilter*)filter;
- (void) replaceAllFilters:(NSArray *) newFilters;
- (void) removeFilter:(GPUImageOutput<GPUImageInput> *)filter;
- (void) removeFilterAtIndex:(NSUInteger)index;
- (void) removeAllFilters;

Expand Down
3 changes: 1 addition & 2 deletions framework/Source/GPUImageFilterPipeline.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#import "GPUImageFilterPipeline.h"
#import "GPUImageOutput.h"

@interface GPUImageFilterPipeline ()

Expand Down Expand Up @@ -164,7 +163,7 @@ - (void)replaceFilterAtIndex:(NSUInteger)index withFilter:(GPUImageOutput<GPUIma
[self _refreshFilters];
}

- (void)removeFilter:(GPUImageFilter *)filter
- (void) removeFilter:(GPUImageOutput<GPUImageInput> *)filter;
{
[self.filters removeObject:filter];
[self _refreshFilters];
Expand Down

0 comments on commit 347d21c

Please sign in to comment.