package sbname.sbcamera;

import android.content.Context;
import android.util.AttributeSet;
import android.view.SurfaceView;

/**
 * Created by WindPush on 2017/2/6.
 */

public class SbCameraView  extends SurfaceView implements SbCameraPresenter{
    private int mPreviewWith = 0;
    private int mPreviewHeight= 0;

    public SbCameraView(Context context) {
        super(context);
    }

    public SbCameraView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    public SbCameraView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public SbCameraView setCameraPreviewSize(int previewWidth, int previewHeight) {
        return this;
    }

    @Override
    public SbCameraView setPreviewScaleType(int scaleType) {
        return this;
    }

    @Override
    public void build() {

    }
}

@@ -70,99 +70,238 @@
 oid.
-util.AttributeSet;%0Aimport android.view.SurfaceView;%0A%0A/**%0A * Created by WindPush on 2017/2/6
+opengl.GLSurfaceView;%0Aimport android.util.AttributeSet;%0A%0A/**%0A * Created by WindPush on 2017/2/6.%0A * choose the glsurface in order to support with some cool feature like prisma style filter .scale or other interesting preview looks
 .%0A *
@@ -338,16 +338,18 @@
 extends 
+GL
 SurfaceV
@@ -460,210 +460,447 @@
     
-public SbCameraView(Context context) %7B%0A        super(context);%0A    %7D%0A%0A    public SbCameraView(Context context, AttributeSet attrs, int defStyleAttr) %7B
+/**%0A     * Standard View constructor. In order to render something, you%0A     * must call %7B@link #setRenderer%7D to register a renderer.%0A     *%0A     * @param context%0A     */%0A    public SbCameraView(Context context) %7B%0A        super(context);%0A    %7D%0A%0A    /**%0A     * Standard View constructor. In order to render something, you%0A     * must call %7B@link #setRenderer%7D to register a renderer.
 %0A    
+ *%0A
     
-super(context, attrs, defStyleAttr);
+ * @param context%0A     * @param attrs
 %0A    
-%7D%0A
+ */
 %0A   
@@ -989,32 +989,33 @@
  attrs);%0A    %7D%0A%0A
+%0A
     @Override%0A  

change surface to glsurface