summaryrefslogtreecommitdiffstats
path: root/include/gui/SurfaceTextureClient.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-07-13 15:24:42 -0700
committerMathias Agopian <mathias@google.com>2011-07-19 13:05:11 -0700
commit7734ebfe47f42f980c1b44c1f284a91d8ad1d6c7 (patch)
treeabeca227f4c6410653109904568d0c6391e72f5c /include/gui/SurfaceTextureClient.h
parent0c696c1ad2d9b349be43a0819e886250d9171000 (diff)
downloadframeworks_native-7734ebfe47f42f980c1b44c1f284a91d8ad1d6c7.zip
frameworks_native-7734ebfe47f42f980c1b44c1f284a91d8ad1d6c7.tar.gz
frameworks_native-7734ebfe47f42f980c1b44c1f284a91d8ad1d6c7.tar.bz2
Add set_scaling_mode() to ANativeWindow.
This allows to specify the scaling mode independently from the buffer size. Change-Id: Iaa2baa660445531a97d3fac192e580f4929c5d3b
Diffstat (limited to 'include/gui/SurfaceTextureClient.h')
-rw-r--r--include/gui/SurfaceTextureClient.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gui/SurfaceTextureClient.h b/include/gui/SurfaceTextureClient.h
index cfe2aa1..76e7119 100644
--- a/include/gui/SurfaceTextureClient.h
+++ b/include/gui/SurfaceTextureClient.h
@@ -63,6 +63,7 @@ private:
int dispatchSetBuffersGeometry(va_list args);
int dispatchSetBuffersDimensions(va_list args);
int dispatchSetBuffersFormat(va_list args);
+ int dispatchSetScalingMode(va_list args);
int dispatchSetBuffersTransform(va_list args);
int dispatchSetBuffersTimestamp(va_list args);
int dispatchSetCrop(va_list args);
@@ -84,6 +85,7 @@ protected:
virtual int setBufferCount(int bufferCount);
virtual int setBuffersDimensions(int w, int h);
virtual int setBuffersFormat(int format);
+ virtual int setScalingMode(int mode);
virtual int setBuffersTransform(int transform);
virtual int setBuffersTimestamp(int64_t timestamp);
virtual int setCrop(Rect const* rect);