Lines Matching refs:surface
54 auto surface = SkSurface::MakeRasterN32Premul(1, 1); in RENDERTHREAD_SKIA_PIPELINE_TEST() local
55 surface->getCanvas()->drawColor(SK_ColorBLUE, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
56 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
57 pipeline->renderFrame(layerUpdateQueue, dirty, renderNodes, opaque, contentDrawBounds, surface, in RENDERTHREAD_SKIA_PIPELINE_TEST()
59 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorRED); in RENDERTHREAD_SKIA_PIPELINE_TEST()
85 auto surface = SkSurface::MakeRasterN32Premul(1, 1); in RENDERTHREAD_SKIA_PIPELINE_TEST() local
86 surface->getCanvas()->drawColor(SK_ColorBLUE, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
87 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
90 pipeline->renderFrame(layerUpdateQueue, dirty, renderNodes, opaque, contentDrawBounds, surface, in RENDERTHREAD_SKIA_PIPELINE_TEST()
92 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorRED); in RENDERTHREAD_SKIA_PIPELINE_TEST()
109 auto surface = SkSurface::MakeRasterN32Premul(2, 2); in RENDERTHREAD_SKIA_PIPELINE_TEST() local
110 surface->getCanvas()->drawColor(SK_ColorBLUE, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
111 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
112 pipeline->renderFrame(layerUpdateQueue, dirty, renderNodes, true, contentDrawBounds, surface, in RENDERTHREAD_SKIA_PIPELINE_TEST()
114 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
115 ASSERT_EQ(TestUtils::getColor(surface, 0, 1), SK_ColorGREEN); in RENDERTHREAD_SKIA_PIPELINE_TEST()
116 pipeline->renderFrame(layerUpdateQueue, dirty, renderNodes, false, contentDrawBounds, surface, in RENDERTHREAD_SKIA_PIPELINE_TEST()
118 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), (unsigned int)SK_ColorTRANSPARENT); in RENDERTHREAD_SKIA_PIPELINE_TEST()
119 ASSERT_EQ(TestUtils::getColor(surface, 0, 1), SK_ColorGREEN); in RENDERTHREAD_SKIA_PIPELINE_TEST()
133 auto surface = SkSurface::MakeRasterN32Premul(2, 2); in RENDERTHREAD_SKIA_PIPELINE_TEST() local
134 surface->getCanvas()->drawColor(SK_ColorBLUE, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
135 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
136 pipeline->renderFrame(layerUpdateQueue, dirty, renderNodes, true, contentDrawBounds, surface, in RENDERTHREAD_SKIA_PIPELINE_TEST()
138 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
139 ASSERT_EQ(TestUtils::getColor(surface, 1, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
140 ASSERT_EQ(TestUtils::getColor(surface, 0, 1), SK_ColorRED); in RENDERTHREAD_SKIA_PIPELINE_TEST()
141 ASSERT_EQ(TestUtils::getColor(surface, 1, 1), SK_ColorRED); in RENDERTHREAD_SKIA_PIPELINE_TEST()
202 auto surface = SkSurface::MakeRasterN32Premul(1, 1); in RENDERTHREAD_SKIA_PIPELINE_TEST() local
205 surface->getCanvas()->drawColor(SK_ColorBLUE, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
206 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
209 pipeline->renderFrame(layerUpdateQueue, dirty, renderNodes, opaque, contentDrawBounds, surface, in RENDERTHREAD_SKIA_PIPELINE_TEST()
211 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorWHITE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
215 pipeline->renderFrame(layerUpdateQueue, dirty, renderNodes, opaque, contentDrawBounds, surface, in RENDERTHREAD_SKIA_PIPELINE_TEST()
217 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), (unsigned)0xffd0d0ff); in RENDERTHREAD_SKIA_PIPELINE_TEST()
221 pipeline->renderFrame(layerUpdateQueue, dirty, renderNodes, opaque, contentDrawBounds, surface, in RENDERTHREAD_SKIA_PIPELINE_TEST()
223 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), (unsigned)0xffd0ffd0); in RENDERTHREAD_SKIA_PIPELINE_TEST()
227 pipeline->renderFrame(layerUpdateQueue, dirty, renderNodes, opaque, contentDrawBounds, surface, in RENDERTHREAD_SKIA_PIPELINE_TEST()
229 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), (unsigned)0xffffc0c0); in RENDERTHREAD_SKIA_PIPELINE_TEST()
233 pipeline->renderFrame(layerUpdateQueue, dirty, renderNodes, opaque, contentDrawBounds, surface, in RENDERTHREAD_SKIA_PIPELINE_TEST()
235 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), (unsigned)0xffff8080); in RENDERTHREAD_SKIA_PIPELINE_TEST()
239 pipeline->renderFrame(layerUpdateQueue, dirty, renderNodes, opaque, contentDrawBounds, surface, in RENDERTHREAD_SKIA_PIPELINE_TEST()
241 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), (unsigned)0xffff8080); in RENDERTHREAD_SKIA_PIPELINE_TEST()
324 sk_sp<DeferLayer<DeferTestCanvas>> surface(new DeferLayer<DeferTestCanvas>()); in RENDERTHREAD_SKIA_PIPELINE_TEST() local
325 pipeline->renderFrame(layerUpdateQueue, dirty, nodes, true, contentDrawBounds, surface, in RENDERTHREAD_SKIA_PIPELINE_TEST()
327 EXPECT_EQ(4, surface->canvas()->mDrawCounter); in RENDERTHREAD_SKIA_PIPELINE_TEST()
355 sk_sp<DeferLayer<ClippedTestCanvas>> surface(new DeferLayer<ClippedTestCanvas>()); in RENDERTHREAD_SKIA_PIPELINE_TEST() local
357 SkRect::MakeWH(CANVAS_WIDTH, CANVAS_HEIGHT), surface, SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
358 EXPECT_EQ(1, surface->canvas()->mDrawCounter); in RENDERTHREAD_SKIA_PIPELINE_TEST()
391 sk_sp<DeferLayer<ClippedTestCanvas>> surface(new DeferLayer<ClippedTestCanvas>()); in RENDERTHREAD_SKIA_PIPELINE_TEST() local
393 SkRect::MakeWH(CANVAS_WIDTH, CANVAS_HEIGHT), surface, rotateMatrix); in RENDERTHREAD_SKIA_PIPELINE_TEST()
394 EXPECT_EQ(1, surface->canvas()->mDrawCounter); in RENDERTHREAD_SKIA_PIPELINE_TEST()
421 sk_sp<DeferLayer<ClipReplaceTestCanvas>> surface(new DeferLayer<ClipReplaceTestCanvas>()); in RENDERTHREAD_SKIA_PIPELINE_TEST() local
423 SkRect::MakeWH(CANVAS_WIDTH, CANVAS_HEIGHT), surface, SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
424 EXPECT_EQ(1, surface->canvas()->mDrawCounter); in RENDERTHREAD_SKIA_PIPELINE_TEST()
437 auto surface = createDummySurface(); in RENDERTHREAD_SKIA_PIPELINE_TEST() local
440 … EXPECT_TRUE(pipeline->setSurface(surface.get(), SwapBehavior::kSwap_default, ColorMode::SRGB, 0)); in RENDERTHREAD_SKIA_PIPELINE_TEST()