summaryrefslogtreecommitdiff
path: root/libs/hwui/ProgramCache.cpp
diff options
context:
space:
mode:
authorWale Ogunwale <ogunwale@google.com>2016-09-26 15:21:22 -0700
committerWale Ogunwale <ogunwale@google.com>2016-10-12 13:29:33 +0000
commit02319a61927041cc4d3632e94c501b7277f0bda5 (patch)
tree4c7143c68877fb1d2036e49f41761fae6a70be70 /libs/hwui/ProgramCache.cpp
parent5f9b85ff4c285d6d5cee02754626f1ca8e94d1a8 (diff)
Associate WindowToken object with only one display at a time
WindowTokens were global objects that contained windows that could be on multiple displays. This model does not work with the WindowContainer hierarachy as children (window tokens) can not have mulitple parents (displays). We now: - Track the mapping of binder tokens to window tokens per display instead of globally . So, you can have a binder token map to individual WindowToken objects per display. - WMS.addWindowToken is used to create a WindowToken that clients can then later add windows to. However, when addWindowToken is called we don't know the display the client(s) would like to add window to. So, we track binder tokens that we are allowed to add window for in the RootWindowContainer and create a window token for the binder on a specific display when we try to add a window. Bug: 30060889 Test: Manual testing and existing tests pass. Change-Id: I81a52a32b01c33ed32169d2da0506b688ea9bc8a
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions