()
| 833 | |
| 834 | |
| 835 | public void disposeSourceBuffer() { |
| 836 | if (usedBuffers == null) return; |
| 837 | |
| 838 | while (0 < usedBuffers.size()) { |
| 839 | BufferData data = null; |
| 840 | try { |
| 841 | data = usedBuffers.remove(0); |
| 842 | } catch (NoSuchElementException ex) { |
| 843 | PGraphics.showWarning("Cannot remove used buffer"); |
| 844 | } |
| 845 | if (data != null) { |
| 846 | data.dispose(); |
| 847 | } |
| 848 | } |
| 849 | } |
| 850 | |
| 851 | public void getBufferPixels(int[] pixels) { |
| 852 | // We get the buffer either from the used buffers or the cache, giving |
nothing calls this directly
no test coverage detected