Repository navigation
[core] Refcount the view activations - #5874
Conversation
|
On android we still have to activate/deactivate the context because on some phones you have multiple contexts around. But it is now "refcounted" so it supports nested invocations. |
64dc189 to
e7e49d9
Compare
fe19c6e to
45c5e04
Compare
|
Reducing the scope just for android, gonna be one week out and this could potentially have some unwanted side effects. |
45c5e04 to
0c460a5
Compare
|
Why are you refcounting? Shouldn't it be something like "activate when not activated" and "deactivate when still active" and make all other operations no-ops? Rather than count the number of activations, is there a way to fix the underlying issue so that they aren't activated/deactivated in the first place? |
That would not work. The buggy code was: So the |
|
Well, we could only call Activate/Deactivate after AddLayer when the context is not active? |
Fixes #5836
Fixes #5721