OSDN Git Service

Add Surface::waitForNextFrame
authorRobert Carr <racarr@google.com>
Mon, 11 Apr 2016 18:15:32 +0000 (11:15 -0700)
committerRobert Carr <racarr@google.com>
Wed, 13 Apr 2016 02:33:25 +0000 (19:33 -0700)
commit9f31e299b3ec93b7bac969846105e7e926e3efcd
tree0303187960df1b35cb8cc3e25c9fd04828af13f1
parent3e3a11a7805efb61f482914abc2ff8f01d5ec1b0
Add Surface::waitForNextFrame

We can use this for cases like SurfaceView
where one thread (e.g. the framework code)
wants to wait for an unknown client thread
to render a frame in to the surface before
we report it as shown to the window manager.

Bug: 22207948
Change-Id: I9d3344aa1c0ab0f0efd9df24e90ce0410d5f2e22
include/gui/Surface.h
libs/gui/Surface.cpp