diff options
author | Mathias Agopian <mathias@google.com> | 2010-09-29 13:02:36 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-09-29 16:55:15 -0700 |
commit | 38ed2e39c54a42dda8f00620f960788f569a3698 (patch) | |
tree | bf7d48a3bb3c372e7348cab154cb73301ce4a87f /services/surfaceflinger/SurfaceFlinger.h | |
parent | e17c054d34676c25f03b4eb0d8daebe41b84bf6e (diff) | |
download | frameworks_base-38ed2e39c54a42dda8f00620f960788f569a3698.zip frameworks_base-38ed2e39c54a42dda8f00620f960788f569a3698.tar.gz frameworks_base-38ed2e39c54a42dda8f00620f960788f569a3698.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/SurfaceFlinger.h')
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.h b/services/surfaceflinger/SurfaceFlinger.h index 6e9ecbd..732e57e 100644 --- a/services/surfaceflinger/SurfaceFlinger.h +++ b/services/surfaceflinger/SurfaceFlinger.h @@ -197,7 +197,9 @@ public: sp<IMemoryHeap>* heap, uint32_t* width, uint32_t* height, - PixelFormat* format); + PixelFormat* format, + uint32_t reqWidth, + uint32_t reqHeight); void screenReleased(DisplayID dpy); void screenAcquired(DisplayID dpy); @@ -319,6 +321,11 @@ private: void commitTransaction(); + status_t captureScreenImplLocked(DisplayID dpy, + sp<IMemoryHeap>* heap, + uint32_t* width, uint32_t* height, PixelFormat* format, + uint32_t reqWidth = 0, uint32_t reqHeight = 0); + friend class FreezeLock; sp<FreezeLock> getFreezeLock() const; inline void incFreezeCount() { |