Home
last modified time | relevance | path

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

/third_party/skia/src/image/
DSkRescaleAndReadPixels.cpp30 int stepsX; in SkRescaleAndReadPixels() local
33 stepsX = static_cast<int>((sx > 1.f) ? std::ceil(std::log2f(sx)) in SkRescaleAndReadPixels()
38 stepsX = sx != 1.f; in SkRescaleAndReadPixels()
44 if (stepsX < 0 || stepsY < 0) { in SkRescaleAndReadPixels()
93 while (stepsX || stepsY) { in SkRescaleAndReadPixels()
96 if (stepsX < 0) { in SkRescaleAndReadPixels()
97 nextW = resultInfo.width() << (-stepsX - 1); in SkRescaleAndReadPixels()
98 stepsX++; in SkRescaleAndReadPixels()
99 } else if (stepsX != 0) { in SkRescaleAndReadPixels()
100 if (stepsX > 1) { in SkRescaleAndReadPixels()
[all …]
/third_party/flutter/skia/src/image/
DSkSurface.cpp108 int stepsX; in onAsyncRescaleAndReadPixels() local
111 stepsX = static_cast<int>((sx > 1.f) ? std::ceil(std::log2f(sx)) in onAsyncRescaleAndReadPixels()
116 stepsX = sx != 1.f; in onAsyncRescaleAndReadPixels()
122 if (stepsX < 0 || stepsY < 0) { in onAsyncRescaleAndReadPixels()
157 while (stepsX || stepsY) { in onAsyncRescaleAndReadPixels()
160 if (stepsX < 0) { in onAsyncRescaleAndReadPixels()
161 nextW = info.width() << (-stepsX - 1); in onAsyncRescaleAndReadPixels()
162 stepsX++; in onAsyncRescaleAndReadPixels()
163 } else if (stepsX != 0) { in onAsyncRescaleAndReadPixels()
164 if (stepsX > 1) { in onAsyncRescaleAndReadPixels()
[all …]
/third_party/flutter/skia/src/gpu/
DGrSurfaceContext.cpp470 int stepsX; in rescale() local
473 stepsX = static_cast<int>((sx > 1.f) ? ceil(log2f(sx)) : floor(log2f(sx))); in rescale()
476 stepsX = sx != 1.f; in rescale()
479 SkASSERT(stepsX || stepsY); in rescale()
506 while (stepsX || stepsY) { in rescale()
509 if (stepsX < 0) { in rescale()
510 nextW = info.width() << (-stepsX - 1); in rescale()
511 stepsX++; in rescale()
512 } else if (stepsX != 0) { in rescale()
513 if (stepsX > 1) { in rescale()
[all …]