Searched defs:localMatrix (Results 1 - 25 of 60) sorted by relevance

123

/external/chromium_org/third_party/skia/src/core/
H A DSkLocalMatrixShader.h17 SkLocalMatrixShader(SkShader* proxy, const SkMatrix& localMatrix) argument
18 : INHERITED(&localMatrix)
38 const SkMatrix* localMatrix, GrColor* grColor,
41 if (localMatrix) {
42 tmp.preConcat(*localMatrix);
57 virtual SkShader* refAsALocalMatrixShader(SkMatrix* localMatrix) const SK_OVERRIDE {
58 if (localMatrix) {
59 *localMatrix = this->getLocalMatrix();
H A DSkLocalMatrixShader.cpp62 SkShader* SkShader::CreateLocalMatrixShader(SkShader* proxy, const SkMatrix& localMatrix) { argument
63 if (localMatrix.isIdentity()) {
67 const SkMatrix* lm = &localMatrix;
72 otherLocalMatrix.preConcat(localMatrix);
H A DSkDevice.cpp103 SkMatrix localMatrix; local
107 localMatrix = *draw.fMatrix;
108 localMatrix.preTranslate(x, y);
109 localDraw.fMatrix = &localMatrix;
H A DSkPictureShader.cpp22 const SkMatrix* localMatrix, const SkRect* tile)
23 : INHERITED(localMatrix)
44 const SkMatrix* localMatrix, const SkRect* tile) {
48 return SkNEW_ARGS(SkPictureShader, (picture, tmx, tmy, localMatrix, tile));
216 const SkMatrix* localMatrix, GrColor* paintColor,
218 SkAutoTUnref<SkShader> bitmapShader(this->refBitmapShader(context->getMatrix(), localMatrix));
21 SkPictureShader(const SkPicture* picture, TileMode tmx, TileMode tmy, const SkMatrix* localMatrix, const SkRect* tile) argument
43 Create(const SkPicture* picture, TileMode tmx, TileMode tmy, const SkMatrix* localMatrix, const SkRect* tile) argument
215 asFragmentProcessor(GrContext* context, const SkPaint& paint, const SkMatrix* localMatrix, GrColor* paintColor, GrFragmentProcessor** fp) const argument
H A DSkBitmapProcShader.cpp35 const SkMatrix* localMatrix)
36 : INHERITED(localMatrix) {
341 SkShader::TileMode tmy, const SkMatrix* localMatrix, SkTBlitterAllocator* allocator) {
359 shader = SkNEW_ARGS(SkBitmapProcShader, (src, tmx, tmy, localMatrix));
361 shader = allocator->createT<SkBitmapProcShader>(src, tmx, tmy, localMatrix);
399 const SkMatrix* localMatrix, GrColor* paintColor,
408 if (localMatrix) {
410 if (!localMatrix->invert(&inv)) {
34 SkBitmapProcShader(const SkBitmap& src, TileMode tmx, TileMode tmy, const SkMatrix* localMatrix) argument
340 CreateBitmapShader(const SkBitmap& src, SkShader::TileMode tmx, SkShader::TileMode tmy, const SkMatrix* localMatrix, SkTBlitterAllocator* allocator) argument
398 asFragmentProcessor(GrContext* context, const SkPaint& paint, const SkMatrix* localMatrix, GrColor* paintColor, GrFragmentProcessor** fp) const argument
H A DSkShader.cpp40 SkShader::SkShader(const SkMatrix* localMatrix) { argument
42 if (localMatrix) {
43 fLocalMatrix = *localMatrix;
244 const SkMatrix* localMatrix) {
245 return ::CreateBitmapShader(src, tmx, tmy, localMatrix, NULL);
249 const SkMatrix* localMatrix, const SkRect* tile) {
250 return SkPictureShader::Create(src, tmx, tmy, localMatrix, tile);
243 CreateBitmapShader(const SkBitmap& src, TileMode tmx, TileMode tmy, const SkMatrix* localMatrix) argument
248 CreatePictureShader(SkPicture* src, TileMode tmx, TileMode tmy, const SkMatrix* localMatrix, const SkRect* tile) argument
/external/skia/src/core/
H A DSkLocalMatrixShader.h17 SkLocalMatrixShader(SkShader* proxy, const SkMatrix& localMatrix) argument
18 : INHERITED(&localMatrix)
37 virtual bool asNewEffect(GrContext* context, const SkPaint& paint, const SkMatrix* localMatrix,
40 if (localMatrix) {
41 tmp.preConcat(*localMatrix);
48 virtual bool asNewEffect(GrContext* context, const SkPaint& paint, const SkMatrix* localMatrix,
56 virtual SkShader* refAsALocalMatrixShader(SkMatrix* localMatrix) const SK_OVERRIDE {
57 if (localMatrix) {
58 *localMatrix = this->getLocalMatrix();
H A DSkLocalMatrixShader.cpp47 SkShader* SkShader::CreateLocalMatrixShader(SkShader* proxy, const SkMatrix& localMatrix) { argument
48 if (localMatrix.isIdentity()) {
52 const SkMatrix* lm = &localMatrix;
57 otherLocalMatrix.preConcat(localMatrix);
H A DSkPictureShader.cpp22 const SkMatrix* localMatrix)
23 : INHERITED(localMatrix)
40 const SkMatrix* localMatrix) {
44 return SkNEW_ARGS(SkPictureShader, (picture, tmx, tmy, localMatrix));
192 const SkMatrix* localMatrix, GrColor* grColor,
194 SkAutoTUnref<SkShader> bitmapShader(this->refBitmapShader(context->getMatrix(), localMatrix));
202 const SkMatrix* localMatrix, GrColor* grColor,
21 SkPictureShader(SkPicture* picture, TileMode tmx, TileMode tmy, const SkMatrix* localMatrix) argument
39 Create(SkPicture* picture, TileMode tmx, TileMode tmy, const SkMatrix* localMatrix) argument
191 asNewEffect(GrContext* context, const SkPaint& paint, const SkMatrix* localMatrix, GrColor* grColor, GrEffectRef** grEffect) const argument
201 asNewEffect(GrContext* context, const SkPaint& paint, const SkMatrix* localMatrix, GrColor* grColor, GrEffectRef** grEffect) const argument
/external/chromium_org/third_party/skia/gm/
H A Dgradient_matrix.cpp64 static SkShader* make_linear_gradient(const SkPoint pts[2], const SkMatrix& localMatrix) { argument
66 SkShader::kClamp_TileMode, 0, &localMatrix);
69 static SkShader* make_radial_gradient(const SkPoint pts[2], const SkMatrix& localMatrix) { argument
75 SkShader::kClamp_TileMode, 0, &localMatrix);
H A Dpictureshader.cpp69 SkMatrix ctm, localMatrix; local
73 localMatrix.setScale(localScale, localScale);
74 this->drawScene(canvas, ctm, localMatrix, tileMode);
78 localMatrix.setTranslate(fTileSize / 4, fTileSize / 4);
79 localMatrix.preScale(localScale, localScale);
80 this->drawScene(canvas, ctm, localMatrix, tileMode);
84 localMatrix.setRotate(45);
85 localMatrix.preScale(localScale, localScale);
86 this->drawScene(canvas, ctm, localMatrix, tileMode);
90 localMatrix
119 drawScene(SkCanvas* canvas, const SkMatrix& matrix, const SkMatrix& localMatrix, unsigned tileMode) argument
[all...]
H A Dpictureshadertile.cpp73 SkMatrix localMatrix; local
74 localMatrix.setTranslate(tiles[i].offsetX * kPictureSize,
76 localMatrix.postScale(kFillSize / (2 * kPictureSize),
81 &localMatrix,
H A Dshaderbounds.cpp13 const SkMatrix& localMatrix) {
22 SkShader::kClamp_TileMode, 0, &localMatrix);
30 bool alternate, const SkMatrix& localMatrix);
12 MakeLinear(SkScalar width, SkScalar height, bool alternate, const SkMatrix& localMatrix) argument
H A Dgradients.cpp43 SkShader::TileMode tm, const SkMatrix& localMatrix) {
45 data.fCount, tm, 0, &localMatrix);
49 SkShader::TileMode tm, const SkMatrix& localMatrix) {
54 data.fPos, data.fCount, tm, 0, &localMatrix);
58 SkShader::TileMode, const SkMatrix& localMatrix) {
63 data.fPos, data.fCount, 0, &localMatrix);
67 SkShader::TileMode tm, const SkMatrix& localMatrix) {
77 0, &localMatrix);
81 SkShader::TileMode tm, const SkMatrix& localMatrix) {
90 data.fCount, tm, 0, &localMatrix);
42 MakeLinear(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
48 MakeRadial(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
57 MakeSweep(const SkPoint pts[2], const GradData& data, SkShader::TileMode, const SkMatrix& localMatrix) argument
66 Make2Radial(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
80 Make2Conical(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
[all...]
H A Dgradients_2pt_conical.cpp41 SkShader::TileMode tm, const SkMatrix& localMatrix) {
50 data.fCount, tm, 0, &localMatrix);
54 SkShader::TileMode tm, const SkMatrix& localMatrix) {
63 data.fCount, tm, 0, &localMatrix);
67 SkShader::TileMode tm, const SkMatrix& localMatrix) {
76 0, &localMatrix);
80 SkShader::TileMode tm, const SkMatrix& localMatrix) {
89 0, &localMatrix);
93 SkShader::TileMode tm, const SkMatrix& localMatrix) {
102 0, &localMatrix);
40 Make2ConicalOutside(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
53 Make2ConicalOutsideFlip(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
66 Make2ConicalInside(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
79 Make2ConicalInsideFlip(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
92 Make2ConicalInsideCenter(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
105 Make2ConicalZeroRad(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
118 Make2ConicalZeroRadFlip(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
131 Make2ConicalZeroRadCenter(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
144 Make2ConicalZeroRadOutside(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
157 Make2ConicalZeroRadFlipOutside(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
170 Make2ConicalEdgeX(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
184 Make2ConicalEdgeY(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
198 Make2ConicalZeroRadEdgeX(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
212 Make2ConicalZeroRadEdgeY(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
226 Make2ConicalTouchX(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
240 Make2ConicalTouchY(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
254 Make2ConicalInsideSmallRad(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
[all...]
/external/chromium_org/third_party/skia/include/effects/
H A DSkGradientShader.h50 uint32_t flags, const SkMatrix* localMatrix);
62 uint32_t flags, const SkMatrix* localMatrix) {
63 return CreateLinear(pts, colors, pos, count, mode, flags, localMatrix);
86 uint32_t flags, const SkMatrix* localMatrix);
98 uint32_t flags, const SkMatrix* localMatrix) {
99 return CreateRadial(center, radius, colors, pos, count, mode, flags, localMatrix);
126 uint32_t flags, const SkMatrix* localMatrix);
141 uint32_t flags, const SkMatrix* localMatrix) {
143 flags, localMatrix);
157 uint32_t flags, const SkMatrix* localMatrix);
59 CreateLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, SkShader::TileMode mode, void* ignored, uint32_t flags, const SkMatrix* localMatrix) argument
95 CreateRadial(const SkPoint& center, SkScalar radius, const SkColor colors[], const SkScalar pos[], int count, SkShader::TileMode mode, void* ignored, uint32_t flags, const SkMatrix* localMatrix) argument
137 CreateTwoPointRadial(const SkPoint& start, SkScalar startRadius, const SkPoint& end, SkScalar endRadius, const SkColor colors[], const SkScalar pos[], int count, SkShader::TileMode mode, void* ignored, uint32_t flags, const SkMatrix* localMatrix) argument
168 CreateTwoPointConical(const SkPoint& start, SkScalar startRadius, const SkPoint& end, SkScalar endRadius, const SkColor colors[], const SkScalar pos[], int count, SkShader::TileMode mode, void* ignored, uint32_t flags, const SkMatrix* localMatrix) argument
203 CreateSweep(SkScalar cx, SkScalar cy, const SkColor colors[], const SkScalar pos[], int count, void* ignored, uint32_t flags, const SkMatrix* localMatrix) argument
[all...]
/external/chromium_org/third_party/skia/samplecode/
H A DSampleLayers.cpp30 static void make_paint(SkPaint* paint, const SkMatrix& localMatrix) { argument
34 0, &localMatrix);
/external/skia/gm/
H A Dgradient_matrix.cpp64 static SkShader* make_linear_gradient(const SkPoint pts[2], const SkMatrix& localMatrix) { argument
66 SkShader::kClamp_TileMode, 0, &localMatrix);
69 static SkShader* make_radial_gradient(const SkPoint pts[2], const SkMatrix& localMatrix) { argument
75 SkShader::kClamp_TileMode, 0, &localMatrix);
H A Dpictureshader.cpp71 SkMatrix ctm, localMatrix; local
75 localMatrix.setScale(localScale, localScale);
76 this->drawScene(canvas, ctm, localMatrix, tileMode);
80 localMatrix.setTranslate(fTileSize / 4, fTileSize / 4);
81 localMatrix.preScale(localScale, localScale);
82 this->drawScene(canvas, ctm, localMatrix, tileMode);
86 localMatrix.setRotate(45);
87 localMatrix.preScale(localScale, localScale);
88 this->drawScene(canvas, ctm, localMatrix, tileMode);
92 localMatrix
121 drawScene(SkCanvas* canvas, const SkMatrix& matrix, const SkMatrix& localMatrix, unsigned tileMode) argument
[all...]
H A Dshaderbounds.cpp13 const SkMatrix& localMatrix) {
22 SkShader::kClamp_TileMode, 0, &localMatrix);
30 bool alternate, const SkMatrix& localMatrix);
12 MakeLinear(SkScalar width, SkScalar height, bool alternate, const SkMatrix& localMatrix) argument
/external/skia/include/effects/
H A DSkGradientShader.h50 uint32_t flags, const SkMatrix* localMatrix);
62 uint32_t flags, const SkMatrix* localMatrix) {
63 return CreateLinear(pts, colors, pos, count, mode, flags, localMatrix);
86 uint32_t flags, const SkMatrix* localMatrix);
98 uint32_t flags, const SkMatrix* localMatrix) {
99 return CreateRadial(center, radius, colors, pos, count, mode, flags, localMatrix);
126 uint32_t flags, const SkMatrix* localMatrix);
141 uint32_t flags, const SkMatrix* localMatrix) {
143 flags, localMatrix);
157 uint32_t flags, const SkMatrix* localMatrix);
59 CreateLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, SkShader::TileMode mode, void* ignored, uint32_t flags, const SkMatrix* localMatrix) argument
95 CreateRadial(const SkPoint& center, SkScalar radius, const SkColor colors[], const SkScalar pos[], int count, SkShader::TileMode mode, void* ignored, uint32_t flags, const SkMatrix* localMatrix) argument
137 CreateTwoPointRadial(const SkPoint& start, SkScalar startRadius, const SkPoint& end, SkScalar endRadius, const SkColor colors[], const SkScalar pos[], int count, SkShader::TileMode mode, void* ignored, uint32_t flags, const SkMatrix* localMatrix) argument
168 CreateTwoPointConical(const SkPoint& start, SkScalar startRadius, const SkPoint& end, SkScalar endRadius, const SkColor colors[], const SkScalar pos[], int count, SkShader::TileMode mode, void* ignored, uint32_t flags, const SkMatrix* localMatrix) argument
203 CreateSweep(SkScalar cx, SkScalar cy, const SkColor colors[], const SkScalar pos[], int count, void* ignored, uint32_t flags, const SkMatrix* localMatrix) argument
[all...]
/external/skia/samplecode/
H A DSampleLayers.cpp30 static void make_paint(SkPaint* paint, const SkMatrix& localMatrix) { argument
34 0, &localMatrix);
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
H A DGradient.cpp242 SkMatrix localMatrix = affineTransformToSkMatrix(m_gradientSpaceTransformation); local
247 m_gradient = adoptRef(SkGradientShader::CreateRadial(m_p1.data(), m_r1, colors.data(), pos.data(), static_cast<int>(countUsed), tile, shouldDrawInPMColorSpace, &localMatrix));
253 m_gradient = adoptRef(SkGradientShader::CreateTwoPointConical(m_p0.data(), radius0, m_p1.data(), radius1, colors.data(), pos.data(), static_cast<int>(countUsed), tile, shouldDrawInPMColorSpace, &localMatrix));
257 SkMatrix localMatrix = affineTransformToSkMatrix(m_gradientSpaceTransformation); local
258 m_gradient = adoptRef(SkGradientShader::CreateLinear(pts, colors.data(), pos.data(), static_cast<int>(countUsed), tile, shouldDrawInPMColorSpace, &localMatrix));
/external/skia/src/effects/gradients/
H A DSkTwoPointRadialGradient.cpp173 const Descriptor& desc, const SkMatrix* localMatrix)
174 : SkGradientShaderBase(desc, localMatrix),
678 const SkMatrix* localMatrix, GrColor* grColor,
687 if (localMatrix) {
689 if (!localMatrix->invert(&inv)) {
714 const SkMatrix* localMatrix, GrColor* grColor,
170 SkTwoPointRadialGradient( const SkPoint& start, SkScalar startRadius, const SkPoint& end, SkScalar endRadius, const Descriptor& desc, const SkMatrix* localMatrix) argument
/external/chromium_org/third_party/WebKit/Source/platform/graphics/skia/
H A DNativeImageSkia.cpp238 SkMatrix localMatrix; local
242 // a shifted image, it will shift it from there using the localMatrix.
245 localMatrix.setTranslate(SkFloatToScalar(adjustedX), SkFloatToScalar(adjustedY));
261 // CTM * localMatrix to have identity scale. Since we
263 // place), we must set localMatrix's scale to the inverse of
265 localMatrix.preScale(ctmScaleX ? 1 / ctmScaleX : 1, ctmScaleY ? 1 / ctmScaleY : 1);
273 shader = adoptRef(SkShader::CreateBitmapShader(resampled, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode, &localMatrix));
277 SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode, &localMatrix));
282 localMatrix.preScale(scale.width(), scale.height());
288 shader = adoptRef(SkShader::CreateBitmapShader(srcSubset, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode, &localMatrix));
[all...]

Completed in 434 milliseconds

123