diff --git a/DEPS b/DEPS index 56360501f0..4034ca569f 100644 --- a/DEPS +++ b/DEPS @@ -23,7 +23,7 @@ vars = { 'github_git': 'https://github.com', 'mojo_sdk_revision': '6b5fb1227c742f5ecc077486ebc029f2711c61fa', 'base_revision': '75e70c3387cf327702a0533e93bc480446da0806', - 'skia_revision': '5561e3ddbbf6c3e051075ada4a11ddc70760f03d', + 'skia_revision': 'e038489a743d6c0ab1cb208862c305180815bc8e', # Note: When updating the Dart revision, ensure that all entries that are # dependencies of dart are also updated diff --git a/engine/src/flutter/flow/layers/clip_rrect_layer.cc b/engine/src/flutter/flow/layers/clip_rrect_layer.cc index 59da010d5b..393da5c3f9 100644 --- a/engine/src/flutter/flow/layers/clip_rrect_layer.cc +++ b/engine/src/flutter/flow/layers/clip_rrect_layer.cc @@ -21,7 +21,7 @@ void ClipRRectLayer::Paint(PaintContext& context) { TRACE_EVENT0("flutter", "ClipRRectLayer::Paint"); SkAutoCanvasRestore save(&context.canvas, false); context.canvas.saveLayer(&paint_bounds(), nullptr); - context.canvas.clipRRect(clip_rrect_, SkRegion::kIntersect_Op, true); + context.canvas.clipRRect(clip_rrect_, kIntersect_SkClipOp, true); PaintChildren(context); } diff --git a/engine/src/flutter/shell/common/diagnostic/diagnostic_server.cc b/engine/src/flutter/shell/common/diagnostic/diagnostic_server.cc index 296a655691..bcdd9d6a89 100644 --- a/engine/src/flutter/shell/common/diagnostic/diagnostic_server.cc +++ b/engine/src/flutter/shell/common/diagnostic/diagnostic_server.cc @@ -135,7 +135,7 @@ void DiagnosticServer::SkiaPictureTask(Dart_Port port_id) { SkDynamicMemoryWStream stream; PngPixelSerializer serializer; picture->serialize(&stream, &serializer); - SkAutoTUnref picture_data(stream.copyToData()); + sk_sp picture_data(stream.snapshotAsData()); Dart_CObject c_object; c_object.type = Dart_CObject_kTypedData; diff --git a/engine/src/flutter/skia/BUILD.gn b/engine/src/flutter/skia/BUILD.gn index 9a3f9ff80b..cf6717d29c 100644 --- a/engine/src/flutter/skia/BUILD.gn +++ b/engine/src/flutter/skia/BUILD.gn @@ -7,7 +7,10 @@ if (is_fuchsia) { group("skia") { # TODO(abarth): Switch the non-Fuchsia build over to using Skia's BUILD.gn # files as well. - public_deps = [ "//third_party/skia" ] + public_deps = [ + "//third_party/skia", + "//third_party/skia:gpu", + ] } } else { @@ -22,18 +25,6 @@ if (current_cpu == "mipsel" || current_cpu == "mips64el") { import("//build/config/mips.gni") } -# The list of Skia defines that are to be set for chromium. -gypi_skia_defines = - exec_script("//build/gypi_to_gn.py", - [ - rebase_path( - "//third_party/skia/gyp/skia_for_chromium_defines.gypi"), - "--replace=<(skia_include_path)=//third_party/skia/include", - "--replace=<(skia_src_path)=//third_party/skia/src", - ], - "scope", - [ "//third_party/skia/gyp/skia_for_chromium_defines.gypi" ]) - # The list of Skia core sources that are to be set for chromium. gypi_skia_core = exec_script("//build/gypi_to_gn.py", @@ -67,16 +58,14 @@ gypi_skia_effects = "scope", [ "//third_party/skia/gyp/effects.gypi" ]) -# The list of Skia utils that are to be set for chromium. -gypi_skia_utils = +gypi_skia_sources = exec_script("//build/gypi_to_gn.py", [ - rebase_path("//third_party/skia/gyp/utils.gypi"), - "--replace=<(skia_include_path)=//third_party/skia/include", - "--replace=<(skia_src_path)=//third_party/skia/src", + rebase_path("//third_party/skia/gyp/skia_sources.gypi"), + "--replace=..=//third_party/skia", ], "scope", - [ "//third_party/skia/gyp/utils.gypi" ]) + [ "//third_party/skia/gyp/skia_sources.gypi" ]) gypi_skia_opts = exec_script("//build/gypi_to_gn.py", @@ -134,9 +123,7 @@ config("skia_library_config") { include_dirs += [ "//third_party/skia/include/utils/ios" ] } - defines = gypi_skia_defines.skia_for_chromium_defines - - defines += [ "SK_SUPPORT_GPU=1" ] + defines = [ "SK_SUPPORT_GPU=1" ] # Supported codecs. defines += [ @@ -242,7 +229,7 @@ component("skia") { # The skia gypi values are relative to the skia_dir, so we need to rebase. sources += gypi_skia_core.sources sources += gypi_skia_effects.sources - sources += gypi_skia_utils.sources + sources += gypi_skia_sources.utils_sources sources += [ "//third_party/skia/src/codec/SkAndroidCodec.cpp", @@ -269,6 +256,7 @@ component("skia") { "//third_party/skia/src/fonts/SkFontMgr_indirect.cpp", "//third_party/skia/src/fonts/SkRemotableFontMgr.cpp", "//third_party/skia/src/ports/SkDiscardableMemory_none.cpp", + "//third_party/skia/src/ports/SkFontConfigInterface.cpp", "//third_party/skia/src/ports/SkFontConfigInterface_direct_factory.cpp", "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp", "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", @@ -422,6 +410,7 @@ component("skia") { if (!is_linux) { sources -= [ + "//third_party/skia/src/ports/SkFontConfigInterface.cpp", "//third_party/skia/src/ports/SkFontConfigInterface_direct_factory.cpp", "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp", "//third_party/skia/src/ports/SkFontMgr_FontConfigInterface.cpp",