Home
last modified time | relevance | path

Searched refs:SkShader (Results 1 – 25 of 75) sorted by relevance

123

/external/skia/src/core/
DSkShader.cpp21 SkShader::SkShader() : fLocalMatrix(NULL) { in SkShader() function in SkShader
25 SkShader::SkShader(SkFlattenableReadBuffer& buffer) in SkShader() function in SkShader
35 SkShader::~SkShader() { in ~SkShader()
40 void SkShader::beginSession() { in beginSession()
45 void SkShader::endSession() { in endSession()
50 void SkShader::flatten(SkFlattenableWriteBuffer& buffer) { in flatten()
58 bool SkShader::getLocalMatrix(SkMatrix* localM) const { in getLocalMatrix()
72 void SkShader::setLocalMatrix(const SkMatrix& localM) { in setLocalMatrix()
83 void SkShader::resetLocalMatrix() { in resetLocalMatrix()
90 bool SkShader::setContext(const SkBitmap& device, in setContext()
[all …]
DSkBitmapSampler.cpp20 static SkTileModeProc get_tilemode_proc(SkShader::TileMode mode) in get_tilemode_proc()
23 case SkShader::kClamp_TileMode: in get_tilemode_proc()
25 case SkShader::kRepeat_TileMode: in get_tilemode_proc()
27 case SkShader::kMirror_TileMode: in get_tilemode_proc()
36 SkShader::TileMode tmx, SkShader::TileMode tmy) in SkBitmapSampler()
55 SkShader::TileMode tmx, SkShader::TileMode tmy) in SkNullBitmapSampler()
86 ARGB32_Bilinear_Sampler(const SkBitmap& bm, SkShader::TileMode tmx, SkShader::TileMode tmy) in ARGB32_Bilinear_Sampler()
134 RGB16_Bilinear_Sampler(const SkBitmap& bm, SkShader::TileMode tmx, SkShader::TileMode tmy) in RGB16_Bilinear_Sampler()
188 Index8_Bilinear_Sampler(const SkBitmap& bm, SkShader::TileMode tmx, SkShader::TileMode tmy) in Index8_Bilinear_Sampler()
243 A8_Bilinear_Sampler(const SkBitmap& bm, SkShader::TileMode tmx, SkShader::TileMode tmy) in A8_Bilinear_Sampler()
[all …]
DSkBitmapSamplerTemplate.h26 …BITMAP_CLASSNAME_PREFIX(_Point_Sampler)(const SkBitmap& bm, SkShader::TileMode tmx, SkShader::Tile… in BITMAP_CLASSNAME_PREFIX()
43 : SkBitmapSampler(bm, false, SkShader::kClamp_TileMode, SkShader::kClamp_TileMode) in BITMAP_CLASSNAME_PREFIX()
58 : SkBitmapSampler(bm, false, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode) in BITMAP_CLASSNAME_PREFIX()
73 : SkBitmapSampler(bm, false, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode) in BITMAP_CLASSNAME_PREFIX()
88 : SkBitmapSampler(bm, false, SkShader::kMirror_TileMode, SkShader::kMirror_TileMode) in BITMAP_CLASSNAME_PREFIX()
103 : SkBitmapSampler(bm, false, SkShader::kMirror_TileMode, SkShader::kMirror_TileMode) in BITMAP_CLASSNAME_PREFIX()
DSkBitmapSampler.h29 SkBitmapSampler(const SkBitmap&, bool filter, SkShader::TileMode tmx, SkShader::TileMode tmy);
34 SkShader::TileMode getTileModeX() const { return fTileModeX; } in getTileModeX()
35 SkShader::TileMode getTileModeY() const { return fTileModeY; } in getTileModeY()
45 SkShader::TileMode tmx, SkShader::TileMode tmy);
51 SkShader::TileMode fTileModeX;
52 SkShader::TileMode fTileModeY;
DSkColorFilter.cpp32 SkFilterShader::SkFilterShader(SkShader* shader, SkColorFilter* filter) in SkFilterShader()
41 fShader = static_cast<SkShader*>(buffer.readFlattenable()); in SkFilterShader()
77 shaderF &= ~SkShader::kHasSpan16_Flag; in getFlags()
81 shaderF &= ~(SkShader::kOpaqueAlpha_Flag | SkShader::kHasSpan16_Flag); in getFlags()
102 SkASSERT(fShader->getFlags() & SkShader::kHasSpan16_Flag); in shadeSpan16()
DSkBitmapProcState_matrixProcs.cpp99 if (SkShader::kClamp_TileMode == m) in choose_tile_proc()
101 if (SkShader::kRepeat_TileMode == m) in choose_tile_proc()
103 SkASSERT(SkShader::kMirror_TileMode == m); in choose_tile_proc()
146 if (SkShader::kClamp_TileMode == tm) in choose_int_tile_proc()
148 if (SkShader::kRepeat_TileMode == tm) in choose_int_tile_proc()
150 SkASSERT(SkShader::kMirror_TileMode == tm); in choose_int_tile_proc()
481 case SkShader::kClamp_TileMode: in chooseMatrixProc()
483 case SkShader::kRepeat_TileMode: in chooseMatrixProc()
485 case SkShader::kMirror_TileMode: in chooseMatrixProc()
500 if (SkShader::kClamp_TileMode == fTileModeX && in chooseMatrixProc()
[all …]
DSkComposeShader.cpp25 SkComposeShader::SkComposeShader(SkShader* sA, SkShader* sB, SkXfermode* mode) in SkComposeShader()
36 fShaderA = static_cast<SkShader*>(buffer.readFlattenable()); in SkComposeShader()
37 fShaderB = static_cast<SkShader*>(buffer.readFlattenable()); in SkComposeShader()
118 SkShader* shaderA = fShaderA; in shadeSpan()
119 SkShader* shaderB = fShaderB; in shadeSpan()
/external/webkit/WebCore/platform/graphics/skia/
DPatternSkia.cpp68 …m_pattern = SkShader::CreateBitmapShader(*bm, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMo… in platformPattern()
77SkShader::TileMode tileModeX = m_repeatX ? SkShader::kRepeat_TileMode : SkShader::kClamp_TileMode; in platformPattern()
78SkShader::TileMode tileModeY = m_repeatY ? SkShader::kRepeat_TileMode : SkShader::kClamp_TileMode; in platformPattern()
91 m_pattern = SkShader::CreateBitmapShader(bm2, tileModeX, tileModeY); in platformPattern()
DGradientSkia.cpp118 SkShader* Gradient::platformGradient() in platformGradient()
141 SkShader::TileMode tile = SkShader::kClamp_TileMode; in platformGradient()
144 tile = SkShader::kMirror_TileMode; in platformGradient()
147 tile = SkShader::kRepeat_TileMode; in platformGradient()
150 tile = SkShader::kClamp_TileMode; in platformGradient()
DImageSkia.cpp325 SkShader* shader; in drawPattern()
353 …shader = SkShader::CreateBitmapShader(resampled, SkShader::kRepeat_TileMode, SkShader::kRepeat_Til… in drawPattern()
361 …shader = SkShader::CreateBitmapShader(srcSubset, SkShader::kRepeat_TileMode, SkShader::kRepeat_Til… in drawPattern()
/external/skia/gm/
Dgradients.cpp29 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data, in MakeLinear()
30 SkShader::TileMode tm, SkUnitMapper* mapper) { in MakeLinear()
35 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data, in MakeRadial()
36 SkShader::TileMode tm, SkUnitMapper* mapper) { in MakeRadial()
44 static SkShader* MakeSweep(const SkPoint pts[2], const GradData& data, in MakeSweep()
45 SkShader::TileMode tm, SkUnitMapper* mapper) { in MakeSweep()
53 typedef SkShader* (*GradMaker)(const SkPoint pts[2], const GradData& data,
54 SkShader::TileMode tm, SkUnitMapper* mapper);
83 SkShader::TileMode tm = SkShader::kClamp_TileMode; in onDraw()
92 SkShader* shader = gGradMakers[j](pts, gGradData[i], tm, NULL); in onDraw()
Dtilemodes.cpp37 SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode, um))->unref(); in makebm()
42 SkShader::TileMode tmx, SkShader::TileMode tmy) { in setup()
43 SkShader* shader = SkShader::CreateBitmapShader(bm, tmx, tmy); in setup()
90 …static const SkShader::TileMode gModes[] = { SkShader::kClamp_TileMode, SkShader::kRepeat_TileMode… in onDraw()
Dxfermodes.cpp77 SkShader* s = SkShader::CreateBitmapShader(fBG, in drawBG()
78 SkShader::kRepeat_TileMode, in drawBG()
79 SkShader::kRepeat_TileMode); in drawBG()
128 SkShader* s = SkShader::CreateBitmapShader(fBG, in onDraw()
129 SkShader::kRepeat_TileMode, in onDraw()
130 SkShader::kRepeat_TileMode); in onDraw()
/external/skia/src/animator/
DSkDrawShader.cpp36 tileMode(SkShader::kClamp_TileMode) { in SkDrawShader()
47 void SkDrawShader::addPostlude(SkShader* shader) { in addPostlude()
74 SkShader* SkDrawBitmapShader::getShader() { in getShader()
84 SkShader* shader = SkShader::CreateBitmapShader(image->fBitmap, in getShader()
85 (SkShader::TileMode) tileMode, in getShader()
86 (SkShader::TileMode) tileMode); in getShader()
87 SkAutoTDelete<SkShader> autoDel(shader); in getShader()
DSkDrawGradient.cpp191 SkShader* SkLinearGradient::getShader() { in getShader()
194 SkShader* shader = SkGradientShader::CreateLinear((SkPoint*)points.begin(), in getShader()
195 … fColors.begin(), offsets.begin(), fColors.count(), (SkShader::TileMode) tileMode, fUnitMapper); in getShader()
196 SkAutoTDelete<SkShader> autoDel(shader); in getShader()
226 SkShader* SkRadialGradient::getShader() { in getShader()
229 SkShader* shader = SkGradientShader::CreateRadial(center, in getShader()
230 …radius, fColors.begin(), offsets.begin(), fColors.count(), (SkShader::TileMode) tileMode, fUnitMap… in getShader()
231 SkAutoTDelete<SkShader> autoDel(shader); in getShader()
/external/skia/include/effects/
DSkGradientShader.h48 static SkShader* CreateLinear( const SkPoint pts[2],
50 SkShader::TileMode mode,
70 static SkShader* CreateRadial( const SkPoint& center, SkScalar radius,
72 SkShader::TileMode mode,
95 static SkShader* CreateTwoPointRadial(const SkPoint& start,
101 SkShader::TileMode mode,
119 static SkShader* CreateSweep(SkScalar cx, SkScalar cy,
/external/skia/src/views/
DSkParsePaint.cpp7 static SkShader* inflate_shader(const SkDOM& dom, const SkDOM::Node* node) in inflate_shader()
27 SkShader::TileMode mode = SkShader::kClamp_TileMode; in inflate_shader()
31 mode = (SkShader::TileMode)index; in inflate_shader()
44 SkShader::TileMode mode = SkShader::kRepeat_TileMode; in inflate_shader()
48 mode = (SkShader::TileMode)index; in inflate_shader()
50 return SkShader::CreateBitmapShader(bm, mode, mode); in inflate_shader()
99 SkShader* shader = inflate_shader(dom, node); in SkPaint_Inflate()
DSkProgressView.cpp101 static SkShader* inflate_shader(const char file[]) in inflate_shader()
106 SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode) : in inflate_shader()
/external/skia/include/core/
DSkComposeShader.h30 class SkComposeShader : public SkShader {
41 SkComposeShader(SkShader* sA, SkShader* sB, SkXfermode* mode = NULL);
59 SkShader* fShaderA;
60 SkShader* fShaderB;
63 typedef SkShader INHERITED;
DSkShader.h35 class SkShader : public SkFlattenable {
37 SkShader();
38 virtual ~SkShader();
132 return SkShader::CanCallShadeSpan16(this->getFlags()); in canCallShadeSpan16()
164 static SkShader* CreateBitmapShader(const SkBitmap& src,
182 SkShader(SkFlattenableReadBuffer& );
191 static SkShader* CreateBitmapShader(const SkBitmap& src,
DSkColorFilter.h97 class SkFilterShader : public SkShader {
99 SkFilterShader(SkShader* shader, SkColorFilter* filter);
118 SkShader* fShader;
121 typedef SkShader INHERITED;
/external/webkit/WebCore/platform/graphics/android/
DGradientAndroid.cpp43 SkShader* m_shader;
44 SkShader::TileMode m_tileMode;
61 SkShader* Gradient::getShader(SkShader::TileMode mode) in getShader()
91 SkShader* s; in getShader()
119 SkShader::TileMode mode = m_gradient ? m_gradient->m_tileMode : in fill()
120 SkShader::kClamp_TileMode; in fill()
DPatternAndroid.cpp39 static SkShader::TileMode toTileMode(bool doRepeat) { in toTileMode()
40 return doRepeat ? SkShader::kRepeat_TileMode : SkShader::kClamp_TileMode; in toTileMode()
49 SkShader* Pattern::platformPattern(const AffineTransform&) in platformPattern()
57 m_pattern = SkShader::CreateBitmapShader(ref->bitmap(), in platformPattern()
/external/webkit/WebCore/platform/graphics/
DGradient.h61 class SkShader; variable
62 typedef class SkShader* PlatformGradient;
63 typedef class SkShader* PlatformPattern;
99 SkShader* getShader(SkShader::TileMode);
/external/skia/bench/
DRepeatTileBench.cpp105 SkShader* s = SkShader::CreateBitmapShader(bm, in RepeatTileBench()
106 SkShader::kRepeat_TileMode, in RepeatTileBench()
107 SkShader::kRepeat_TileMode); in RepeatTileBench()

123