summaryrefslogtreecommitdiffstats
path: root/cmds/screenrecord/Program.h
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2014-05-12 23:18:30 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-05-12 23:18:30 +0000
commit4ae3cfd801f0e62c2863d20a8ecc21369351c205 (patch)
tree3965cd98b12c5753e77c2f6fd5e003926ff843d9 /cmds/screenrecord/Program.h
parentc1b0056ea57978a77a6fac0ea80861b39140696f (diff)
parent21bde57f0099fed5cca78d9357571dc015a63227 (diff)
downloadframeworks_av-4ae3cfd801f0e62c2863d20a8ecc21369351c205.zip
frameworks_av-4ae3cfd801f0e62c2863d20a8ecc21369351c205.tar.gz
frameworks_av-4ae3cfd801f0e62c2863d20a8ecc21369351c205.tar.bz2
am 21bde57f: Add frame dump output
* commit '21bde57f0099fed5cca78d9357571dc015a63227': Add frame dump output
Diffstat (limited to 'cmds/screenrecord/Program.h')
-rw-r--r--cmds/screenrecord/Program.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/cmds/screenrecord/Program.h b/cmds/screenrecord/Program.h
index e47bc0d..558be8d 100644
--- a/cmds/screenrecord/Program.h
+++ b/cmds/screenrecord/Program.h
@@ -51,9 +51,11 @@ public:
// Release the program and associated resources.
void release();
- // Blit the specified texture to { x, y, x+w, y+h }.
+ // Blit the specified texture to { x, y, x+w, y+h }. Inverts the
+ // content if "invert" is set.
status_t blit(GLuint texName, const float* texMatrix,
- int32_t x, int32_t y, int32_t w, int32_t h) const;
+ int32_t x, int32_t y, int32_t w, int32_t h,
+ bool invert = false) const;
// Draw a number of triangles.
status_t drawTriangles(GLuint texName, const float* texMatrix,
@@ -67,7 +69,7 @@ private:
// Common code for draw functions.
status_t beforeDraw(GLuint texName, const float* texMatrix,
- const float* vertices, const float* texes) const;
+ const float* vertices, const float* texes, bool invert) const;
status_t afterDraw() const;
// GLES 2 shader utilities.