@@ -11502,10 +11502,10 @@ index b0722e7da81e56530deb570b82ed7cfece970362..05ec3e3ea97ba49135a27d7f9b91f14c
11502
11502
}
11503
11503
diff --git a/Source/WebKit/UIProcess/Inspector/Agents/CairoJpegEncoder.cpp b/Source/WebKit/UIProcess/Inspector/Agents/CairoJpegEncoder.cpp
11504
11504
new file mode 100644
11505
- index 0000000000000000000000000000000000000000..d56b71ee99786d8452424858b026af226538df27
11505
+ index 0000000000000000000000000000000000000000..f59da55bac614259ea9a991279f25922f26c8728
11506
11506
--- /dev/null
11507
11507
+++ b/Source/WebKit/UIProcess/Inspector/Agents/CairoJpegEncoder.cpp
11508
- @@ -0,0 +1,241 @@
11508
+ @@ -0,0 +1,244 @@
11509
11509
+/* Copyright 2018 Bernhard R. Fischer, 4096R/8E24F29D <
[email protected] >
11510
11510
+ *
11511
11511
+ * This file is part of Cairo_JPG.
@@ -11556,10 +11556,10 @@ index 0000000000000000000000000000000000000000..d56b71ee99786d8452424858b026af22
11556
11556
+#include <stdint.h>
11557
11557
+#include <sys/types.h>
11558
11558
+#include <sys/stat.h>
11559
- +#include <fcntl.h>
11560
- +#include <unistd.h>
11561
11559
+#include <cairo.h>
11562
- +#include <jpeglib.h>
11560
+ +extern "C" {
11561
+ +#include "jpeglib.h"
11562
+ +}
11563
11563
+
11564
11564
+/*! Macro to activate main() function. This is only used for testing. Comment
11565
11565
+ * it out (#undef) if you link this file to your own program.
@@ -11698,7 +11698,10 @@ index 0000000000000000000000000000000000000000..d56b71ee99786d8452424858b026af22
11698
11698
+ jpeg_create_compress(&cinfo);
11699
11699
+
11700
11700
+ // set compression parameters
11701
- + jpeg_mem_dest(&cinfo, data, len);
11701
+ + unsigned long targetSize;
11702
+ + jpeg_mem_dest(&cinfo, data, &targetSize);
11703
+ + *len = targetSize;
11704
+ +
11702
11705
+ cinfo.image_width = cairo_image_surface_get_width(sfc);
11703
11706
+ cinfo.image_height = cairo_image_surface_get_height(sfc);
11704
11707
+#ifdef LIBJPEG_TURBO_VERSION
@@ -12044,10 +12047,10 @@ index 0000000000000000000000000000000000000000..5cacf99f0c809497b06a54f02767663b
12044
12047
+} // namespace WebKit
12045
12048
diff --git a/Source/WebKit/UIProcess/Inspector/Agents/InspectorScreencastAgent.h b/Source/WebKit/UIProcess/Inspector/Agents/InspectorScreencastAgent.h
12046
12049
new file mode 100644
12047
- index 0000000000000000000000000000000000000000..d21ed6104abefa1d465d565a519db4b130bbcecf
12050
+ index 0000000000000000000000000000000000000000..759ea406372f734dec37955becb5ec7499645198
12048
12051
--- /dev/null
12049
12052
+++ b/Source/WebKit/UIProcess/Inspector/Agents/InspectorScreencastAgent.h
12050
- @@ -0,0 +1,91 @@
12053
+ @@ -0,0 +1,95 @@
12051
12054
+/*
12052
12055
+ * Copyright (C) 2020 Microsoft Corporation.
12053
12056
+ *
@@ -12079,6 +12082,10 @@ index 0000000000000000000000000000000000000000..d21ed6104abefa1d465d565a519db4b1
12079
12082
+#include <JavaScriptCore/InspectorBackendDispatchers.h>
12080
12083
+#include <JavaScriptCore/InspectorFrontendDispatchers.h>
12081
12084
+
12085
+ +#if USE(CAIRO)
12086
+ +#include <cairo.h>
12087
+ +#endif
12088
+ +
12082
12089
+#include <wtf/Forward.h>
12083
12090
+#include <wtf/Noncopyable.h>
12084
12091
+#include <wtf/WeakPtr.h>
0 commit comments