Home
last modified time | relevance | path

Searched refs:computeIdealDimension (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/libs/hwui/tests/unit/
DOffscreenBufferPoolTests.cpp25 TEST(OffscreenBuffer, computeIdealDimension) { in TEST() argument
26 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()
/frameworks/base/libs/hwui/renderstate/
DOffscreenBufferPool.h61 static uint32_t computeIdealDimension(uint32_t dimension);
126 : width(OffscreenBuffer::computeIdealDimension(layerWidth)) in Entry()
127 , height(OffscreenBuffer::computeIdealDimension(layerHeight)) {} in Entry()
DOffscreenBufferPool.cpp44 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::OffscreenBuffer
166 if (layer->texture.width() == OffscreenBuffer::computeIdealDimension(width) in resize()
167 && layer->texture.height() == OffscreenBuffer::computeIdealDimension(height)) { in resize()