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

Method createBitmap

valdi/test/svg/SVGRenderer_tests.cpp:17–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15class TrackingBitmapFactory : public Valdi::IBitmapFactory {
16public:
17 Valdi::Result<Valdi::Ref<Valdi::IBitmap>> createBitmap(int width, int height) override {
18 lastBitmap = Valdi::makeShared<snap::drawing::TestBitmap>(width, height);
19 return Valdi::Ref<Valdi::IBitmap>(lastBitmap);
20 }
21
22 Valdi::Ref<snap::drawing::TestBitmap> lastBitmap;
23};

Calls

no outgoing calls

Tested by

no test coverage detected