diff options
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.h')
| -rw-r--r-- | services/surfaceflinger/SurfaceFlinger.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.h b/services/surfaceflinger/SurfaceFlinger.h index e82095b27a..6d146f263b 100644 --- a/services/surfaceflinger/SurfaceFlinger.h +++ b/services/surfaceflinger/SurfaceFlinger.h @@ -810,13 +810,14 @@ private: void startBootAnim(); status_t captureScreenCommon(RenderAreaFuture, TraverseLayersFunction, ui::Size bufferSize, - ui::PixelFormat, const bool allowProtected, + ui::PixelFormat, bool allowProtected, bool grayscale, const sp<IScreenCaptureListener>&); status_t captureScreenCommon(RenderAreaFuture, TraverseLayersFunction, sp<GraphicBuffer>&, - bool regionSampling, const sp<IScreenCaptureListener>&); + bool regionSampling, bool grayscale, + const sp<IScreenCaptureListener>&); status_t renderScreenImplLocked(const RenderArea&, TraverseLayersFunction, const sp<GraphicBuffer>&, bool forSystem, bool regionSampling, - ScreenCaptureResults&); + bool grayscale, ScreenCaptureResults&); sp<DisplayDevice> getDisplayByIdOrLayerStack(uint64_t displayOrLayerStack) REQUIRES(mStateLock); sp<DisplayDevice> getDisplayByLayerStack(uint64_t layerStack) REQUIRES(mStateLock); @@ -1019,6 +1020,8 @@ private: void onFrameRateFlexibilityTokenReleased(); + static mat4 calculateColorMatrix(float saturation); + void updateColorMatrixLocked(); // Verify that transaction is being called by an approved process: |