Skip to content

Commit

Permalink
Ignore certain layers SurfaceFlinger marks as such
Browse files Browse the repository at this point in the history
  • Loading branch information
morphis committed Nov 23, 2016
1 parent 8018942 commit 64d56de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions android/hwcomposer/hwcomposer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ static int hwc_set(hwc_composer_device_1_t* dev, size_t numDisplays,
for (size_t i = 0 ; i < displays[0]->numHwLayers ; i++) {
const auto layer = &displays[0]->hwLayers[i];

if (layer->flags & HWC_SKIP_LAYER ||
layer->flags & HWC_IS_CURSOR_LAYER)
continue;

dump_layer(layer);

// FIXME this is just dirty ... but layer->handle is a const native_handle_t and canBePosted
Expand Down

0 comments on commit 64d56de

Please sign in to comment.