Home
last modified time | relevance | path

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

/third_party/skia/src/image/
DSkRescaleAndReadPixels.cpp31 int stepsY; in SkRescaleAndReadPixels() local
35 stepsY = static_cast<int>((sy > 1.f) ? std::ceil(std::log2f(sy)) in SkRescaleAndReadPixels()
39 stepsY = sy != 1.f; in SkRescaleAndReadPixels()
44 if (stepsX < 0 || stepsY < 0) { in SkRescaleAndReadPixels()
93 while (stepsX || stepsY) { in SkRescaleAndReadPixels()
105 if (stepsY < 0) { in SkRescaleAndReadPixels()
106 nextH = resultInfo.height() << (-stepsY - 1); in SkRescaleAndReadPixels()
107 stepsY++; in SkRescaleAndReadPixels()
108 } else if (stepsY != 0) { in SkRescaleAndReadPixels()
109 if (stepsY > 1) { in SkRescaleAndReadPixels()
[all …]
/third_party/flutter/skia/src/image/
DSkSurface.cpp109 int stepsY; in onAsyncRescaleAndReadPixels() local
113 stepsY = static_cast<int>((sy > 1.f) ? std::ceil(std::log2f(sy)) in onAsyncRescaleAndReadPixels()
117 stepsY = sy != 1.f; in onAsyncRescaleAndReadPixels()
122 if (stepsX < 0 || stepsY < 0) { in onAsyncRescaleAndReadPixels()
157 while (stepsX || stepsY) { in onAsyncRescaleAndReadPixels()
169 if (stepsY < 0) { in onAsyncRescaleAndReadPixels()
170 nextH = info.height() << (-stepsY - 1); in onAsyncRescaleAndReadPixels()
171 stepsY++; in onAsyncRescaleAndReadPixels()
172 } else if (stepsY != 0) { in onAsyncRescaleAndReadPixels()
173 if (stepsY > 1) { in onAsyncRescaleAndReadPixels()
[all …]
/third_party/flutter/skia/src/gpu/
DGrSurfaceContext.cpp471 int stepsY; in rescale() local
474 stepsY = static_cast<int>((sy > 1.f) ? ceil(log2f(sy)) : floor(log2f(sy))); in rescale()
477 stepsY = sy != 1.f; in rescale()
479 SkASSERT(stepsX || stepsY); in rescale()
506 while (stepsX || stepsY) { in rescale()
518 if (stepsY < 0) { in rescale()
519 nextH = info.height() << (-stepsY - 1); in rescale()
520 stepsY++; in rescale()
521 } else if (stepsY != 0) { in rescale()
522 if (stepsY > 1) { in rescale()
[all …]