MCPcopy Create free account
hub / github.com/Tencent/libpag / hasImageContent

Method hasImageContent

src/base/VectorComposition.cpp:58–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58bool VectorComposition::hasImageContent() const {
59 for (auto& layer : layers) {
60 switch (layer->type()) {
61 case LayerType::PreCompose:
62 if (static_cast<PreComposeLayer*>(layer)->composition->hasImageContent()) {
63 return true;
64 }
65 break;
66 case LayerType::Image:
67 return true;
68 default:
69 break;
70 }
71 }
72 return false;
73}
74
75bool VectorComposition::verify() const {
76 if (!Composition::verify()) {

Callers

nothing calls this directly

Calls 1

typeMethod · 0.45

Tested by

no test coverage detected