|
@@ -73,14 +73,12 @@ approach to change color components.
|
|
|
#include "third_party/blink/renderer/platform/graphics/stroke_data.h"
|
|
|
#include "third_party/blink/renderer/platform/heap/heap.h"
|
|
|
|
|
|
-@@ -2180,6 +2181,11 @@ ImageData* BaseRenderingContext2D::getIm
|
|
|
+@@ -2180,6 +2181,9 @@ ImageData* BaseRenderingContext2D::getIm
|
|
|
snapshot->PaintImageForCurrentFrame().GetSkImageInfo().bounds();
|
|
|
DCHECK(!bounds.intersect(SkIRect::MakeXYWH(sx, sy, sw, sh)));
|
|
|
}
|
|
|
+ if (read_pixels_successful && RuntimeEnabledFeatures::FingerprintingCanvasImageDataNoiseEnabled()) {
|
|
|
-+ base::span<uint8_t> dst = base::span<uint8_t>(reinterpret_cast<uint8_t*>(image_data_pixmap.writable_addr()),
|
|
|
-+ image_data_pixmap.rowBytes());
|
|
|
-+ StaticBitmapImage::ShuffleSubchannelColorData(dst.data(), image_data_pixmap.info(), sx, sy);
|
|
|
++ StaticBitmapImage::ShuffleSubchannelColorData(image_data_pixmap.addr(), image_data_pixmap.info(), sx, sy);
|
|
|
+ }
|
|
|
}
|
|
|
|