diff options
author | John Reck <jreck@google.com> | 2018-09-20 13:00:04 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2018-09-20 13:41:56 -0700 |
commit | f3c724fd7c18e78b8d981b0ff35477ecbf383298 (patch) | |
tree | 5c06fb350f53d79461e1c50da96c1977e81ff058 /libs/hwui/RenderNode.h | |
parent | bd5fed399f93183eaf1ad6d69f73019713682d2d (diff) |
Make auto-dark a bit better
Handles transform of basic bitmaps
Tweak to always treat text as foreground
Test: builds, poked around with force_dark
Change-Id: I733d39e05067438335da5a7eac06111f66f1228d
Diffstat (limited to 'libs/hwui/RenderNode.h')
-rw-r--r-- | libs/hwui/RenderNode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/RenderNode.h b/libs/hwui/RenderNode.h index 83b0c2278151..211dd2db5cf8 100644 --- a/libs/hwui/RenderNode.h +++ b/libs/hwui/RenderNode.h @@ -107,7 +107,7 @@ public: bool isRenderable() const { return mDisplayList && !mDisplayList->isEmpty(); } bool hasProjectionReceiver() const { - return mDisplayList && mDisplayList->projectionReceiveIndex >= 0; + return mDisplayList && mDisplayList->containsProjectionReceiver(); } const char* getName() const { return mName.string(); } |