Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP5:Update
chromium.18138
chromium-115-compiler-SkColor4f.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File chromium-115-compiler-SkColor4f.patch of Package chromium.18138
diff -up chromium-115.0.5790.40/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc.me chromium-115.0.5790.40/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc --- chromium-115.0.5790.40/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc.me 2023-06-24 10:38:11.011511463 +0200 +++ chromium-115.0.5790.40/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc 2023-06-24 13:07:35.865375884 +0200 @@ -84,6 +84,7 @@ CanvasStyle::CanvasStyle(const CanvasSty void CanvasStyle::ApplyToFlags(cc::PaintFlags& flags, float global_alpha) const { + SkColor4f custom_color = SkColor4f{0.0f, 0.0f, 0.0f, global_alpha}; switch (type_) { case kColor: ApplyColorToFlags(flags, global_alpha); @@ -91,12 +92,12 @@ void CanvasStyle::ApplyToFlags(cc::Paint case kGradient: GetCanvasGradient()->GetGradient()->ApplyToFlags(flags, SkMatrix::I(), ImageDrawOptions()); - flags.setColor(SkColor4f(0.0f, 0.0f, 0.0f, global_alpha)); + flags.setColor(custom_color); break; case kImagePattern: GetCanvasPattern()->GetPattern()->ApplyToFlags( flags, AffineTransformToSkMatrix(GetCanvasPattern()->GetTransform())); - flags.setColor(SkColor4f(0.0f, 0.0f, 0.0f, global_alpha)); + flags.setColor(custom_color); break; default: NOTREACHED();
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor