Enabled cropping support in SurfaceTexture
SurfaceTexture will modify the crop rect so it matches
the desired output aspect ratio when the scaling
mode is NATIVE_WINDOW_SCALING_MODE_CROP. Added a test
for this new scaling mode.
Change-Id: I60f24dcbc294b65cd10a393d9e27d40f07d27bb6
diff --git a/include/gui/SurfaceTexture.h b/include/gui/SurfaceTexture.h
index 3f5e4df..1a0d779 100644
--- a/include/gui/SurfaceTexture.h
+++ b/include/gui/SurfaceTexture.h
@@ -283,6 +283,8 @@
// gets set each time updateTexImage is called.
int64_t mCurrentTimestamp;
+ uint32_t mDefaultWidth, mDefaultHeight;
+
// mTexName is the name of the OpenGL texture to which streamed images will
// be bound when updateTexImage is called. It is set at construction time
// and can be changed with a call to attachToContext.