Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Snapchat/Valdi
/ setImage
Method
setImage
snap_drawing/src/snap_drawing/cpp/Layers/ImageLayer.cpp:156–161 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
154
}
155
156
void ImageLayer::setImage(const Ref<Image>& image) {
157
if (_image != image) {
158
_image = image;
159
setNeedsDisplay();
160
}
161
}
162
163
void ImageLayer::setShouldFlip(bool shouldFlip) {
164
if (_shouldFlip != shouldFlip) {
Callers
2
TEST_F
Function · 0.45
run
Method · 0.45
Calls
no outgoing calls
Tested by
1
TEST_F
Function · 0.36