Skip to content

Commit

Permalink
Merge branch 'main' into wcandillon-patch-50
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon authored Dec 18, 2024
2 parents aea377d + e77754c commit aa2bef2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/skia/src/dom/nodes/JsiSkDOM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,15 +331,12 @@ export class JsiSkDOM implements SkDOM {
}

LinearToSRGBGammaColorFilter() {
return global.SkiaDomApi &&
global.SkiaDomApi.LinearToSRGBGammaColorFilterNode
? global.SkiaDomApi.LinearToSRGBGammaColorFilterNode()
return this.native? global.SkiaDomApi.LinearToSRGBGammaColorFilterNode()
: new LinearToSRGBGammaColorFilterNode(this.ctx);
}

SRGBToLinearGammaColorFilter() {
return global.SkiaDomApi &&
global.SkiaDomApi.SRGBToLinearGammaColorFilterNode
return this.native
? global.SkiaDomApi.SRGBToLinearGammaColorFilterNode()
: new SRGBToLinearGammaColorFilterNode(this.ctx);
}
Expand Down

0 comments on commit aa2bef2

Please sign in to comment.