From: Matthew Leibowitz Date: Mon, 3 Sep 2018 21:26:52 +0000 (+0200) Subject: Merge branch 'chrome/m68' into dev/update-m68 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0bc3de155cb419b302ea0ee4209cc1b7c6d5eaa9;p=platform%2Fupstream%2FlibSkiaSharp.git Merge branch 'chrome/m68' into dev/update-m68 --- 0bc3de155cb419b302ea0ee4209cc1b7c6d5eaa9 diff --cc gn/BUILD.gn index bbd924a92a,7a6a8211d5..e081a47ab7 --- a/gn/BUILD.gn +++ b/gn/BUILD.gn @@@ -179,34 -169,12 +179,36 @@@ config("default") libs += [ "c++_static", "c++abi", - "android_support", ] + if (ndk_api < 21) { + libs += [ "android_support" ] + } } + if (is_tizen) { + asmflags += [ + "--target=$ncli_target", + "-B$ncli/tools/$ncli_gccdir/$ncli_target/bin", + ] + cflags += [ + "--sysroot=$ncli/platforms/$ncli_platform", + "--target=$ncli_target", + "-B$ncli/tools/$ncli_gccdir/$ncli_target/bin", + ] + cflags_cc += [ + "-isystem$ncli/tools/$ncli_gccdir/$ncli_target/include/c++/6.2.1", + "-isystem$ncli/tools/$ncli_gccdir/$ncli_target/include/c++/6.2.1/$ncli_target", + ] + ldflags += [ + "--sysroot=$ncli/platforms/$ncli_platform", + "--target=$ncli_target", + "-B$ncli/tools/$ncli_gccdir/$ncli_target/bin", + ] + lib_dirs = [ + "$ncli/platforms/$ncli_platform/usr/lib", + ] + } + if (is_ios) { _target = target_cpu if (target_cpu == "arm") { diff --cc gn/BUILDCONFIG.gn index ba119fef11,e5440b9b76..6b7d6bd717 --- a/gn/BUILDCONFIG.gn +++ b/gn/BUILDCONFIG.gn @@@ -35,8 -34,8 +35,11 @@@ declare_args() clang_win = "" + skia_vulkan_sdk = getenv("VULKAN_SDK") + skia_moltenvk_path = "" ++ + ncli = "" + ncli_version = "4.0" } declare_args() { is_debug = !is_official_build diff --cc include/gpu/GrContext.h index 71a0b8d7f1,525e5d77b8..9ed54edd30 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@@ -281,8 -282,8 +282,10 @@@ public // Chrome is using this! void dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const; + bool supportsDistanceFieldText() const; + + GrBackend backend() { return fBackend; } + protected: GrContext(GrBackend, int32_t id = SK_InvalidGenID); diff --cc tests/CTest.cpp index 121b2c4692,425b264718..d7fe5b3f28 --- a/tests/CTest.cpp +++ b/tests/CTest.cpp @@@ -6,20 -6,18 +6,22 @@@ */ #include "Test.h" - #include "sk_canvas.h" #include "sk_paint.h" - #include "sk_surface.h" #include "sk_shader.h" + #include "sk_surface.h" + #include "sk_types.h" + + #include static void shader_test(skiatest::Reporter* reporter) { - sk_imageinfo_t info = - {64, 64, sk_colortype_get_default_8888(), PREMUL_SK_ALPHATYPE}; - sk_surface_t* surface = sk_surface_new_raster(&info, nullptr); + sk_imageinfo_t info; + info.width = 64; + info.height = 64; + info.colorType = sk_colortype_get_default_8888(); + info.alphaType = PREMUL_SK_ALPHATYPE; + + sk_surface_t* surface = sk_surface_new_raster(&info, 0, nullptr); sk_canvas_t* canvas = sk_surface_get_canvas(surface); sk_paint_t* paint = sk_paint_new();