| 229 | } |
| 230 | |
| 231 | void BitmapCanvasContext::SetStrokeStyle(const std::string &color) { |
| 232 | TraceCommand("SetStrokeStyle: " + color); |
| 233 | if (color != strokeColorCache_ && CanvasColorParser::Parse(color, strokeColor_)) { |
| 234 | strokeColorCache_ = color; |
| 235 | } |
| 236 | int resultColor = CanvasColorParser::RGBAToHex(strokeColor_); |
| 237 | resultColor = darkModeManager_.GetColorWithInt(resultColor); |
| 238 | |
| 239 | env_ = GetJniEnvSafe(); |
| 240 | F2SafeCallVoidMethod(env_, canvasContext_->obj(), setStrokeStyle_, resultColor); |
| 241 | } |
| 242 | |
| 243 | void BitmapCanvasContext::SetStrokeStyle(const CanvasFillStrokeStyle &style) { |
| 244 | TraceCommand("SetStrokeStyle style"); |
no test coverage detected