diff options
author | 2021-09-21 01:45:19 +0000 | |
---|---|---|
committer | 2021-09-21 01:45:19 +0000 | |
commit | bbed4ebd98e3c2901070fb1d28e3ca82d320ba8c (patch) | |
tree | 1b793c4bb238a5a9935df5298714c7a6fbff0054 /services/surfaceflinger/Layer.cpp | |
parent | 397ccc9217936fbd36a2d420b9b42741b7bda02b (diff) | |
parent | 4f2ea10357be90b703c1e459fe3a0d346cd0c97d (diff) |
Merge "SurfaceControl: Add setDropInputMode api" into sc-v2-dev-plus-aosp
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r-- | services/surfaceflinger/Layer.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index 638bb9b60f..e097745550 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -135,6 +135,7 @@ Layer::Layer(const LayerCreationArgs& args) mDrawingState.postTime = -1; mDrawingState.destinationFrame.makeInvalid(); mDrawingState.isTrustedOverlay = false; + mDrawingState.dropInputMode = gui::DropInputMode::NONE; if (args.flags & ISurfaceComposerClient::eNoColorFill) { // Set an invalid color so there is no color fill. @@ -2576,6 +2577,14 @@ wp<Layer> Layer::fromHandle(const sp<IBinder>& handleBinder) { return handle->owner; } +bool Layer::setDropInputMode(gui::DropInputMode mode) { + if (mDrawingState.dropInputMode == mode) { + return false; + } + mDrawingState.dropInputMode = mode; + return true; +} + // --------------------------------------------------------------------------- std::ostream& operator<<(std::ostream& stream, const Layer::FrameRate& rate) { |