The final step in setting up a renderer, set its size of this renderer. This was formerly handled by the constructor, but instead it's been broken out so that setParent/setPrimary/setPath can be handled differently. Important: this is ignored by the Methods task because otherwise it will overri
(int w, int h)
| 761 | * animation thread. |
| 762 | */ |
| 763 | public void setSize(int w, int h) { // ignore |
| 764 | width = w; |
| 765 | height = h; |
| 766 | |
| 767 | pixelWidth = width * pixelDensity; |
| 768 | pixelHeight = height * pixelDensity; |
| 769 | |
| 770 | reapplySettings = true; |
| 771 | } |
| 772 | |
| 773 | |
| 774 | // /** |