| 909 | this->drawFilledRect(D, sizeD, c); |
| 910 | } |
| 911 | void flush() override |
| 912 | { |
| 913 | // Cleanup any outstanding destroyed texture or framebuffer objects |
| 914 | { |
| 915 | std::lock_guard<std::mutex> lock(this->destroyed_texture_list_mutex); |
| 916 | |
| 917 | for (auto &id : this->destroyed_texture_list) |
| 918 | { |
| 919 | gl20::DeleteTextures(1, &id); |
| 920 | } |
| 921 | this->destroyed_texture_list.clear(); |
| 922 | } |
| 923 | { |
| 924 | std::lock_guard<std::mutex> lock(this->destroyed_framebuffer_list_mutex); |
| 925 | |
| 926 | for (auto &id : this->destroyed_framebuffer_list) |
| 927 | { |
| 928 | gl20::DeleteFramebuffersEXT(1, &id); |
| 929 | } |
| 930 | this->destroyed_framebuffer_list.clear(); |
| 931 | } |
| 932 | } |
| 933 | UString getName() override { return "OGL2.0 Renderer"; } |
| 934 | sp<Surface> getDefaultSurface() override { return this->defaultSurface; } |
| 935 |
no test coverage detected