From eaa79e8fda4a15e89224df3c0434b1cc7a98acd2 Mon Sep 17 00:00:00 2001 From: Eloston Date: Mon, 17 Sep 2018 16:40:22 +0000 Subject: [PATCH] Add missing includes to flag-fingerprinting-canvas-webgl-noise This solution is a compromise/hack. The ideal solution would be to extend third_party/skia with a public function that can do the data shuffling, but that would require separating the Skia-dependent constants from the algorithm, which is also interleaved with dependencies on //base (which Skia isn't). However, given that Skia seems to insert "Sk" or include "skia" somewhere in all its names (file and variable names) means that it should be fine to add those to the includes of //third_party/blink/renderer/platform without much risk of introducing a name conflict bug. The Skia includes/private directory is chosen for inclusion since SkColorData.h (and dependencies) only depend on includes within that directory, so this would have the smallest impact in terms of namespace pollution. Fixes #508 --- .../flag-fingerprinting-canvas-webgl-noise.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/patches/bromite/flag-fingerprinting-canvas-webgl-noise.patch b/patches/bromite/flag-fingerprinting-canvas-webgl-noise.patch index 6a9dd15d..725a5844 100644 --- a/patches/bromite/flag-fingerprinting-canvas-webgl-noise.patch +++ b/patches/bromite/flag-fingerprinting-canvas-webgl-noise.patch @@ -312,3 +312,16 @@ approach to change color components. switches::kFMPNetworkQuietTimeout, switches::kForceColorProfile, switches::kForceDeviceScaleFactor, +--- a/third_party/blink/renderer/platform/BUILD.gn ++++ b/third_party/blink/renderer/platform/BUILD.gn +@@ -1478,7 +1478,9 @@ jumbo_component("platform") { + "//third_party/blink/renderer:non_test_config", + ] + +- include_dirs = [] ++ include_dirs = [ ++ "//third_party/skia/include/private", # For shuffler in graphics/static_bitmap_image.cc ++ ] + + public_deps = [ + ":blink_platform_public_deps",