Searched refs:SkFunction (Results 1 - 3 of 3) sorted by relevance

/external/skia/src/core/
H A DSkFunction.h16 template <typename> class SkFunction;
19 class SkFunction<R(Args...)> { class
21 SkFunction() {} function in class:SkFunction
24 SkFunction(const Fn& fn) : fFunction(SkNEW_ARGS(LambdaImpl<Fn>, (fn))) {} function in class:SkFunction
26 SkFunction(R (*fn)(Args...)) : fFunction(SkNEW_ARGS(FnPtrImpl, (fn))) {} function in class:SkFunction
28 SkFunction(const SkFunction& other) { *this = other; } function in class:SkFunction
29 SkFunction& operator=(const SkFunction& other) {
/external/skia/tests/
H A DFunctionTest.cpp8 #include "SkFunction.h"
11 static void test_add_five(skiatest::Reporter* r, SkFunction<int(int)>& f) {
16 static void test_add_five(skiatest::Reporter* r, SkFunction<int(int)>&& f) { test_add_five(r, f); }
35 // lambda into an SkFunction all equally well.
45 // Makes sure we forward arguments when calling SkFunction.
46 SkFunction<int(int, MoveOnlyThree&&, int)> f([](int x, MoveOnlyThree&& three, int y) {
52 SkTArray<SkFunction<int(int)>> add_fivers;
62 SkFunction<int(int)> empty;
67 SkFunction<int(int)> emptyA, emptyB(emptyA);
/external/skia/dm/
H A DDMSrcSink.cpp16 #include "SkFunction.h"
501 SkISize size, SkFunction<Error(SkCanvas*)> draw) {
504 ProxySrc(SkISize size, SkFunction<Error(SkCanvas*)> draw) : fSize(size), fDraw(draw) {}
510 SkFunction<Error(SkCanvas*)> fDraw;

Completed in 165 milliseconds