| 151 | } |
| 152 | |
| 153 | void TextCanvas::GetBGRA(MemoryBlock* mem_to_fill) { |
| 154 | unsigned num_pixels = pixels_.size(); |
| 155 | mem_to_fill->resize(num_pixels); |
| 156 | for (unsigned i = 0; i < num_pixels; ++i) { |
| 157 | mem_to_fill->at(i) = pixels_[i]; |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | void TextCanvas::Clear() { |
| 162 | for (unsigned char& pixel : pixels_) { |
no test coverage detected