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") {
clang_win = ""
+ skia_vulkan_sdk = getenv("VULKAN_SDK")
+ skia_moltenvk_path = ""
++
+ ncli = ""
+ ncli_version = "4.0"
}
declare_args() {
is_debug = !is_official_build
// Chrome is using this!
void dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const;
+ bool supportsDistanceFieldText() const;
+
+ GrBackend backend() { return fBackend; }
+
protected:
GrContext(GrBackend, int32_t id = SK_InvalidGenID);
*/
#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 <stdint.h>
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();