| 130 | |
| 131 | |
| 132 | static void EncodeTexture(const CNativeTexture * texture, DataSink * sink) |
| 133 | { |
| 134 | u32 width = texture->GetWidth(); |
| 135 | u32 height = texture->GetHeight(); |
| 136 | size_t num_bytes = width * 4 * height; |
| 137 | u8 * bytes = static_cast<u8 * >(malloc(num_bytes)); |
| 138 | |
| 139 | FlattenTexture(texture, bytes, num_bytes); |
| 140 | |
| 141 | Base64Encode(bytes, num_bytes, sink); |
| 142 | free(bytes); |
| 143 | } |
| 144 | |
| 145 | void DLDebugger_ProcessDebugTask() |
| 146 | { |
no test coverage detected