Home
last modified time | relevance | path

Searched refs:aspectRatio (Results 1 – 24 of 24) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/platform/geometry/
DLayoutSize.h64 float aspectRatio() const { return static_cast<float>(m_width) / static_cast<float>(m_height); } in aspectRatio() function
120 LayoutSize fitToAspectRatio(const LayoutSize& aspectRatio, AspectRatioFit fit) const in fitToAspectRatio() argument
122 float heightScale = height().toFloat() / aspectRatio.height().toFloat(); in fitToAspectRatio()
123 float widthScale = width().toFloat() / aspectRatio.width().toFloat(); in fitToAspectRatio()
125 return LayoutSize(height() * aspectRatio.width() / aspectRatio.height(), height()); in fitToAspectRatio()
126 return LayoutSize(width(), width() * aspectRatio.height() / aspectRatio.width()); in fitToAspectRatio()
DIntSize.h58 float aspectRatio() const { return static_cast<float>(m_width) / static_cast<float>(m_height); } in aspectRatio() function
DFloatSize.h69 float aspectRatio() const { return m_width / m_height; } in aspectRatio() function
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
DGradient.h55 …ient> create(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1, float aspectRatio = 1)
57 return adoptRef(new Gradient(p0, r0, p1, r1, aspectRatio));
117 float aspectRatio() const { return m_aspectRatio; } in aspectRatio() function
132 Gradient(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1, float aspectRatio);
DGradient.cpp54 …adient::Gradient(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1, float aspectRatio) in Gradient() argument
60 , m_aspectRatio(aspectRatio) in Gradient()
260 if (aspectRatio() != 1) { in shader()
264 m_gradientSpaceTransformation.scale(1, 1 / aspectRatio()); in shader()
/external/chromium_org/third_party/skia/src/core/
DSkRTree.h58 static SkRTree* Create(int minChildren, int maxChildren, SkScalar aspectRatio = 1,
148 SkRTree(int minChildren, int maxChildren, SkScalar aspectRatio, bool orderWhenBulkLoading);
DSkRTree.cpp19 SkRTree* SkRTree::Create(int minChildren, int maxChildren, SkScalar aspectRatio, in Create() argument
23 return new SkRTree(minChildren, maxChildren, aspectRatio, sortWhenBulkLoading); in Create()
28 SkRTree::SkRTree(int minChildren, int maxChildren, SkScalar aspectRatio, in SkRTree() argument
35 , fAspectRatio(aspectRatio) in SkRTree()
DSkPicture.cpp231 SkScalar aspectRatio = SkScalarDiv(SkIntToScalar(fWidth), in createBBoxHierarchy() local
236 aspectRatio, sortDraws); in createBBoxHierarchy()
/external/skia/src/core/
DSkRTree.h58 static SkRTree* Create(int minChildren, int maxChildren, SkScalar aspectRatio = 1,
148 SkRTree(int minChildren, int maxChildren, SkScalar aspectRatio, bool orderWhenBulkLoading);
DSkRTree.cpp19 SkRTree* SkRTree::Create(int minChildren, int maxChildren, SkScalar aspectRatio, in Create() argument
23 return new SkRTree(minChildren, maxChildren, aspectRatio, sortWhenBulkLoading); in Create()
28 SkRTree::SkRTree(int minChildren, int maxChildren, SkScalar aspectRatio, in SkRTree() argument
35 , fAspectRatio(aspectRatio) in SkRTree()
DSkPicture.cpp231 SkScalar aspectRatio = SkScalarDiv(SkIntToScalar(fWidth), in createBBoxHierarchy() local
236 aspectRatio, sortDraws); in createBBoxHierarchy()
/external/chromium_org/third_party/WebKit/Source/core/css/
DCSSGradientValue.cpp967 static inline float horizontalEllipseRadius(const FloatSize& p, float aspectRatio) in horizontalEllipseRadius() argument
972 …eturn sqrtf(p.width() * p.width() + (p.height() * p.height()) / (1 / (aspectRatio * aspectRatio))); in horizontalEllipseRadius()
997 float aspectRatio = 1; // width / height. in createGradient() local
1005aspectRatio = secondRadius / resolveRadius(m_endVerticalSize.get(), conversionData, &height); in createGradient()
1007 aspectRatio = 1; in createGradient()
1050 aspectRatio = xDist / yDist; in createGradient()
1062 aspectRatio = xDist / yDist; in createGradient()
1077 aspectRatio = xDist / yDist; in createGradient()
1094 aspectRatio = xDist / yDist; in createGradient()
1101 …ient> gradient = Gradient::create(firstPoint, firstRadius, secondPoint, secondRadius, aspectRatio); in createGradient()
DMediaFeatureNames.h39 macro(aspectRatio, "aspect-ratio") \
DMediaQueryEvaluator.cpp173 CSSAspectRatioValue* aspectRatio = toCSSAspectRatioValue(value); in compareAspectRatioValue() local
174 …rn compareValue(width * static_cast<int>(aspectRatio->denominatorValue()), height * static_cast<in… in compareAspectRatioValue()
/external/chromium_org/native_client_sdk/src/examples/api/graphics_3d/
Dmatrix.h34 GLfloat aspectRatio,
Dmatrix.cc47 GLfloat aspectRatio, in glhPerspectivef2() argument
52 xmax = ymax * aspectRatio; in glhPerspectivef2()
/external/chromium_org/native_client_sdk/src/gonacl_appengine/src/cube/
Dmatrix.h34 GLfloat aspectRatio,
Dmatrix.cc47 GLfloat aspectRatio, in glhPerspectivef2() argument
52 xmax = ymax * aspectRatio; in glhPerspectivef2()
/external/opencv/cv/src/
Dcvcalibration.cpp775 double aspectRatio ) in cvProjectPoints2() argument
793 bool fixedAspectRatio = aspectRatio > FLT_EPSILON; in cvProjectPoints2()
861 fx = fy*aspectRatio; in cvProjectPoints2()
1000 dpdf_p[0] = 0; dpdf_p[1] = xd*aspectRatio; in cvProjectPoints2()
1341 double aspectRatio ) in cvInitIntrinsicParams2D() argument
1422 if( aspectRatio != 0 ) in cvInitIntrinsicParams2D()
1424 double tf = (a[0] + a[4])/(aspectRatio + 1.); in cvInitIntrinsicParams2D()
1425 a[0] = aspectRatio*tf; in cvInitIntrinsicParams2D()
1462 double aspectRatio = 0.; in cvCalibrateCamera2() local
1564 aspectRatio = A[0]/A[4]; in cvCalibrateCamera2()
[all …]
/external/chromium_org/chrome/browser/resources/inspect/
Dinspect.js414 var aspectRatio = screenWidth / screenHeight;
415 if (aspectRatio < 1) {
416 screenRectWidth = Math.round(maxScreenRectSize * aspectRatio);
420 screenRectHeight = Math.round(maxScreenRectSize / aspectRatio);
/external/doclava/res/assets/templates/assets/
Djquery-resizable.min.js40aspectRatio),aspectRatio:j.aspectRatio,originalElement:this.element,_proportionallyResizeElements:… property
/external/skia/tools/
DPictureRenderer.cpp865 SkScalar aspectRatio = SkScalarDiv(SkIntToScalar(fWidth), in createBBoxHierarchy() local
869 aspectRatio, sortDraws); in createBBoxHierarchy()
/external/chromium_org/third_party/WebKit/Source/web/tests/
DWebFrameTest.cpp1891 const float aspectRatio = static_cast<float>(viewportSize.width) / viewportSize.height; in testResizeYieldsCorrectScrollAndScale() local
1903 …eScaleFactor = initialPageScaleFactor * (shouldScaleRelativeToViewportWidth ? 1 / aspectRatio : 1); in testResizeYieldsCorrectScrollAndScale()
1928 …expectedPageScaleFactor = pageScaleFactor * (shouldScaleRelativeToViewportWidth ? aspectRatio : 1); in testResizeYieldsCorrectScrollAndScale()
1944 …ctedPageScaleFactor = pageScaleFactor * (shouldScaleRelativeToViewportWidth ? 1 / aspectRatio : 1); in testResizeYieldsCorrectScrollAndScale()
/external/chromium_org/third_party/WebKit/Source/core/rendering/style/
DRenderStyle.h734 float aspectRatio() const { return aspectRatioNumerator() / aspectRatioDenominator(); } in aspectRatio() function