summaryrefslogtreecommitdiff
path: root/opengl/java/android/opengl/Texture.java
diff options
context:
space:
mode:
authorDave Sparks <davidsparks@android.com>2009-10-13 02:28:54 -0700
committerDave Sparks <davidsparks@android.com>2009-10-13 02:52:00 -0700
commita6118c6383c6f5703a576d08586a340fd71d28a4 (patch)
treef32befe2dc535480d0305fd93cb1f88d5e1e1e21 /opengl/java/android/opengl/Texture.java
parent6dc3f4e553d333b9f115a222a9a684bb2aa55b5e (diff)
Throttle camera preview frames to the app. Bug 2180302.
With higher frame rates and larger preview frames, we can easily flood the application with too much data. This patch fakes the old camera preview mode by doing continuous one-shot frames. After the previous frame is handled, if the application hasn't cleared the preview callback, we start another one-shot preview frame. With this change, the application should never have more than one preview frame unless it is explicitly saving references to them. modified: core/java/android/hardware/Camera.java
Diffstat (limited to 'opengl/java/android/opengl/Texture.java')
0 files changed, 0 insertions, 0 deletions