Searched refs:SkFunction (Results 1 – 3 of 3) sorted by relevance
/external/skia/src/core/ |
D | SkFunction.h | 16 template <typename> class SkFunction; variable 19 class SkFunction<R(Args...)> { 21 SkFunction() {} in SkFunction() function 24 SkFunction(const Fn& fn) : fFunction(SkNEW_ARGS(LambdaImpl<Fn>, (fn))) {} in SkFunction() function 26 SkFunction(R (*fn)(Args...)) : fFunction(SkNEW_ARGS(FnPtrImpl, (fn))) {} in SkFunction() function 28 SkFunction(const SkFunction& other) { *this = other; } in SkFunction() function 29 SkFunction& operator=(const SkFunction& other) {
|
/external/skia/tests/ |
D | FunctionTest.cpp | 11 static void test_add_five(skiatest::Reporter* r, SkFunction<int(int)>& f) { in test_add_five() 16 static void test_add_five(skiatest::Reporter* r, SkFunction<int(int)>&& f) { test_add_five(r, f); } in test_add_five() 46 SkFunction<int(int, MoveOnlyThree&&, int)> f([](int x, MoveOnlyThree&& three, int y) { in DEF_TEST() 52 SkTArray<SkFunction<int(int)>> add_fivers; in DEF_TEST() 62 SkFunction<int(int)> empty; in DEF_TEST() 67 SkFunction<int(int)> emptyA, emptyB(emptyA); in DEF_TEST()
|
/external/skia/dm/ |
D | DMSrcSink.cpp | 501 SkISize size, SkFunction<Error(SkCanvas*)> draw) { in draw_to_canvas() 504 ProxySrc(SkISize size, SkFunction<Error(SkCanvas*)> draw) : fSize(size), fDraw(draw) {} in draw_to_canvas() 510 SkFunction<Error(SkCanvas*)> fDraw; in draw_to_canvas()
|