This CL refactors RendererCommon.getSamplingMatrix() so it does not have any dependecy to SurfaceTeture. The purpose is to prepare for a change in how texture frames are represented - only the texture matrix will be exposed, not the SurfaceTexture itself. This CL also adds an extra test for RendererCommon.rotateTextureMatrix(). R=hbos@webrtc.org Review URL: https://codereview.webrtc.org/1375593002 . Cr-Commit-Position: refs/heads/master@{#10118}