OSDN Git Service

Fall back to single plane composition in Idle case.
authorKalyan Kondapally <kalyan.kondapally@intel.com>
Sun, 28 May 2017 08:14:12 +0000 (01:14 -0700)
committerKalyan Kondapally <kalyan.kondapally@intel.com>
Sun, 4 Jun 2017 09:06:25 +0000 (02:06 -0700)
commit87cf75bd4abcbdcc8c9b2a40390b2f4c3e84f3db
treecc3c20ee5f424b5a3f8d0fc8c393f0e0ae4dc60e
parent45177d912708b87c45e60a858076ba02a94d9e16
Fall back to single plane composition in Idle case.

There is no need to continue using different planes for composition
in case the system is not really updating any new content. We now
track this and if we haven't updated content for the previous three
vblanks, we fall back to single plane composition for the current
content on screen.

Jira: None.
Test: Power consumption is minimum in idle case scenarious.
Signed-off-by: Kalyan Kondapally <kalyan.kondapally@intel.com>
21 files changed:
common/compositor/compositor.cpp
common/compositor/compositor.h
common/compositor/gl/egloffscreencontext.cpp
common/compositor/gl/egloffscreencontext.h
common/compositor/gl/glrenderer.cpp
common/compositor/gl/glrenderer.h
common/compositor/renderer.h
common/compositor/scopedrendererstate.cpp
common/compositor/scopedrendererstate.h
common/compositor/vk/vkrenderer.cpp
common/compositor/vk/vkrenderer.h
common/display/displayplane.cpp
common/display/displayplanemanager.cpp
common/display/displayplanemanager.h
common/display/displayqueue.cpp
common/display/displayqueue.h
common/display/vblankeventhandler.cpp
common/display/vblankeventhandler.h
os/android/grallocbufferhandler.cpp
public/hwcbuffer.h
tests/jsonconfigs/multiplelayers_idle.json [new file with mode: 0644]