Searched refs:computeIdealDimension (Results 1 – 3 of 3) sorted by relevance
25 TEST(OffscreenBuffer, computeIdealDimension) { in TEST() argument26 EXPECT_EQ(64u, OffscreenBuffer::computeIdealDimension(1)); in TEST()27 EXPECT_EQ(64u, OffscreenBuffer::computeIdealDimension(31)); in TEST()28 EXPECT_EQ(64u, OffscreenBuffer::computeIdealDimension(33)); in TEST()29 EXPECT_EQ(64u, OffscreenBuffer::computeIdealDimension(64)); in TEST()30 EXPECT_EQ(1024u, OffscreenBuffer::computeIdealDimension(1000)); in TEST()
61 static uint32_t computeIdealDimension(uint32_t dimension);126 : width(OffscreenBuffer::computeIdealDimension(layerWidth)) in Entry()127 , height(OffscreenBuffer::computeIdealDimension(layerHeight)) {} in Entry()
44 uint32_t width = computeIdealDimension(viewportWidth); in OffscreenBuffer()45 uint32_t height = computeIdealDimension(viewportHeight); in OffscreenBuffer()102 uint32_t OffscreenBuffer::computeIdealDimension(uint32_t dimension) { in computeIdealDimension() function in android::uirenderer::OffscreenBuffer166 if (layer->texture.width() == OffscreenBuffer::computeIdealDimension(width) in resize()167 && layer->texture.height() == OffscreenBuffer::computeIdealDimension(height)) { in resize()