MCPcopy Create free account
hub / github.com/Snapchat/Valdi / canvas

Method canvas

snap_drawing/src/snap_drawing/cpp/Drawing/DrawingContext.cpp:115–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115SkCanvas* DrawingContext::canvas() {
116 if (_canvas == nullptr) {
117 _canvas = _recorder.beginRecording(_drawBounds.getSkValue());
118 }
119
120 return _canvas;
121}
122
123} // namespace snap::drawing

Callers 3

drawTextMethod · 0.80
drawTextShadowsMethod · 0.80
onDrawMethod · 0.80

Calls 1

getSkValueMethod · 0.80

Tested by

no test coverage detected