Home
last modified time | relevance | path

Searched refs:rtc (Results 1 – 25 of 61) sorted by relevance

123

/third_party/flutter/skia/src/gpu/vk/
DGrVkSecondaryCBDrawContext.cpp33 sk_sp<GrRenderTargetContext> rtc( in Make() local
35 SkASSERT(rtc->asSurfaceProxy()->isInstantiated()); in Make()
37 int width = rtc->width(); in Make()
38 int height = rtc->height(); in Make()
40 sk_sp<SkGpuDevice> device(SkGpuDevice::Make(ctx, std::move(rtc), width, height, in Make()
82 GrRenderTargetContext* rtc = fDevice->accessRenderTargetContext(); in characterize() local
90 SkASSERT(!rtc->asTextureProxy()); in characterize()
92 SkColorType ct = GrColorTypeToSkColorType(rtc->colorSpaceInfo().colorType()); in characterize()
97 SkImageInfo ii = SkImageInfo::Make(rtc->width(), rtc->height(), ct, kPremul_SkAlphaType, in characterize()
98 rtc->colorSpaceInfo().refColorSpace()); in characterize()
[all …]
/third_party/flutter/skia/src/image/
DSkSurface_Gpu.cpp54 GrRenderTargetContext* rtc = surface->getDevice()->accessRenderTargetContext(); in prepare_rt_for_external_access() local
55 return rtc->accessRenderTarget(); in prepare_rt_for_external_access()
91 GrRenderTargetContext* rtc = fDevice->accessRenderTargetContext(); in onNewImageSnapshot() local
92 if (!rtc) { in onNewImageSnapshot()
98 if (!rtc->asSurfaceProxy()) { in onNewImageSnapshot()
102 SkBudgeted budgeted = rtc->asSurfaceProxy()->isBudgeted(); in onNewImageSnapshot()
104 sk_sp<GrTextureProxy> srcProxy = rtc->asTextureProxyRef(); in onNewImageSnapshot()
107 srcProxy = GrSurfaceProxy::Copy(ctx, rtc->asSurfaceProxy(), rtc->mipMapped(), *subset, in onNewImageSnapshot()
109 } else if (!srcProxy || rtc->priv().refsWrappedObjects()) { in onNewImageSnapshot()
113 SkASSERT(rtc->origin() == rtc->asSurfaceProxy()->origin()); in onNewImageSnapshot()
[all …]
/third_party/flutter/skia/tests/
DTessellatingPathRendererTests.cpp736 sk_sp<GrRenderTargetContext> rtc(ctx->priv().makeDeferredRenderTargetContext( in DEF_GPUTEST_FOR_ALL_CONTEXTS() local
739 if (!rtc) { in DEF_GPUTEST_FOR_ALL_CONTEXTS()
745 rtc->discard(); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
747 test_path(ctx, rtc.get(), create_path_0()); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
748 test_path(ctx, rtc.get(), create_path_1()); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
749 test_path(ctx, rtc.get(), create_path_2()); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
750 test_path(ctx, rtc.get(), create_path_3()); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
751 test_path(ctx, rtc.get(), create_path_4()); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
752 test_path(ctx, rtc.get(), create_path_5()); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
753 test_path(ctx, rtc.get(), create_path_6()); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
[all …]
DDefaultPathRendererTest.cpp42 static SkBitmap read_back(GrRenderTargetContext* rtc, int width, int height) { in read_back() argument
49 rtc->readPixels(dstII, bm.getAddr(0, 0), bm.rowBytes(), {0, 0}); in read_back()
86 auto rtc = ctx->priv().makeDeferredRenderTargetContext( in run_test() local
90 rtc->clear(nullptr, { 0, 0, 0, 1 }, GrRenderTargetContext::CanClearFullscreen::kYes); in run_test()
98 rtc->drawPath(GrNoClip(), std::move(paint), GrAA::kNo, in run_test()
101 rtc->flush(SkSurface::BackendSurfaceAccess::kNoAccess, GrFlushInfo()); in run_test()
105 auto rtc = ctx->priv().makeDeferredRenderTargetContext( in run_test() local
108 rtc->clear(nullptr, { 0, 0, 0, 1 }, GrRenderTargetContext::CanClearFullscreen::kYes); in run_test()
116 rtc->drawPath(GrNoClip(), std::move(paint), GrAA::kNo, in run_test()
119 SkBitmap bm = read_back(rtc.get(), kBigSize, kBigSize); in run_test()
DGrMeshTest.cpp86 sk_sp<GrRenderTargetContext> rtc(context->priv().makeDeferredRenderTargetContext( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
88 if (!rtc) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
140 run_test(context, "setNonIndexedNonInstanced", reporter, rtc, gold, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
160 run_test(context, "setIndexed", reporter, rtc, gold, [&](DrawMeshHelper* helper) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
184 run_test(context, "setIndexedPatterned", reporter, rtc, gold, [&](DrawMeshHelper* helper) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
206 reporter, rtc, gold, [&](DrawMeshHelper* helper) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
390 const sk_sp<GrRenderTargetContext>& rtc, const SkBitmap& gold, in run_test() argument
394 if (h != rtc->height() || w != rtc->width()) { in run_test()
404 rtc->clear(nullptr, SkPMColor4f::FromBytes_RGBA(0xbaaaaaad), in run_test()
406 rtc->priv().testingOnly_addDrawOp(GrMeshTestOp::Make(context, testFn)); in run_test()
[all …]
DRectangleTextureTest.cpp47 if (GrRenderTargetContext* rtc = rectContext->asRenderTargetContext()) { in test_clear() local
50 rtc->clear(nullptr, SkPMColor4f::FromBytes_RGBA(color0), in test_clear()
53 int w = rtc->width(); in test_clear()
54 int h = rtc->height(); in test_clear()
65 for (int i = 0; i < rtc->width() * rtc->height(); ++i) { in test_clear()
72 rtc->clear(&rect, SkPMColor4f::FromBytes_RGBA(color1), in test_clear()
88 test_read_pixels(reporter, rtc, expectedPixels.get(), "RectangleTexture-clear"); in test_clear()
DOnFlushCallbackTest.cpp363 sk_sp<GrRenderTargetContext> rtc = resourceProvider->makeRenderTargetContext( in preFlush() local
367 rtc->clear(nullptr, SK_PMColor4fTRANSPARENT, in preFlush()
378 rtc->clear(&r, op->color(), GrRenderTargetContext::CanClearFullscreen::kNo); in preFlush()
384 rtc->priv().testingOnly_addDrawOp(std::move(drawOp)); in preFlush()
400 results->push_back(std::move(rtc)); in preFlush()
438 sk_sp<GrRenderTargetContext> rtc( in make_upstream_image() local
445 rtc->clear(nullptr, { 1, 0, 0, 1 }, GrRenderTargetContext::CanClearFullscreen::kYes); in make_upstream_image()
460 rtc->priv().testingOnly_addDrawOp(GrNoClip(), std::move(op), in make_upstream_image()
467 return rtc->asTextureProxyRef(); in make_upstream_image()
556 sk_sp<GrRenderTargetContext> rtc( in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
[all …]
DLazyProxyTest.cpp212 sk_sp<GrRenderTargetContext> rtc = ctx->priv().makeDeferredRenderTargetContext( variable
214 REPORTER_ASSERT(reporter, rtc);
218 rtc->priv().testingOnly_addDrawOp(LazyProxyTest::Clip(&test, mockAtlas->asTextureProxy()),
378 sk_sp<GrRenderTargetContext> rtc = ctx->priv().makeDeferredRenderTargetContext( variable
380 REPORTER_ASSERT(reporter, rtc);
382 rtc->clear(nullptr, SkPMColor4f::FromBytes_RGBA(0xbaaaaaad),
386 rtc->priv().testingOnly_addDrawOp(LazyFailedInstantiationTestOp::Make(
449 sk_sp<GrRenderTargetContext> rtc = ctx->priv().makeDeferredRenderTargetContext( variable
451 REPORTER_ASSERT(reporter, rtc);
453 rtc->clear(nullptr, SkPMColor4f::FromBytes_RGBA(0xbaaaaaad),
[all …]
DProcessorTest.cpp244 GrRenderTargetContext* rtc, in test_draw_op() argument
253 SkRect::MakeWH(rtc->width(), rtc->height())); in test_draw_op()
254 rtc->addDrawOp(GrNoClip(), std::move(op)); in test_draw_op()
258 void render_fp(GrContext* context, GrRenderTargetContext* rtc, GrFragmentProcessor* fp, in render_fp() argument
264 test_draw_op(context, rtc, fp->clone(), inputDataProxy); in render_fp()
266 rtc->readPixels(SkImageInfo::Make(width, height, kRGBA_8888_SkColorType, kPremul_SkAlphaType), in render_fp()
442 sk_sp<GrRenderTargetContext> rtc = context->priv().makeDeferredRenderTargetContext( in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
450 GrProcessorTestData testData(&random, context, rtc.get(), proxies); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
497 render_fp(context, rtc.get(), fp.get(), inputTexture2, readData2.get()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
498 render_fp(context, rtc.get(), fp.get(), inputTexture3, readData3.get()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
[all …]
DGrPipelineDynamicStateTest.cpp167 sk_sp<GrRenderTargetContext> rtc(context->priv().makeDeferredRenderTargetContext( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
169 if (!rtc) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
207 rtc->clear(nullptr, SkPMColor4f::FromBytes_RGBA(0xbaaaaaad), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
209 rtc->priv().testingOnly_addDrawOp( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
211 rtc->readPixels(SkImageInfo::Make(kScreenSize, kScreenSize, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/third_party/parse5/test/data/parser-feedback/
Druby.test88 "description": "<html><ruby>a<rb>b<rtc></ruby></html>",
89 "input": "<html><ruby>a<rb>b<rtc></ruby></html>",
116 "rtc",
298 "description": "<html><ruby>a<rt>b<rtc></ruby></html>",
299 "input": "<html><ruby>a<rt>b<rtc></ruby></html>",
326 "rtc",
424 "description": "<html><ruby>a<rtc>b<rb></ruby></html>",
425 "input": "<html><ruby>a<rtc>b<rb></ruby></html>",
443 "rtc",
466 "description": "<html><ruby>a<rtc>b<rt>c<rt>d</ruby></html>",
[all …]
/third_party/flutter/skia/gm/
Dwindowrectangles.cpp203 GrRenderTargetContext* rtc = canvas->internal_private_accessTopLayerRenderTargetContext(); in onCoverClipStack() local
204 if (!ctx || !rtc) { in onCoverClipStack()
208 if (rtc->priv().maxWindowRectangles() < kNumWindows) { in onCoverClipStack()
214 const GrReducedClip reducedClip(stack, SkRect::Make(kCoverRect), rtc->caps(), kNumWindows); in onCoverClipStack()
217 if (rtc->numSamples() <= 1) { in onCoverClipStack()
219 this->visualizeAlphaMask(ctx, rtc, reducedClip, std::move(paint)); in onCoverClipStack()
222 this->visualizeStencilMask(ctx, rtc, reducedClip, std::move(paint)); in onCoverClipStack()
227 void WindowRectanglesMaskGM::visualizeAlphaMask(GrContext* ctx, GrRenderTargetContext* rtc, in visualizeAlphaMask() argument
256 rtc->drawRect(clip, std::move(paint), GrAA::kYes, SkMatrix::I(), in visualizeAlphaMask()
260 void WindowRectanglesMaskGM::visualizeStencilMask(GrContext* ctx, GrRenderTargetContext* rtc, in visualizeStencilMask() argument
[all …]
Dclockwise.cpp180 void ClockwiseGM::onDraw(GrContext* ctx, GrRenderTargetContext* rtc, SkCanvas* canvas) { in onDraw() argument
181 rtc->clear(nullptr, { 0, 0, 0, 1 }, GrRenderTargetContext::CanClearFullscreen::kYes); in onDraw()
184 rtc->priv().testingOnly_addDrawOp(ClockwiseTestOp::Make(ctx, false, 0)); in onDraw()
185 rtc->priv().testingOnly_addDrawOp(ClockwiseTestOp::Make(ctx, true, 100)); in onDraw()
189 SkBackingFit::kExact, 100, 200, rtc->colorSpaceInfo().colorType(), nullptr, 1, in onDraw()
195 rtc->drawTexture(GrNoClip(), sk_ref_sp(topLeftRTC->asTextureProxy()), in onDraw()
205 SkBackingFit::kExact, 100, 200, rtc->colorSpaceInfo().colorType(), nullptr, 1, in onDraw()
211 rtc->drawTexture(GrNoClip(), sk_ref_sp(topLeftRTC->asTextureProxy()), in onDraw()
Dgm.cpp126 DrawResult SimpleGpuGM::onDraw(GrContext* ctx, GrRenderTargetContext* rtc, SkCanvas* canvas, in onDraw() argument
128 return fDrawProc(ctx, rtc, canvas, errorMsg); in onDraw()
166 DrawResult GpuGM::onDraw(GrContext* ctx, GrRenderTargetContext* rtc, SkCanvas* canvas, in onDraw() argument
168 this->onDraw(ctx, rtc, canvas); in onDraw()
177 GrRenderTargetContext* rtc = canvas->internal_private_accessTopLayerRenderTargetContext(); in onDraw() local
178 if (!ctx || !rtc) { in onDraw()
186 return this->onDraw(ctx, rtc, canvas, errorMsg); in onDraw()
Dsamplelocations.cpp254 GrContext* ctx, GrRenderTargetContext* rtc, SkCanvas* canvas, SkString* errorMsg) { in onDraw() argument
263 if (rtc->numSamples() <= 1 && !ctx->priv().caps()->mixedSamplesSupport()) { in onDraw()
269 SkBackingFit::kExact, 200, 200, rtc->colorSpaceInfo().colorType(), nullptr, in onDraw()
270 rtc->numSamples(), GrMipMapped::kNo, fOrigin); in onDraw()
301 rtc->priv().stencilRect(GrNoClip(), &kStencilCover, std::move(coverPaint), GrAA::kNo, in onDraw()
305 rtc->drawTexture( in onDraw()
Dpreservefillrule.cpp61 DrawResult onDraw(GrContext* ctx, GrRenderTargetContext* rtc, SkCanvas* canvas, in onDraw() argument
65 if (rtc->numSamples() > 1) { in onDraw()
109 rtc->flush(SkSurface::BackendSurfaceAccess::kNoAccess, GrFlushInfo()); in onDraw()
/third_party/pulseaudio/src/tests/
Dinterpol-test.c183 pa_usec_t t, rtc, d; in START_TEST() local
214 rtc = pa_timeval_diff(&now, &start); in START_TEST()
216 (unsigned long long) rtc, in START_TEST()
218 (unsigned long long) (rtc-old_rtc), in START_TEST()
220 (signed long long) rtc - (signed long long) t, in START_TEST()
228 old_rtc = rtc; in START_TEST()
231 cork_now = (rtc / (2*PA_USEC_PER_SEC)) % 2 == 1; in START_TEST()
/third_party/flutter/skia/src/gpu/effects/generated/
DGrRRectBlurEffect.h58 sk_sp<GrRenderTargetContext> rtc( in find_or_create_rrect_blur_mask()
62 if (!rtc) { in find_or_create_rrect_blur_mask()
68 rtc->clear(nullptr, SK_PMColor4fTRANSPARENT, in find_or_create_rrect_blur_mask()
70 rtc->drawRRect(GrNoClip(), std::move(paint), GrAA::kYes, SkMatrix::I(), rrectToDraw, in find_or_create_rrect_blur_mask()
73 sk_sp<GrTextureProxy> srcProxy(rtc->asTextureProxyRef()); in find_or_create_rrect_blur_mask()
/third_party/ltp/testcases/kernel/device-drivers/rtc/
DREADME1 rtc-test.c : Test the Real Time Clock driver
24 The tests assume the rtc device node to be "/dev/rtc". If you have a
29 $ ./rtc-test /dev/rtc0
/third_party/flutter/skia/src/android/
DSkAndroidFrameworkUtils.cpp37 GrRenderTargetContext* rtc = device->accessRenderTargetContext(); in clipWithStencil() local
38 if (!rtc) { in clipWithStencil()
53 rtc->drawRegion(noClip, std::move(grPaint), GrAA::kNo, SkMatrix::I(), clipRegion, in clipWithStencil()
/third_party/flutter/skia/bench/
DClearBench.cpp65 GrRenderTargetContext* rtc = canvas->internal_private_accessTopLayerRenderTargetContext(); in onDraw() local
66 if (rtc) { in onDraw()
71 rtc->testingOnly_SetPreserveOpsOnFullClear(); in onDraw()
/third_party/flutter/skia/src/gpu/
DSkGpuDevice_drawTexture.cpp174 static void draw_texture(GrRenderTargetContext* rtc, const GrClip& clip, const SkMatrix& ctm, in draw_texture() argument
179 const GrColorSpaceInfo& dstInfo(rtc->colorSpaceInfo()); in draw_texture()
223 rtc->drawTextureQuad(clip, std::move(proxy), filter, paint.getBlendMode(), color, in draw_texture()
228 rtc->drawTexture(clip, std::move(proxy), filter, paint.getBlendMode(), color, srcRect, in draw_texture()
234 static void draw_texture_producer(GrContext* context, GrRenderTargetContext* rtc, in draw_texture_producer() argument
248 draw_texture(rtc, clip, ctm, paint, src, dst, dstClip, aa, aaFlags, constraint, in draw_texture_producer()
291 if (can_ignore_bilerp_constraint(*producer, src, combinedMatrix, rtc->numSamples())) { in draw_texture_producer()
307 rtc->colorSpaceInfo().colorSpace()); in draw_texture_producer()
313 if (!SkPaintToGrPaintWithTexture(context, rtc->colorSpaceInfo(), paint, ctm, in draw_texture_producer()
328 rtc->fillQuadWithEdgeAA(clip, std::move(grPaint), aa, aaFlags, ctm, dstClip, srcClip); in draw_texture_producer()
[all …]
DGrReducedClip.cpp681 static bool stencil_element(GrRenderTargetContext* rtc, in stencil_element() argument
695 rtc->priv().stencilRect(clip, ss, std::move(paint), aa, viewMatrix, in stencil_element()
706 return rtc->priv().drawAndStencilPath(clip, ss, (SkRegion::Op)element->getOp(), in stencil_element()
714 static void stencil_device_rect(GrRenderTargetContext* rtc, in stencil_device_rect() argument
721 rtc->priv().stencilRect(clip, ss, std::move(paint), aa, SkMatrix::I(), rect); in stencil_device_rect()
724 static void draw_element(GrRenderTargetContext* rtc, in draw_element() argument
736 rtc->drawRect(clip, std::move(paint), aa, viewMatrix, element->getDeviceSpaceRect()); in draw_element()
745 rtc->drawPath(clip, std::move(paint), aa, viewMatrix, path, GrStyle::SimpleFill()); in draw_element()
751 bool GrReducedClip::drawAlphaClipMask(GrRenderTargetContext* rtc) const { in drawAlphaClipMask()
765 rtc->priv().clear(clip, initialCoverage, GrRenderTargetContext::CanClearFullscreen::kYes); in drawAlphaClipMask()
[all …]
/third_party/flutter/skia/src/gpu/ccpr/
DGrCCPerFlushResources.cpp544 sk_sp<GrRenderTargetContext> rtc = atlas->makeRenderTargetContext(onFlushRP); in finalize() local
548 if (rtc) { in finalize()
550 rtc->surfPriv().getContext(), sk_ref_sp(this), copyRange.fSrcProxy, in finalize()
552 rtc->addDrawOp(GrNoClip(), std::move(op)); in finalize()
556 out->push_back(std::move(rtc)); in finalize()
576 if (auto rtc = atlas->makeRenderTargetContext(onFlushRP, std::move(backingTexture))) { in finalize() local
580 rtc->surfPriv().getContext(), sk_ref_sp(this), atlas->getFillBatchID(), in finalize()
585 rtc->surfPriv().getContext(), sk_ref_sp(this), atlas->getFillBatchID(), in finalize()
589 rtc->surfPriv().getContext(), sk_ref_sp(this), atlas->getFillBatchID(), in finalize()
592 rtc->addDrawOp(GrNoClip(), std::move(op)); in finalize()
[all …]
/third_party/eudev/rules/
D50-udev-default.rules10 SUBSYSTEM=="rtc", ATTR{hctosys}=="1", SYMLINK+="rtc"
11 SUBSYSTEM=="rtc", KERNEL=="rtc0", SYMLINK+="rtc", OPTIONS+="link_priority=-100"

123