| 162 | } |
| 163 | |
| 164 | void GrSettings::SetEncoderFormat(int idx) { |
| 165 | // h264 |
| 166 | if (idx == 0) { |
| 167 | sp_->Put(kStEncoderFormat, "h264"); |
| 168 | } else if (idx == 1) { |
| 169 | sp_->Put(kStEncoderFormat, "h265"); |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | std::string GrSettings::GetEncoderFormat() { |
| 174 | auto value = sp_->Get(kStEncoderFormat); |