Lines Matching defs:RenderEngineTest

32 struct RenderEngineTest : public ::testing::Test {  struct
33 static void SetUpTestSuite() { in SetUpTestSuite()
39 static void TearDownTestSuite() { in TearDownTestSuite()
46 static sp<GraphicBuffer> allocateDefaultBuffer() { in allocateDefaultBuffer()
55 static sp<GraphicBuffer> allocateSourceBuffer(uint32_t width, uint32_t height) { in allocateSourceBuffer()
62 RenderEngineTest() { mBuffer = allocateDefaultBuffer(); } in RenderEngineTest() argument
64 ~RenderEngineTest() { in ~RenderEngineTest()
70 void expectBufferColor(const Rect& region, uint8_t r, uint8_t g, uint8_t b, uint8_t a, in expectBufferColor()
108 static Rect fullscreenRect() { return Rect(DEFAULT_DISPLAY_WIDTH, DEFAULT_DISPLAY_HEIGHT); } in fullscreenRect()
110 static Rect offsetRect() { in offsetRect()
115 static Rect offsetRectAtZero() { in offsetRectAtZero()
120 void invokeDraw(renderengine::DisplaySettings settings, in invokeDraw()
139 void drawEmptyLayers() { in drawEmptyLayers()
225 static std::unique_ptr<renderengine::gl::GLESRenderEngine> sRE;
229 static sp<GraphicBuffer> sCurrentBuffer;
231 sp<GraphicBuffer> mBuffer;
233 std::vector<uint32_t> mTexNames;
763 TEST_F(RenderEngineTest, drawLayers_noLayersToDraw) { in TEST_F() argument
767 TEST_F(RenderEngineTest, drawLayers_nullOutputBuffer) { in TEST_F() argument
780 TEST_F(RenderEngineTest, drawLayers_nullOutputFence) { in TEST_F() argument
799 TEST_F(RenderEngineTest, drawLayers_doesNotCacheFramebuffer) { in TEST_F() argument
819 TEST_F(RenderEngineTest, drawLayers_fillRedBuffer_colorSource) { in TEST_F() argument
823 TEST_F(RenderEngineTest, drawLayers_fillGreenBuffer_colorSource) { in TEST_F() argument
827 TEST_F(RenderEngineTest, drawLayers_fillBlueBuffer_colorSource) { in TEST_F() argument
831 TEST_F(RenderEngineTest, drawLayers_fillRedTransparentBuffer_colorSource) { in TEST_F() argument
835 TEST_F(RenderEngineTest, drawLayers_fillBufferPhysicalOffset_colorSource) { in TEST_F() argument
839 TEST_F(RenderEngineTest, drawLayers_fillBufferCheckersRotate0_colorSource) { in TEST_F() argument
843 TEST_F(RenderEngineTest, drawLayers_fillBufferCheckersRotate90_colorSource) { in TEST_F() argument
847 TEST_F(RenderEngineTest, drawLayers_fillBufferCheckersRotate180_colorSource) { in TEST_F() argument
851 TEST_F(RenderEngineTest, drawLayers_fillBufferCheckersRotate270_colorSource) { in TEST_F() argument
855 TEST_F(RenderEngineTest, drawLayers_fillBufferLayerTransform_colorSource) { in TEST_F() argument
859 TEST_F(RenderEngineTest, drawLayers_fillBufferColorTransform_colorSource) { in TEST_F() argument
863 TEST_F(RenderEngineTest, drawLayers_fillBufferRoundedCorners_colorSource) { in TEST_F() argument
867 TEST_F(RenderEngineTest, drawLayers_overlayCorners_colorSource) { in TEST_F() argument
871 TEST_F(RenderEngineTest, drawLayers_fillRedBuffer_opaqueBufferSource) { in TEST_F() argument
875 TEST_F(RenderEngineTest, drawLayers_fillGreenBuffer_opaqueBufferSource) { in TEST_F() argument
879 TEST_F(RenderEngineTest, drawLayers_fillBlueBuffer_opaqueBufferSource) { in TEST_F() argument
883 TEST_F(RenderEngineTest, drawLayers_fillRedTransparentBuffer_opaqueBufferSource) { in TEST_F() argument
887 TEST_F(RenderEngineTest, drawLayers_fillBufferPhysicalOffset_opaqueBufferSource) { in TEST_F() argument
891 TEST_F(RenderEngineTest, drawLayers_fillBufferCheckersRotate0_opaqueBufferSource) { in TEST_F() argument
895 TEST_F(RenderEngineTest, drawLayers_fillBufferCheckersRotate90_opaqueBufferSource) { in TEST_F() argument
899 TEST_F(RenderEngineTest, drawLayers_fillBufferCheckersRotate180_opaqueBufferSource) { in TEST_F() argument
903 TEST_F(RenderEngineTest, drawLayers_fillBufferCheckersRotate270_opaqueBufferSource) { in TEST_F() argument
907 TEST_F(RenderEngineTest, drawLayers_fillBufferLayerTransform_opaqueBufferSource) { in TEST_F() argument
911 TEST_F(RenderEngineTest, drawLayers_fillBufferColorTransform_opaqueBufferSource) { in TEST_F() argument
915 TEST_F(RenderEngineTest, drawLayers_fillBufferRoundedCorners_opaqueBufferSource) { in TEST_F() argument
919 TEST_F(RenderEngineTest, drawLayers_overlayCorners_opaqueBufferSource) { in TEST_F() argument
923 TEST_F(RenderEngineTest, drawLayers_fillRedBuffer_bufferSource) { in TEST_F() argument
927 TEST_F(RenderEngineTest, drawLayers_fillGreenBuffer_bufferSource) { in TEST_F() argument
931 TEST_F(RenderEngineTest, drawLayers_fillBlueBuffer_bufferSource) { in TEST_F() argument
935 TEST_F(RenderEngineTest, drawLayers_fillRedTransparentBuffer_bufferSource) { in TEST_F() argument
939 TEST_F(RenderEngineTest, drawLayers_fillBufferPhysicalOffset_bufferSource) { in TEST_F() argument
943 TEST_F(RenderEngineTest, drawLayers_fillBufferCheckersRotate0_bufferSource) { in TEST_F() argument
947 TEST_F(RenderEngineTest, drawLayers_fillBufferCheckersRotate90_bufferSource) { in TEST_F() argument
951 TEST_F(RenderEngineTest, drawLayers_fillBufferCheckersRotate180_bufferSource) { in TEST_F() argument
955 TEST_F(RenderEngineTest, drawLayers_fillBufferCheckersRotate270_bufferSource) { in TEST_F() argument
959 TEST_F(RenderEngineTest, drawLayers_fillBufferLayerTransform_bufferSource) { in TEST_F() argument
963 TEST_F(RenderEngineTest, drawLayers_fillBufferColorTransform_bufferSource) { in TEST_F() argument
967 TEST_F(RenderEngineTest, drawLayers_fillBufferRoundedCorners_bufferSource) { in TEST_F() argument
971 TEST_F(RenderEngineTest, drawLayers_overlayCorners_bufferSource) { in TEST_F() argument
975 TEST_F(RenderEngineTest, drawLayers_fillBufferTextureTransform) { in TEST_F() argument
979 TEST_F(RenderEngineTest, drawLayers_fillBuffer_premultipliesAlpha) { in TEST_F() argument
983 TEST_F(RenderEngineTest, drawLayers_fillBuffer_withoutPremultiplyingAlpha) { in TEST_F() argument
987 TEST_F(RenderEngineTest, drawLayers_clearRegion) { in TEST_F() argument
991 TEST_F(RenderEngineTest, drawLayers_fillsBufferAndCachesImages) { in TEST_F() argument
1017 TEST_F(RenderEngineTest, drawLayers_bindExternalBufferWithNullBuffer) { in TEST_F() argument
1022 TEST_F(RenderEngineTest, drawLayers_bindExternalBufferCachesImages) { in TEST_F() argument
1042 TEST_F(RenderEngineTest, drawLayers_cacheExternalBufferWithNullBuffer) { in TEST_F() argument
1054 TEST_F(RenderEngineTest, drawLayers_cacheExternalBufferCachesImages) { in TEST_F() argument