Camera 2 Api preview is stretched
<p>I work with old camera api and camera 2 api, using GlSurfaceView.
when I get necessary aspect ratio in old api I use
 Camera.Parameters</p>

<pre><code>camParams.setPreviewSize(previewW, previewH);
       if(isPictureSizeSupported(camParams, newSize)) {
           camParams.setPictureSize(newSize.getWidth(), newSize.getHeight());
       }
</code></pre>

<p>if it will not be called, preview is streched</p>

<p>Q: How to get such effect in camera 2 api?</p>