Home
last modified time | relevance | path

Searched refs:SkXfermode (Results 1 – 25 of 488) sorted by relevance

12345678910>>...20

/external/chromium_org/cc/blink/
Dweb_blend_mode.h13 inline SkXfermode::Mode BlendModeToSkia(blink::WebBlendMode blend_mode) { in BlendModeToSkia()
16 return SkXfermode::kSrcOver_Mode; in BlendModeToSkia()
18 return SkXfermode::kMultiply_Mode; in BlendModeToSkia()
20 return SkXfermode::kScreen_Mode; in BlendModeToSkia()
22 return SkXfermode::kOverlay_Mode; in BlendModeToSkia()
24 return SkXfermode::kDarken_Mode; in BlendModeToSkia()
26 return SkXfermode::kLighten_Mode; in BlendModeToSkia()
28 return SkXfermode::kColorDodge_Mode; in BlendModeToSkia()
30 return SkXfermode::kColorBurn_Mode; in BlendModeToSkia()
32 return SkXfermode::kHardLight_Mode; in BlendModeToSkia()
[all …]
/external/chromium_org/third_party/skia/bench/
DXfermodeBench.cpp19 XfermodeBench(SkXfermode::Mode mode) { in XfermodeBench()
20 fXfermode.reset(SkXfermode::Create(mode)); in XfermodeBench()
21 SkASSERT(fXfermode.get() || SkXfermode::kSrcOver_Mode == mode); in XfermodeBench()
22 fName.printf("Xfermode_%s", SkXfermode::ModeName(mode)); in XfermodeBench()
25 XfermodeBench(SkXfermode* xferMode, const char* name) { in XfermodeBench()
58 SkAutoTUnref<SkXfermode> fXfermode;
75 for (int i = 0; i <= SkXfermode::kLastMode; ++i) { in onDraw()
76 SkXfermode* xfer = SkXfermode::Create(SkXfermode::Mode(i)); in onDraw()
94 BENCH(SkXfermode::kClear_Mode)
95 BENCH(SkXfermode::kSrc_Mode)
[all …]
DRotatedRectBench.cpp70 RotRectBench(bool aa, ColorType ct, SkXfermode::Mode mode) in RotRectBench()
147 fName.appendf("_%s", to_lower(SkXfermode::ModeName(fMode)).c_str()); in makeName()
152 SkXfermode::Mode fMode;
160 DEF_BENCH(return new RotRectBench(true, kConstantOpaque_ColorType, SkXfermode::kS…
161 DEF_BENCH(return new RotRectBench(true, kConstantTransparent_ColorType, SkXfermode::kS…
162 DEF_BENCH(return new RotRectBench(true, kChangingOpaque_ColorType, SkXfermode::kS…
163 DEF_BENCH(return new RotRectBench(true, kChangingTransparent_ColorType, SkXfermode::kS…
164 DEF_BENCH(return new RotRectBench(true, kAlternatingOpaqueAndTransparent_ColorType, SkXfermode::kS…
166 DEF_BENCH(return new RotRectBench(false, kConstantOpaque_ColorType, SkXfermode::kS…
167 DEF_BENCH(return new RotRectBench(false, kConstantTransparent_ColorType, SkXfermode::kS…
[all …]
/external/skia/bench/
DXfermodeBench.cpp19 XfermodeBench(SkXfermode::Mode mode) { in XfermodeBench()
20 fXfermode.reset(SkXfermode::Create(mode)); in XfermodeBench()
21 SkASSERT(NULL != fXfermode.get() || SkXfermode::kSrcOver_Mode == mode); in XfermodeBench()
22 fName.printf("Xfermode_%s", SkXfermode::ModeName(mode)); in XfermodeBench()
25 XfermodeBench(SkXfermode* xferMode, const char* name) { in XfermodeBench()
58 SkAutoTUnref<SkXfermode> fXfermode;
75 for (int i = 0; i <= SkXfermode::kLastMode; ++i) { in onDraw()
76 SkXfermode* xfer = SkXfermode::Create(SkXfermode::Mode(i)); in onDraw()
94 BENCH(SkXfermode::kClear_Mode)
95 BENCH(SkXfermode::kSrc_Mode)
[all …]
/external/skia/src/pdf/
DSkPDFGraphicState.cpp14 static const char* blend_mode_from_xfermode(SkXfermode::Mode mode) { in blend_mode_from_xfermode()
16 case SkXfermode::kSrcOver_Mode: return "Normal"; in blend_mode_from_xfermode()
17 case SkXfermode::kMultiply_Mode: return "Multiply"; in blend_mode_from_xfermode()
18 case SkXfermode::kScreen_Mode: return "Screen"; in blend_mode_from_xfermode()
19 case SkXfermode::kOverlay_Mode: return "Overlay"; in blend_mode_from_xfermode()
20 case SkXfermode::kDarken_Mode: return "Darken"; in blend_mode_from_xfermode()
21 case SkXfermode::kLighten_Mode: return "Lighten"; in blend_mode_from_xfermode()
22 case SkXfermode::kColorDodge_Mode: return "ColorDodge"; in blend_mode_from_xfermode()
23 case SkXfermode::kColorBurn_Mode: return "ColorBurn"; in blend_mode_from_xfermode()
24 case SkXfermode::kHardLight_Mode: return "HardLight"; in blend_mode_from_xfermode()
[all …]
/external/chromium_org/third_party/skia/src/pdf/
DSkPDFGraphicState.cpp14 static const char* blend_mode_from_xfermode(SkXfermode::Mode mode) { in blend_mode_from_xfermode()
16 case SkXfermode::kSrcOver_Mode: return "Normal"; in blend_mode_from_xfermode()
17 case SkXfermode::kMultiply_Mode: return "Multiply"; in blend_mode_from_xfermode()
18 case SkXfermode::kScreen_Mode: return "Screen"; in blend_mode_from_xfermode()
19 case SkXfermode::kOverlay_Mode: return "Overlay"; in blend_mode_from_xfermode()
20 case SkXfermode::kDarken_Mode: return "Darken"; in blend_mode_from_xfermode()
21 case SkXfermode::kLighten_Mode: return "Lighten"; in blend_mode_from_xfermode()
22 case SkXfermode::kColorDodge_Mode: return "ColorDodge"; in blend_mode_from_xfermode()
23 case SkXfermode::kColorBurn_Mode: return "ColorBurn"; in blend_mode_from_xfermode()
24 case SkXfermode::kHardLight_Mode: return "HardLight"; in blend_mode_from_xfermode()
[all …]
/external/chromium_org/third_party/skia/tests/
DXfermodeTest.cpp12 #define ILLEGAL_MODE ((SkXfermode::Mode)-1)
15 for (int mode = 0; mode <= SkXfermode::kLastMode; mode++) { in test_asMode()
16 SkXfermode* xfer = SkXfermode::Create((SkXfermode::Mode) mode); in test_asMode()
18 SkXfermode::Mode reportedMode = ILLEGAL_MODE; in test_asMode()
22 REPORTER_ASSERT(reporter, SkXfermode::AsMode(xfer, &reportedMode)); in test_asMode()
27 reportedMode = (SkXfermode::Mode) -1; in test_asMode()
32 REPORTER_ASSERT(reporter, SkXfermode::kSrcOver_Mode == mode); in test_asMode()
38 REPORTER_ASSERT(reporter, SkXfermode::IsMode(NULL, in test_IsMode()
39 SkXfermode::kSrcOver_Mode)); in test_IsMode()
41 for (int i = 0; i <= SkXfermode::kLastMode; ++i) { in test_IsMode()
[all …]
/external/skia/tests/
DXfermodeTest.cpp12 #define ILLEGAL_MODE ((SkXfermode::Mode)-1)
15 for (int mode = 0; mode <= SkXfermode::kLastMode; mode++) { in test_asMode()
16 SkXfermode* xfer = SkXfermode::Create((SkXfermode::Mode) mode); in test_asMode()
18 SkXfermode::Mode reportedMode = ILLEGAL_MODE; in test_asMode()
22 REPORTER_ASSERT(reporter, SkXfermode::AsMode(xfer, &reportedMode)); in test_asMode()
27 reportedMode = (SkXfermode::Mode) -1; in test_asMode()
32 REPORTER_ASSERT(reporter, SkXfermode::kSrcOver_Mode == mode); in test_asMode()
38 REPORTER_ASSERT(reporter, SkXfermode::IsMode(NULL, in test_IsMode()
39 SkXfermode::kSrcOver_Mode)); in test_IsMode()
41 for (int i = 0; i <= SkXfermode::kLastMode; ++i) { in test_IsMode()
[all …]
/external/skia/gm/
Dxfermodeimagefilter.cpp97 SkXfermode::Mode fMode; in onDraw()
100 { SkXfermode::kClear_Mode, "Clear" }, in onDraw()
101 { SkXfermode::kSrc_Mode, "Src" }, in onDraw()
102 { SkXfermode::kDst_Mode, "Dst" }, in onDraw()
103 { SkXfermode::kSrcOver_Mode, "SrcOver" }, in onDraw()
104 { SkXfermode::kDstOver_Mode, "DstOver" }, in onDraw()
105 { SkXfermode::kSrcIn_Mode, "SrcIn" }, in onDraw()
106 { SkXfermode::kDstIn_Mode, "DstIn" }, in onDraw()
107 { SkXfermode::kSrcOut_Mode, "SrcOut" }, in onDraw()
108 { SkXfermode::kDstOut_Mode, "DstOut" }, in onDraw()
[all …]
Dxfermodes.cpp80 void draw_mode(SkCanvas* canvas, SkXfermode* mode, SrcType srcType, in draw_mode()
99 p.setXfermodeMode(SkXfermode::kSrcOver_Mode); in draw_mode()
176 SkXfermode::Mode fMode; in onDraw()
185 { SkXfermode::kClear_Mode, "Clear", kAll_SrcType }, in onDraw()
186 { SkXfermode::kSrc_Mode, "Src", kAll_SrcType }, in onDraw()
187 { SkXfermode::kDst_Mode, "Dst", kAll_SrcType }, in onDraw()
188 { SkXfermode::kSrcOver_Mode, "SrcOver", kAll_SrcType }, in onDraw()
189 { SkXfermode::kDstOver_Mode, "DstOver", kAll_SrcType }, in onDraw()
190 { SkXfermode::kSrcIn_Mode, "SrcIn", kAll_SrcType }, in onDraw()
191 { SkXfermode::kDstIn_Mode, "DstIn", kAll_SrcType }, in onDraw()
[all …]
Dhairmodes.cpp14 SkXfermode::Mode fMode;
17 { SkXfermode::kClear_Mode, "Clear" },
18 { SkXfermode::kSrc_Mode, "Src" },
19 { SkXfermode::kDst_Mode, "Dst" },
20 { SkXfermode::kSrcOver_Mode, "SrcOver" },
21 { SkXfermode::kDstOver_Mode, "DstOver" },
22 { SkXfermode::kSrcIn_Mode, "SrcIn" },
23 { SkXfermode::kDstIn_Mode, "DstIn" },
24 { SkXfermode::kSrcOut_Mode, "SrcOut" },
25 { SkXfermode::kDstOut_Mode, "DstOut" },
[all …]
/external/chromium_org/third_party/skia/gm/
Dxfermodeimagefilter.cpp98 SkXfermode::Mode fMode; in onDraw()
101 { SkXfermode::kClear_Mode, "Clear" }, in onDraw()
102 { SkXfermode::kSrc_Mode, "Src" }, in onDraw()
103 { SkXfermode::kDst_Mode, "Dst" }, in onDraw()
104 { SkXfermode::kSrcOver_Mode, "SrcOver" }, in onDraw()
105 { SkXfermode::kDstOver_Mode, "DstOver" }, in onDraw()
106 { SkXfermode::kSrcIn_Mode, "SrcIn" }, in onDraw()
107 { SkXfermode::kDstIn_Mode, "DstIn" }, in onDraw()
108 { SkXfermode::kSrcOut_Mode, "SrcOut" }, in onDraw()
109 { SkXfermode::kDstOut_Mode, "DstOut" }, in onDraw()
[all …]
Dxfermodes.cpp80 void draw_mode(SkCanvas* canvas, SkXfermode* mode, SrcType srcType, in draw_mode()
99 p.setXfermodeMode(SkXfermode::kSrcOver_Mode); in draw_mode()
176 SkXfermode::Mode fMode; in onDraw()
185 { SkXfermode::kClear_Mode, "Clear", kAll_SrcType }, in onDraw()
186 { SkXfermode::kSrc_Mode, "Src", kAll_SrcType }, in onDraw()
187 { SkXfermode::kDst_Mode, "Dst", kAll_SrcType }, in onDraw()
188 { SkXfermode::kSrcOver_Mode, "SrcOver", kAll_SrcType }, in onDraw()
189 { SkXfermode::kDstOver_Mode, "DstOver", kAll_SrcType }, in onDraw()
190 { SkXfermode::kSrcIn_Mode, "SrcIn", kAll_SrcType }, in onDraw()
191 { SkXfermode::kDstIn_Mode, "DstIn", kAll_SrcType }, in onDraw()
[all …]
Dhairmodes.cpp14 SkXfermode::Mode fMode;
17 { SkXfermode::kClear_Mode, "Clear" },
18 { SkXfermode::kSrc_Mode, "Src" },
19 { SkXfermode::kDst_Mode, "Dst" },
20 { SkXfermode::kSrcOver_Mode, "SrcOver" },
21 { SkXfermode::kDstOver_Mode, "DstOver" },
22 { SkXfermode::kSrcIn_Mode, "SrcIn" },
23 { SkXfermode::kDstIn_Mode, "DstIn" },
24 { SkXfermode::kSrcOut_Mode, "SrcOut" },
25 { SkXfermode::kDstOut_Mode, "DstOut" },
[all …]
/external/chromium_org/third_party/skia/src/effects/
DSkColorFilters.cpp21 SkModeColorFilter(SkColor color, SkXfermode::Mode mode) { in SkModeColorFilter()
28 SkXfermode::Mode getMode() const { return fMode; } in getMode()
31 virtual bool asColorMode(SkColor* color, SkXfermode::Mode* mode) const SK_OVERRIDE { in asColorMode()
72 str->append(SkXfermode::ModeName(fMode)); in toString()
90 fMode = (SkXfermode::Mode)buffer.readUInt(); in SkModeColorFilter()
100 SkXfermode::Mode fMode;
108 fProc = SkXfermode::GetProc(fMode); in updateCache()
109 fProc16 = SkXfermode::GetProc16(fMode, fColor); in updateCache()
119 SkXfermode::Mode mode = (SkXfermode::Mode)buffer.readUInt(); in CreateProc()
139 static inline ColorExpr blend_term(SkXfermode::Coeff coeff, in blend_term()
[all …]
/external/skia/src/effects/
DSkColorFilters.cpp18 #define ILLEGAL_XFERMODE_MODE ((SkXfermode::Mode)-1)
29 SkModeColorFilter(SkColor color, SkXfermode::Mode mode) { in SkModeColorFilter()
36 SkXfermode::Mode getMode() const { return fMode; } in getMode()
40 virtual bool asColorMode(SkColor* color, SkXfermode::Mode* mode) const SK_OVERRIDE { in asColorMode()
85 str->append(SkXfermode::ModeName(fMode)); in toString()
103 fMode = (SkXfermode::Mode)buffer.readUInt(); in SkModeColorFilter()
112 SkXfermode::Mode fMode;
120 fProc = SkXfermode::GetProc(fMode); in updateCache()
121 fProc16 = SkXfermode::GetProc16(fMode, fColor); in updateCache()
142 static inline ColorExpr blend_term(SkXfermode::Coeff coeff, in blend_term()
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/graphics/skia/
DSkiaUtils.cpp44 SkXfermode::Mode m_xfermodeMode;
46 { CompositeClear, SkXfermode::kClear_Mode },
47 { CompositeCopy, SkXfermode::kSrc_Mode },
48 { CompositeSourceOver, SkXfermode::kSrcOver_Mode },
49 { CompositeSourceIn, SkXfermode::kSrcIn_Mode },
50 { CompositeSourceOut, SkXfermode::kSrcOut_Mode },
51 { CompositeSourceAtop, SkXfermode::kSrcATop_Mode },
52 { CompositeDestinationOver, SkXfermode::kDstOver_Mode },
53 { CompositeDestinationIn, SkXfermode::kDstIn_Mode },
54 { CompositeDestinationOut, SkXfermode::kDstOut_Mode },
[all …]
/external/chromium_org/cc/trees/
Dlayer_tree_host_pixeltest_blending.cc15 SkXfermode::Mode const kBlendModes[] = {
16 SkXfermode::kSrcOver_Mode, SkXfermode::kScreen_Mode,
17 SkXfermode::kOverlay_Mode, SkXfermode::kDarken_Mode,
18 SkXfermode::kLighten_Mode, SkXfermode::kColorDodge_Mode,
19 SkXfermode::kColorBurn_Mode, SkXfermode::kHardLight_Mode,
20 SkXfermode::kSoftLight_Mode, SkXfermode::kDifference_Mode,
21 SkXfermode::kExclusion_Mode, SkXfermode::kMultiply_Mode,
22 SkXfermode::kHue_Mode, SkXfermode::kSaturation_Mode,
23 SkXfermode::kColor_Mode, SkXfermode::kLuminosity_Mode};
/external/chromium_org/third_party/skia/samplecode/
DSampleAARectModes.cpp16 SkXfermode::Mode fMode;
19 { SkXfermode::kClear_Mode, "Clear" },
20 { SkXfermode::kSrc_Mode, "Src" },
21 { SkXfermode::kDst_Mode, "Dst" },
22 { SkXfermode::kSrcOver_Mode, "SrcOver" },
23 { SkXfermode::kDstOver_Mode, "DstOver" },
24 { SkXfermode::kSrcIn_Mode, "SrcIn" },
25 { SkXfermode::kDstIn_Mode, "DstIn" },
26 { SkXfermode::kSrcOut_Mode, "SrcOut" },
27 { SkXfermode::kDstOut_Mode, "DstOut" },
[all …]
DSampleHairModes.cpp16 SkXfermode::Mode fMode;
19 { SkXfermode::kClear_Mode, "Clear" },
20 { SkXfermode::kSrc_Mode, "Src" },
21 { SkXfermode::kDst_Mode, "Dst" },
22 { SkXfermode::kSrcOver_Mode, "SrcOver" },
23 { SkXfermode::kDstOver_Mode, "DstOver" },
24 { SkXfermode::kSrcIn_Mode, "SrcIn" },
25 { SkXfermode::kDstIn_Mode, "DstIn" },
26 { SkXfermode::kSrcOut_Mode, "SrcOut" },
27 { SkXfermode::kDstOut_Mode, "DstOut" },
[all …]
/external/skia/samplecode/
DSampleAARectModes.cpp16 SkXfermode::Mode fMode;
19 { SkXfermode::kClear_Mode, "Clear" },
20 { SkXfermode::kSrc_Mode, "Src" },
21 { SkXfermode::kDst_Mode, "Dst" },
22 { SkXfermode::kSrcOver_Mode, "SrcOver" },
23 { SkXfermode::kDstOver_Mode, "DstOver" },
24 { SkXfermode::kSrcIn_Mode, "SrcIn" },
25 { SkXfermode::kDstIn_Mode, "DstIn" },
26 { SkXfermode::kSrcOut_Mode, "SrcOut" },
27 { SkXfermode::kDstOut_Mode, "DstOut" },
[all …]
DSampleHairModes.cpp16 SkXfermode::Mode fMode;
19 { SkXfermode::kClear_Mode, "Clear" },
20 { SkXfermode::kSrc_Mode, "Src" },
21 { SkXfermode::kDst_Mode, "Dst" },
22 { SkXfermode::kSrcOver_Mode, "SrcOver" },
23 { SkXfermode::kDstOver_Mode, "DstOver" },
24 { SkXfermode::kSrcIn_Mode, "SrcIn" },
25 { SkXfermode::kDstIn_Mode, "DstIn" },
26 { SkXfermode::kSrcOut_Mode, "SrcOut" },
27 { SkXfermode::kDstOut_Mode, "DstOut" },
[all …]
/external/chromium_org/third_party/skia/src/core/
DSkPaintPriv.cpp24 SkXfermode::Coeff srcCoeff, dstCoeff; in isPaintOpaque()
25 if (SkXfermode::AsCoeff(paint->getXfermode(), &srcCoeff, &dstCoeff)){ in isPaintOpaque()
26 if (SkXfermode::kDA_Coeff == srcCoeff || SkXfermode::kDC_Coeff == srcCoeff || in isPaintOpaque()
27 SkXfermode::kIDA_Coeff == srcCoeff || SkXfermode::kIDC_Coeff == srcCoeff) { in isPaintOpaque()
31 case SkXfermode::kZero_Coeff: in isPaintOpaque()
33 case SkXfermode::kISA_Coeff: in isPaintOpaque()
50 case SkXfermode::kSA_Coeff: in isPaintOpaque()
60 case SkXfermode::kSC_Coeff: in isPaintOpaque()
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
DRegionTracker.cpp72 SkXfermode* xfermode = paint.getXfermode(); in xfermodeIsOpaque()
75 SkXfermode::Mode mode; in xfermodeIsOpaque()
80 case SkXfermode::kSrc_Mode: // source in xfermodeIsOpaque()
81 case SkXfermode::kSrcOver_Mode: // source + dest - source*dest in xfermodeIsOpaque()
82 case SkXfermode::kDstOver_Mode: // source + dest - source*dest in xfermodeIsOpaque()
83 case SkXfermode::kDstATop_Mode: // source in xfermodeIsOpaque()
84 case SkXfermode::kPlus_Mode: // source+dest in xfermodeIsOpaque()
87 case SkXfermode::kClear_Mode: // 0 in xfermodeIsOpaque()
88 case SkXfermode::kDst_Mode: // dest in xfermodeIsOpaque()
89 case SkXfermode::kSrcIn_Mode: // source * dest in xfermodeIsOpaque()
[all …]
/external/skia/src/core/
DSkPaintPriv.cpp24 SkXfermode::Coeff srcCoeff, dstCoeff; in isPaintOpaque()
25 if (SkXfermode::AsCoeff(paint->getXfermode(), &srcCoeff, &dstCoeff)){ in isPaintOpaque()
26 if (SkXfermode::kDA_Coeff == srcCoeff || SkXfermode::kDC_Coeff == srcCoeff || in isPaintOpaque()
27 SkXfermode::kIDA_Coeff == srcCoeff || SkXfermode::kIDC_Coeff == srcCoeff) { in isPaintOpaque()
31 case SkXfermode::kZero_Coeff: in isPaintOpaque()
33 case SkXfermode::kISA_Coeff: in isPaintOpaque()
50 case SkXfermode::kSA_Coeff: in isPaintOpaque()
60 case SkXfermode::kSC_Coeff: in isPaintOpaque()

12345678910>>...20