OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:stretchY
(Results
1 - 3
of
3
) sorted by null
/external/skia/legacy/src/utils/
SkNinePatch.cpp
59
//
stretchy
areas and scale the fixed areas to fit within the target bounds.
153
SkScalar stretchX = 0,
stretchY
= 0;
174
stretchY
= (bounds.height() - fixed) / stretchSize;
176
stretchY
= SkScalarDiv(-bounds.height(), fixed);
184
SkScalarToFloat(stretchX), SkScalarToFloat(
stretchY
));
218
if (
stretchY
>= 0) {
220
vy +=
stretchY
;
224
} else { // shrink fixed sections, and collaps
stretchy
sections
228
vy += SkScalarMul(ty, -
stretchY
);
/external/skia/src/utils/
SkNinePatch.cpp
59
//
stretchy
areas and scale the fixed areas to fit within the target bounds.
153
SkScalar stretchX = 0,
stretchY
= 0;
174
stretchY
= (bounds.height() - fixed) / stretchSize;
176
stretchY
= SkScalarDiv(-bounds.height(), fixed);
184
SkScalarToFloat(stretchX), SkScalarToFloat(
stretchY
));
218
if (
stretchY
>= 0) {
220
vy +=
stretchY
;
224
} else { // shrink fixed sections, and collaps
stretchy
sections
228
vy += SkScalarMul(ty, -
stretchY
);
/frameworks/base/libs/hwui/
Patch.cpp
120
float
stretchY
= 0.0f;
145
stretchY
= yStretch / yStretchTex;
163
y2 = y1 + floorf(segment *
stretchY
+ 0.5f);
Completed in 94 milliseconds