Lines Matching refs:get_ref
96 template <typename T> T* get_ref(lua_State* L, int index) {
410 get_ref<SkCanvas>(L, 1)->clear(0);
415 get_ref<SkCanvas>(L, 1)->drawColor(lua2color(L, 2));
420 get_ref<SkCanvas>(L, 1)->drawPaint(*get_obj<SkPaint>(L, 2));
428 get_ref<SkCanvas>(L, 1)->drawRect(rect, *paint);
434 get_ref<SkCanvas>(L, 1)->drawOval(*lua2rect(L, 2, &rect),
440 get_ref<SkCanvas>(L, 1)->drawCircle(lua2scalar(L, 2),
462 SkCanvas* canvas = get_ref<SkCanvas>(L, 1);
463 SkImage* image = get_ref<SkImage>(L, 2);
476 SkCanvas* canvas = get_ref<SkCanvas>(L, 1);
477 SkImage* image = get_ref<SkImage>(L, 2);
516 get_ref<SkCanvas>(L, 1)->drawPatch(cubics, colors, texs, *get_obj<SkPaint>(L, 5));
521 get_ref<SkCanvas>(L, 1)->drawPath(*get_obj<SkPath>(L, 2),
528 SkCanvas* canvas = get_ref<SkCanvas>(L, 1);
529 SkPicture* picture = get_ref<SkPicture>(L, 2);
550 get_ref<SkCanvas>(L, 1)->drawText(text, len,
558 const SkTextBlob* blob = get_ref<SkTextBlob>(L, 2);
562 get_ref<SkCanvas>(L, 1)->drawTextBlob(blob, x, y, paint);
567 lua_pushnumber(L, get_ref<SkCanvas>(L, 1)->getSaveCount());
572 SkLua(L).pushMatrix(get_ref<SkCanvas>(L, 1)->getTotalMatrix());
577 lua_pushinteger(L, get_ref<SkCanvas>(L, 1)->save());
583 lua_pushinteger(L, get_ref<SkCanvas>(L, 1)->saveLayer(nullptr, lua2OptionalPaint(L, 2, &paint)));
588 get_ref<SkCanvas>(L, 1)->restore();
595 get_ref<SkCanvas>(L, 1)->scale(sx, sy);
602 get_ref<SkCanvas>(L, 1)->translate(tx, ty);
608 get_ref<SkCanvas>(L, 1)->rotate(degrees);
613 get_ref<SkCanvas>(L, 1)->concat(*get_obj<SkMatrix>(L, 2));
621 auto surface = get_ref<SkCanvas>(L, 1)->makeSurface(info);
669 push_ptr(L, get_ref<SkDocument>(L, 1)->beginPage(lua2scalar(L, 2),
676 get_ref<SkDocument>(L, 1)->endPage();
681 get_ref<SkDocument>(L, 1)->close();
686 get_ref<SkDocument>(L, 1)->unref();
816 get_obj<SkPaint>(L, 1)->setTypeface(sk_ref_sp(get_ref<SkTypeface>(L, 2)));
988 paint->setColorFilter(sk_ref_sp(get_ref<SkColorFilter>(L, 2)));
1004 paint->setImageFilter(sk_ref_sp(get_ref<SkImageFilter>(L, 2)));
1020 paint->setShader(sk_ref_sp(get_ref<SkShader>(L, 2)));
1123 SkShader* shader = get_ref<SkShader>(L, 1);
1128 SkShader* shader = get_ref<SkShader>(L, 1);
1146 SkShader* shader = get_ref<SkShader>(L, 1);
1177 get_ref<SkShader>(L, 1)->unref();
1192 SkPathEffect* pe = get_ref<SkPathEffect>(L, 1);
1208 get_ref<SkPathEffect>(L, 1)->unref();
1221 get_ref<SkColorFilter>(L, 1)->unref();
1233 get_ref<SkImageFilter>(L, 1)->unref();
1604 lua_pushinteger(L, get_ref<SkImage>(L, 1)->width());
1609 lua_pushinteger(L, get_ref<SkImage>(L, 1)->height());
1616 push_ref(L, get_ref<SkImage>(L, 1)->makeShader(tmode, tmode, localM));
1621 get_ref<SkImage>(L, 1)->unref();
1636 lua_pushinteger(L, get_ref<SkSurface>(L, 1)->width());
1641 lua_pushinteger(L, get_ref<SkSurface>(L, 1)->height());
1646 SkCanvas* canvas = get_ref<SkSurface>(L, 1)->getCanvas();
1661 sk_sp<SkImage> image = get_ref<SkSurface>(L, 1)->makeImageSnapshot();
1674 auto surface = get_ref<SkSurface>(L, 1)->makeSurface(info);
1684 get_ref<SkSurface>(L, 1)->unref();
1754 lua_pushnumber(L, get_ref<SkPicture>(L, 1)->cullRect().width());
1759 lua_pushnumber(L, get_ref<SkPicture>(L, 1)->cullRect().height());
1764 get_ref<SkPicture>(L, 1)->unref();
1778 SkLua(L).pushRect(get_ref<SkTextBlob>(L, 1)->bounds());
1783 SkSafeUnref(get_ref<SkTextBlob>(L, 1));
1797 get_ref<SkTypeface>(L, 1)->getFamilyName(&str);
1803 lua_pushnumber(L, (double)get_ref<SkTypeface>(L, 1)->style());
1808 SkSafeUnref(get_ref<SkTypeface>(L, 1));