OSDN Git Service

Dynamically adjust renderahead
authorJohn Reck <jreck@google.com>
Thu, 11 Apr 2019 23:11:24 +0000 (16:11 -0700)
committerJohn Reck <jreck@google.com>
Thu, 18 Apr 2019 21:20:56 +0000 (14:20 -0700)
commitcf185f5b0d30516ecb34350a585aed7f7d4e0672
tree4235b69aa096175a3e01db7ea62e7c1bcab30603
parentc4a3f5c3777da82d6f452d26f684a65e97ed963c
Dynamically adjust renderahead

Tracks refresh rate changes and adjusts renderahead
based off of the active refresh rate.

Default is 60hz = 0 render ahead & > 70hz is render ahead 1

Bug: 127822449
Test: systraced stuff

Change-Id: I9849aa065262f21f7602d44cd1761373279dc28d
libs/hwui/DeviceInfo.cpp
libs/hwui/DeviceInfo.h
libs/hwui/Properties.cpp
libs/hwui/Properties.h
libs/hwui/renderthread/CanvasContext.cpp
libs/hwui/renderthread/CanvasContext.h
libs/hwui/renderthread/RenderThread.cpp
libs/hwui/renderthread/RenderThread.h
libs/hwui/tests/unit/CacheManagerTests.cpp