Skip to content

Commit 27bc372

Browse files
author
Patrick Boos
committed
Allow retrieving of GPUImage used in GPUImageView
1 parent 7aee75e commit 27bc372

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

library/src/jp/co/cyberagent/android/gpuimage/GPUImageView.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,15 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
8585
}
8686
}
8787

88+
/**
89+
* Retrieve the GPUImage instance used by this view.
90+
*
91+
* @return used GPUImage instance
92+
*/
93+
public GPUImage getGPUImage() {
94+
return mGPUImage;
95+
}
96+
8897
// TODO Should be an xml attribute. But then GPUImage can not be distributed as .jar anymore.
8998
public void setRatio(float ratio) {
9099
mRatio = ratio;

0 commit comments

Comments
 (0)