OSDN Git Service

SurfaceTexture: improve texture matrix computation
authorJamie Gennis <jgennis@google.com>
Tue, 8 May 2012 23:56:34 +0000 (16:56 -0700)
committerJamie Gennis <jgennis@google.com>
Wed, 9 May 2012 00:08:33 +0000 (17:08 -0700)
commit5c1139fea3cc0fd9847a6594d853a458152b2fbc
treeb2be36d18d22c46c5d9accf5e4a1c4ad38d5c50a
parentd72f233ffa125856a44976a50a66ceb669f49ab2
SurfaceTexture: improve texture matrix computation

This change reduces the shrinking of the crop rectangle in some cases.  It adds
a way to inform the SurfaceTexture that its texture will be used without
bilinear interpolation, and uses knowledge of the pixel format to avoid
shrinking unecessarily.

Change-Id: I72365f39f74ecb7fcc51b4cf42f2d0fa97727212
include/gui/SurfaceTexture.h
libs/gui/SurfaceTexture.cpp