Home
last modified time | relevance | path

Searched refs:transform (Results 1 – 25 of 172) sorted by relevance

1234567

/frameworks/base/libs/hwui/
DClipArea.cpp34 static void handlePoint(Rect& transformedBounds, const Matrix4& transform, float x, float y) { in handlePoint() argument
38 transform.mapPoint(v.x, v.y); in handlePoint()
42 Rect transformAndCalculateBounds(const Rect& r, const Matrix4& transform) { in transformAndCalculateBounds() argument
46 handlePoint(transformedBounds, transform, r.left, r.top); in transformAndCalculateBounds()
47 handlePoint(transformedBounds, transform, r.right, r.top); in transformAndCalculateBounds()
48 handlePoint(transformedBounds, transform, r.left, r.bottom); in transformAndCalculateBounds()
49 handlePoint(transformedBounds, transform, r.right, r.bottom); in transformAndCalculateBounds()
61 const Matrix4& transform) in TransformedRectangle() argument
63 , mTransform(transform) { in TransformedRectangle()
114 void RectangleList::set(const Rect& bounds, const Matrix4& transform) { in set() argument
[all …]
DClipArea.h28 Rect transformAndCalculateBounds(const Rect& r, const Matrix4& transform);
33 TransformedRectangle(const Rect& bounds, const Matrix4& transform);
67 void set(const Rect& bounds, const Matrix4& transform);
68 bool intersectWith(const Rect& bounds, const Matrix4& transform);
95 const mat4* transform, SkRegion::Op op = SkRegion::kIntersect_Op);
96 bool clipRectWithTransform(const Rect& r, const mat4* transform,
99 bool clipPathWithTransform(const SkPath& path, const mat4* transform,
128 bool rectangleModeClipRectWithTransform(const Rect& r, const mat4* transform, SkRegion::Op op);
130 float bottom, const mat4* transform, SkRegion::Op op);
134 float right, float bottom, const mat4* transform, SkRegion::Op op);
[all …]
DSnapshot.cpp41 transform = &mTransformRoot; in Snapshot()
63 mTransformRoot.load(*s->transform); in Snapshot()
64 transform = &mTransformRoot; in Snapshot()
66 transform = s->transform; in Snapshot()
95 return mClipArea->clipRectWithTransform(left, top, right, bottom, transform, op); in clip()
100 return mClipArea->clipPathWithTransform(path, transform, op); in clipPath()
109 return transform->isPerspective(); in hasPerspectiveTransform()
114 inverse.loadInverse(*transform); in getLocalClip()
138 inverse.loadInverse(*transform); in resetTransform()
142 transform = &mTransformRoot; in resetTransform()
[all …]
DCanvasState.cpp117 mSnapshot->transform->copyTo(*matrix); in getMatrix()
121 mSnapshot->transform->translate(dx, dy, dz); in translate()
125 mSnapshot->transform->rotate(degrees, 0.0f, 0.0f, 1.0f); in rotate()
129 mSnapshot->transform->scale(sx, sy, 1.0f); in scale()
133 mSnapshot->transform->skew(sx, sy); in skew()
137 mSnapshot->transform->load(matrix); in setMatrix()
141 mSnapshot->transform->load(matrix); in setMatrix()
145 mat4 transform(matrix); in concatMatrix() local
146 mSnapshot->transform->multiply(transform); in concatMatrix()
150 mSnapshot->transform->multiply(matrix); in concatMatrix()
DDamageAccumulator.cpp90 void DamageAccumulator::pushTransform(const RenderNode* transform) { in pushTransform() argument
93 mHead->renderNode = transform; in pushTransform()
96 void DamageAccumulator::pushTransform(const Matrix4* transform) { in pushTransform() argument
99 mHead->matrix4 = transform; in pushTransform()
134 const SkMatrix* transform = props.getTransformMatrix(); in mapRect() local
136 if (transform && !transform->isIdentity()) { in mapRect()
137 transform->mapRect(&temp); in mapRect()
DTessellationCache.h72 Description(Type type, const Matrix4& transform, const SkPaint& paint);
124 void precacheRoundRect(const Matrix4& transform, const SkPaint& paint, in precacheRoundRect() argument
126 getRoundRectBuffer(transform, paint, width, height, rx, ry); in precacheRoundRect()
128 const VertexBuffer* getRoundRect(const Matrix4& transform, const SkPaint& paint,
149 Buffer* getRectBuffer(const Matrix4& transform, const SkPaint& paint,
151 Buffer* getRoundRectBuffer(const Matrix4& transform, const SkPaint& paint,
DRenderProperties.cpp192 SkMatrix* transform = mComputedFields.mTransformMatrix; in updateMatrix() local
193 transform->reset(); in updateMatrix()
195 transform->setTranslate(getTranslationX(), getTranslationY()); in updateMatrix()
196 transform->preRotate(getRotation(), getPivotX(), getPivotY()); in updateMatrix()
197 transform->preScale(getScaleX(), getScaleY(), getPivotX(), getPivotY()); in updateMatrix()
201 transform->preScale(getScaleX(), getScaleY(), getPivotX(), getPivotY()); in updateMatrix()
209 transform->postConcat(transform3D); in updateMatrix()
DPathTessellator.h60 static void extractTessellationScales(const Matrix4& transform, float* scaleX, float* scaleY);
74 const mat4& transform, VertexBuffer& vertexBuffer);
88 const mat4& transform, VertexBuffer& vertexBuffer);
102 const mat4& transform, VertexBuffer& vertexBuffer);
DGlopBuilder.cpp470 mOutGlop->transform.ortho.load(ortho); in setTransform()
471 mOutGlop->transform.canvas.load(canvas); in setTransform()
472 mOutGlop->transform.transformFlags = transformFlags; in setTransform()
482 mOutGlop->transform.modelView.loadTranslate(destination.left, destination.top, 0.0f); in setModelViewMapUnitToRect()
483 mOutGlop->transform.modelView.scale(destination.getWidth(), destination.getHeight(), 1.0f); in setModelViewMapUnitToRect()
495 const Matrix4& meshTransform = mOutGlop->transform.meshTransform(); in setModelViewMapUnitToRectSnap()
506 mOutGlop->transform.modelView.loadTranslate(left, top, 0.0f); in setModelViewMapUnitToRectSnap()
507 mOutGlop->transform.modelView.scale(destination.getWidth(), destination.getHeight(), 1.0f); in setModelViewMapUnitToRectSnap()
515 mOutGlop->transform.modelView.loadTranslate(offsetX, offsetY, 0.0f); in setModelViewOffsetRect()
525 const Matrix4& meshTransform = mOutGlop->transform.meshTransform(); in setModelViewOffsetRectSnap()
[all …]
/frameworks/native/services/surfaceflinger/
DLayer.cpp114 mCurrentState.transform.set(0, 0); in Layer()
369 activeCrop = s.transform.transform(activeCrop); in computeCrop()
371 activeCrop = s.transform.inverse().transform(activeCrop); in computeCrop()
428 const Rect winCrop = activeCrop.transform( in computeCrop()
474 activeCrop = s.transform.transform(activeCrop); in setGeometry()
476 activeCrop = s.transform.inverse().transform(activeCrop); in setGeometry()
493 Rect frame(s.transform.transform(computeBounds(activeTransparentRegion))); in setGeometry()
496 layer.setFrame(tr.transform(frame)); in setGeometry()
509 Transform transform(tr * s.transform * bufferOrientation); in setGeometry() local
516 uint32_t t_orientation = transform.getOrientation(); in setGeometry()
[all …]
DTransform.cpp176 vec2 Transform::transform(const vec2& v) const { in transform() function in android::Transform
184 vec3 Transform::transform(const vec3& v) const { in transform() function in android::Transform
193 vec2 Transform::transform(int x, int y) const in transform() function in android::Transform
195 return transform(vec2(x,y)); in transform()
200 return transform( Rect(w, h) ); in makeBounds()
203 Rect Transform::transform(const Rect& bounds) const in transform() function in android::Transform
211 lt = transform(lt); in transform()
212 rt = transform(rt); in transform()
213 lb = transform(lb); in transform()
214 rb = transform(rb); in transform()
[all …]
DTransform.h80 vec2 transform(int x, int y) const;
81 Region transform(const Region& reg) const;
82 Rect transform(const Rect& bounds) const;
100 vec2 transform(const vec2& v) const;
101 vec3 transform(const vec3& v) const;
/frameworks/base/libs/hwui/unit_tests/
DClipAreaTests.cpp95 Matrix4 transform; in TEST() local
96 transform.loadIdentity(); in TEST()
100 area.clipPathWithTransform(path, &transform, SkRegion::kIntersect_Op); in TEST()
120 Matrix4 transform; in TEST() local
121 transform.loadIdentity(); in TEST()
123 area.clipRectWithTransform(expected, &transform, SkRegion::kReplace_Op); in TEST()
/frameworks/av/camera/
DCameraUtils.cpp30 /*out*/int32_t* transform) { in getRotationTransform() argument
33 if (transform == NULL) { in getRotationTransform()
38 *transform = 0; in getRotationTransform()
52 int32_t& flags = *transform; in getRotationTransform()
/frameworks/webview/chromium/plat_support/
Ddraw_gl_functor.cpp69 COMPILE_ASSERT(NELEM(aw_info.transform) == NELEM(gl_info->transform), in operator ()()
71 for (int i = 0; i < NELEM(aw_info.transform); ++i) { in operator ()()
72 aw_info.transform[i] = gl_info->transform[i]; in operator ()()
/frameworks/av/media/libstagefright/
DSurfaceUtils.cpp42 int transform = 0; in setNativeWindowSizeFormatAndUsage() local
45 case 1: transform = HAL_TRANSFORM_ROT_90; break; in setNativeWindowSizeFormatAndUsage()
46 case 2: transform = HAL_TRANSFORM_ROT_180; break; in setNativeWindowSizeFormatAndUsage()
47 case 3: transform = HAL_TRANSFORM_ROT_270; break; in setNativeWindowSizeFormatAndUsage()
48 default: transform = 0; break; in setNativeWindowSizeFormatAndUsage()
52 err = native_window_set_buffers_transform(nativeWindow, transform); in setNativeWindowSizeFormatAndUsage()
/frameworks/native/opengl/tests/hwc/
DhwcRects.cpp145 Rectangle() : format(defaultFormat), transform(defaultTransform), in Rectangle()
152 uint32_t transform; member in Rectangle
320 layer->transform = it->transform; in main()
421 rect.transform = 0; in parseRect()
423 rect.transform = HWC_TRANSFORM_FLIP_H; in parseRect()
425 rect.transform = HWC_TRANSFORM_FLIP_V; in parseRect()
427 rect.transform = HWC_TRANSFORM_ROT_90; in parseRect()
429 rect.transform = HWC_TRANSFORM_ROT_180; in parseRect()
431 rect.transform = HWC_TRANSFORM_ROT_270; in parseRect()
/frameworks/base/graphics/java/android/graphics/pdf/
DPdfEditor.java117 public void setTransformAndClip(int pageIndex, @Nullable Matrix transform, in setTransformAndClip() argument
121 throwIfNotNullAndNotAfine(transform); in setTransformAndClip()
122 if (transform == null) { in setTransformAndClip()
123 transform = Matrix.IDENTITY_MATRIX; in setTransformAndClip()
128 nativeSetTransformAndClip(mNativeDocument, pageIndex, transform.native_instance, in setTransformAndClip()
131 nativeSetTransformAndClip(mNativeDocument, pageIndex, transform.native_instance, in setTransformAndClip()
DPdfRenderer.java349 @Nullable Matrix transform, @RenderMode int renderMode) { in render() argument
362 if (transform != null && !transform.isAffine()) { in render()
381 final long transformPtr = (transform != null) ? transform.native_instance : 0; in render()
/frameworks/base/tools/aapt2/
DJavaClassGenerator.cpp73 static std::u16string transform(const StringPiece16& symbol) { in transform() function
113 << "public static final int[] " << transform(*entryName) << " = {"; in visit()
132 << " int " << transform(*entryName); in visit()
138 *out << "_" << transform(itemName.package); in visit()
140 *out << "_" << transform(itemName.entry) << " = " << i << ";" << std::endl; in visit()
183 << " int " << transform(unmangledName) << " = " << id << ";" << std::endl; in generateType()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DCameraDeviceInfo.java188 Matrix transform = new Matrix(); in getPreviewTransform() local
189 transform.setRectToRect(surfaceDimensions, desiredBounds, Matrix.ScaleToFit.FILL); in getPreviewTransform()
190 return transform; in getPreviewTransform()
/frameworks/base/core/java/android/view/
DTextureView.java464 public void setTransform(Matrix transform) { in setTransform() argument
465 mMatrix.set(transform); in setTransform()
481 public Matrix getTransform(Matrix transform) { in getTransform() argument
482 if (transform == null) { in getTransform()
483 transform = new Matrix(); in getTransform()
486 transform.set(mMatrix); in getTransform()
488 return transform; in getTransform()
/frameworks/native/include/gui/
DIGraphicBufferProducer.h281 uint32_t transform, bool async, const sp<Fence>& fence,
285 transform(transform), stickyTransform(sticky), in timestamp()
297 *outTransform = transform;
320 uint32_t transform; member
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
Dparams.rsh31 if (rsIsObject(pData->transform)) {
32 pTransform = (const SgTransform *)rsGetElementAt(pData->transform, 0);
34 rsDebug("transform", pTransform);
75 if (rsIsObject(pData->transform)) {
76 pTransform = (const SgTransform *)rsGetElementAt(pData->transform, 0);
80 // If we are a transform param and our transform is unchanged, nothing to do
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
DPdfManipulationService.java264 Matrix transform = new Matrix(); in applyPrintAttributes() local
297 transform.setTranslate(0, srcHeightPts - dstHeightPts); in applyPrintAttributes()
301 transform.postRotate(270); in applyPrintAttributes()
302 transform.postTranslate(0, dstHeightPts); in applyPrintAttributes()
311 transform.postScale(scale, scale); in applyPrintAttributes()
315 transform.postScale(scale, scale, mediaBox.left, mediaBox.bottom); in applyPrintAttributes()
337 transform.postTranslate(dx, dy); in applyPrintAttributes()
354 mEditor.setTransformAndClip(i, transform, clip); in applyPrintAttributes()

1234567