| 221 | } |
| 222 | |
| 223 | void TextCanvasTexture::UploadTextCanvasToTexture() { |
| 224 | TextCanvas& text_canvas = impl_->text_canvas; |
| 225 | TextCanvas::MemoryBlock& bgra_block = impl_->bgra_block; |
| 226 | TextureRef& texture_ref = impl_->texture_ref; |
| 227 | text_canvas.GetBGRA(&bgra_block); |
| 228 | FillTextureFromBGRABlock(texture_ref, bgra_block, text_canvas.width(), text_canvas.height()); |
| 229 | } |
| 230 | |
| 231 | void TextCanvasTexture::ClearTextCanvas() { |
| 232 | impl_->text_canvas.Clear(); |
nothing calls this directly
no test coverage detected