summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/tests/screencap
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-09-29 13:02:36 -0700
committerMathias Agopian <mathias@google.com>2010-09-29 16:55:15 -0700
commit74c40c0a273dbfd7d10617c4cc1b0c066bfc812e (patch)
treef2f723f2f2d83ada036e0866d37806e8665bf561 /services/surfaceflinger/tests/screencap
parente0d26fbac81fa28a390b80890cd87b67d1c9e0ef (diff)
downloadframeworks_native-74c40c0a273dbfd7d10617c4cc1b0c066bfc812e.zip
frameworks_native-74c40c0a273dbfd7d10617c4cc1b0c066bfc812e.tar.gz
frameworks_native-74c40c0a273dbfd7d10617c4cc1b0c066bfc812e.tar.bz2
refactored screenshot code
the core screenshot function now can capture the screen at any lower resolution performing bilinear filtering. we also now have some client code to interface with the screenshot service. it's now possible to request a screenshot at a lower resolution. Change-Id: I5a3b0e431421800e3aad601d9af8f94adffbc71f
Diffstat (limited to 'services/surfaceflinger/tests/screencap')
-rw-r--r--services/surfaceflinger/tests/screencap/screencap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/tests/screencap/screencap.cpp b/services/surfaceflinger/tests/screencap/screencap.cpp
index 9e893f4..6cf1504 100644
--- a/services/surfaceflinger/tests/screencap/screencap.cpp
+++ b/services/surfaceflinger/tests/screencap/screencap.cpp
@@ -42,7 +42,7 @@ int main(int argc, char** argv)
sp<IMemoryHeap> heap;
uint32_t w, h;
PixelFormat f;
- status_t err = composer->captureScreen(0, &heap, &w, &h, &f);
+ status_t err = composer->captureScreen(0, &heap, &w, &h, &f, 0, 0);
if (err != NO_ERROR) {
fprintf(stderr, "screen capture failed: %s\n", strerror(-err));
exit(0);