Searched refs:dx (Results 351 - 375 of 1151) sorted by path

<<11121314151617181920>>

/external/chromium_org/third_party/skia/src/ports/
H A DSkFontHost_FreeType.cpp1146 int dx = SkFixedToFDot6(glyph->getSubXFixed()); local
1149 bbox->xMin += dx;
1151 bbox->xMax += dx;
H A DSkFontHost_FreeType_common.cpp347 int dx = 0, dy = 0; local
349 dx = SkFixedToFDot6(glyph.getSubXFixed());
357 offset(dx, dy)
363 FT_Outline_Translate(outline, dx - ((bbox.xMin + dx) & ~63),
H A DSkScalerContext_win_dw.cpp316 fXform.dx = 0;
327 fGsA.dx = 0;
409 fXform.dx = SkFixedToFloat(glyph->getSubXFixed());
673 fXform.dx = SkFixedToFloat(glyph.getSubXFixed());
/external/chromium_org/third_party/skia/src/utils/
H A DSkCamera.cpp85 SkScalar SkPatch3D::dotWith(SkScalar dx, SkScalar dy, SkScalar dz) const { argument
90 return SkScalarMul(cx, dx) + SkScalarMul(cy, dy) + SkScalarMul(cz, dz);
H A DSkCullPoints.cpp10 static bool cross_product_is_neg(const SkIPoint& v, int dx, int dy) { argument
12 return v.fX * dy - v.fY * dx < 0;
14 return sk_64_mul(v.fX, dy) < sk_64_mul(dx, v.fY);
H A DSkDashPath.cpp107 SkScalar dx = pts[1].x() - pts[0].x(); local
118 if (dx < 0) {
141 if (dx < 0) {
H A DSkMatrix44.cpp214 void SkMatrix44::setTranslate(SkMScalar dx, SkMScalar dy, SkMScalar dz) { argument
217 if (!dx && !dy && !dz) {
221 fMat[3][0] = dx;
227 void SkMatrix44::preTranslate(SkMScalar dx, SkMScalar dy, SkMScalar dz) { argument
228 if (!dx && !dy && !dz) {
233 fMat[3][i] = fMat[0][i] * dx + fMat[1][i] * dy + fMat[2][i] * dz + fMat[3][i];
238 void SkMatrix44::postTranslate(SkMScalar dx, SkMScalar dy, SkMScalar dz) { argument
239 if (!dx && !dy && !dz) {
245 fMat[i][0] += fMat[i][3] * dx;
250 fMat[3][0] += dx;
[all...]
H A DSkMeshUtils.cpp72 const SkScalar dx = SkIntToScalar(texW) / rows; local
76 tex->set(x*dx, y*dy);
/external/chromium_org/third_party/skia/src/utils/debugger/
H A DSkDrawCommand.cpp989 SkTranslateCommand::SkTranslateCommand(SkScalar dx, SkScalar dy) argument
991 fDx = dx;
994 fInfo.push(SkObjectParser::ScalarToString(dx, "SkScalar dx: "));
H A DSkDrawCommand.h615 SkTranslateCommand(SkScalar dx, SkScalar dy);
/external/chromium_org/third_party/skia/src/views/
H A DSkTouchGesture.cpp234 float dx = rec.fLastX - rec.fStartX; local
236 dx = (float)sk_float_round2int(dx);
238 fLocalM.setTranslate(dx, dy);
277 float dx = rec.fLastX - rec.fPrevX; local
281 fFlinger.reset(dx / dur, dy / dur);
299 double dx = rec0.fStartX - rec1.fStartX; local
301 double dist0 = sqrt(dx*dx + dy*dy);
303 dx
[all...]
H A DSkView.cpp89 void SkView::offset(SkScalar dx, SkScalar dy) argument
91 if (dx || dy)
92 this->setLoc(fLoc.fX + dx, fLoc.fY + dy);
H A DSkWidgets.cpp392 void SkStaticTextView::setMargin(SkScalar dx, SkScalar dy) argument
394 if (fMargin.fX != dx || fMargin.fY != dy)
396 fMargin.set(dx, dy);
/external/chromium_org/third_party/skia/src/views/animated/
H A DSkStaticTextView.cpp74 void SkStaticTextView::setMargin(SkScalar dx, SkScalar dy) argument
76 if (fMargin.fX != dx || fMargin.fY != dy)
78 fMargin.set(dx, dy);
/external/chromium_org/third_party/skia/tests/
H A DAAClipTest.cpp239 int dx = rand.nextU() % (2*N); local
241 // use int dx,dy to make the subtract be signed
242 r->offset(N - dx, N - dy);
372 static void did_dx_affect(skiatest::Reporter* reporter, const SkScalar dx[], argument
386 r.offset(dx[i], 0);
388 r.offset(-2*dx[i], 0);
H A DBlurTest.cpp422 const SkScalar dx = 10; local
427 SkAutoTUnref<SkDrawLooper> lp(SkBlurDrawLooper::Create(color, sigma, dx, dy, flags));
440 REPORTER_ASSERT(reporter, rec.fOffset.x() == dx);
H A DClampRangeTest.cpp35 const SkFixed fx, SkFixed dx, int count) {
38 // If dx is large, fx will overflow if updated naively. So we use more bits.
43 bigfx += dx;
48 bigfx += dx;
53 bigfx += dx;
58 static void test_range(SkFixed fx, SkFixed dx, int count) { argument
60 range.init(fx, dx, count, kV0, kV1);
61 slow_check(range, fx, dx, count);
92 SkFixed dx = (sx - fx) / count; local
93 test_range(fx, dx, coun
34 slow_check(const SkClampRange& range, const SkFixed fx, SkFixed dx, int count) argument
[all...]
H A DMatrix44Test.cpp240 SkMScalar dx = 0; local
243 matrix.setTranslate(-dx, -dy, -dz);
245 matrix.preTranslate(-dx, -dy, -dz);
247 matrix.postTranslate(-dx, -dy, -dz);
H A DPathCoverageTest.cpp28 static inline int cheap_distance(SkScalar dx, SkScalar dy) { argument
29 int idx = SkAbs32(SkScalarRoundToInt(dx));
H A DPathOpsSimplifyDegenerateThreadedTest.cpp25 int dx = d & 0x03; local
33 if (state.fD && (ex - dx) * (fy - dy)
34 != (ey - dy) * (fx - dx)) {
43 path.moveTo(SkIntToScalar(dx), SkIntToScalar(dy));
53 str += sprintf(str, " path.moveTo(%d, %d);\n", dx, dy);
H A DPathOpsSimplifyQuadThreadedTest.cpp25 int dx = state.fD & 0x03; local
44 path.lineTo(SkIntToScalar(dx), SkIntToScalar(dy));
56 str += sprintf(str, " path.lineTo(%d, %d);\n", dx, dy);
H A DPathOpsSimplifyQuadralateralsThreadedTest.cpp25 int dx = state.fD & 0x03; local
44 path.lineTo(SkIntToScalar(dx), SkIntToScalar(dy));
57 str += sprintf(str, " path.lineTo(%d, %d);\n", dx, dy);
H A DPathOpsSimplifyTrianglesThreadedTest.cpp26 int dx = d & 0x03; local
37 if ((ex - dx) * (fy - dy) == (ey - dy) * (fx - dx)) {
46 path.moveTo(SkIntToScalar(dx), SkIntToScalar(dy));
56 str += sprintf(str, " path.moveTo(%d, %d);\n", dx, dy);
/external/chromium_org/third_party/skia/tools/lua/
H A Dskia.lua73 function Sk.Rect:offset(dx, dy)
74 dy = dy or dx
76 self.left = self.left + dx
78 self.right = self.right + dx
82 function Sk.Rect:inset(dx, dy)
83 dy = dy or dx
85 self.left = self.left + dx
87 self.right = self.right - dx
/external/chromium_org/third_party/webrtc/base/
H A Dvirtualsocketserver.cc1014 double dx = (*f)[i + 1].first - (*f)[i].first; local
1017 v = v + dx * avgy;

Completed in 364 milliseconds

<<11121314151617181920>>