OSDN Git Service

surfaceflinger: discard stale commands
authorChia-I Wu <olv@google.com>
Thu, 22 Jun 2017 17:48:28 +0000 (10:48 -0700)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Thu, 22 Jun 2017 20:11:33 +0000 (20:11 +0000)
commit801ad647015810abc856f93ff1e90bb930714ec9
treee92f25db27279e9372a286d953df51209c47eaaf
parent53213430b56f4051fcee7e5d79a03adce9e3eb5f
surfaceflinger: discard stale commands

When we skip validate, we may have stale commands on the command
buffer.  They should be discarded.

Bug: 62906801
Test: manual
Change-Id: Ie7921ba75ab2252b834cda6924e1fcfdf236f759
(cherry picked from commit 0c6ce4608fc022608537162dd919e7f729b9cb77)
services/surfaceflinger/DisplayHardware/HWC2.cpp
services/surfaceflinger/DisplayHardware/HWC2.h
services/surfaceflinger/DisplayHardware/HWComposer.cpp