Home
last modified time | relevance | path

Searched refs:isOpaque (Results 1 - 25 of 102) sorted by relevance

12345

/third_party/skia/tests/
H A DShaderOpacityTest.cpp26 REPORTER_ASSERT(reporter, !shader->isOpaque()); in test_bitmap()
34 REPORTER_ASSERT(reporter, !shader->isOpaque()); in test_bitmap()
40 REPORTER_ASSERT(reporter, shader->isOpaque()); in test_bitmap()
46 REPORTER_ASSERT(reporter, !shader->isOpaque()); in test_bitmap()
63 REPORTER_ASSERT(reporter, grad->isOpaque()); in test_gradient()
70 REPORTER_ASSERT(reporter, !grad->isOpaque()); in test_gradient()
77 REPORTER_ASSERT(reporter, !grad->isOpaque()); in test_gradient()
84 REPORTER_ASSERT(reporter, !grad->isOpaque()); in test_gradient()
89 REPORTER_ASSERT(reporter, !colorShader1.isOpaque()); in test_color()
91 REPORTER_ASSERT(reporter, colorShader2.isOpaque()); in test_color()
[all...]
/third_party/skia/src/images/
H A DSkPngEncoder.cpp118 pngColorType = srcInfo.isOpaque() ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA; in setHeader()
125 SkASSERT(srcInfo.isOpaque()); in setHeader()
133 pngColorType = srcInfo.isOpaque() ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA; in setHeader()
134 fPngBytesPerPixel = srcInfo.isOpaque() ? 3 : 4; in setHeader()
142 SkASSERT(srcInfo.isOpaque()); in setHeader()
153 pngColorType = srcInfo.isOpaque() ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA; in setHeader()
154 fPngBytesPerPixel = srcInfo.isOpaque() ? 3 : 4; in setHeader()
162 SkASSERT(srcInfo.isOpaque()); in setHeader()
176 pngColorType = srcInfo.isOpaque() ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA; in setHeader()
/third_party/skia/src/shaders/
H A DSkColorShader.h26 bool isOpaque() const override;
58 bool isOpaque() const override { return fColor.isOpaque(); }
H A DSkColorFilterShader.cpp42 bool SkColorFilterShader::isOpaque() const { in isOpaque() function in SkColorFilterShader
43 return fShader->isOpaque() && fAlpha == 1.0f && as_CFB(fFilter)->isAlphaUnchanged(); in isOpaque()
59 if (!fFilter->appendStages(rec, fShader->isOpaque())) { in onAppendStages()
H A DSkColorFilterShader.h25 bool isOpaque() const override;
/third_party/skia/src/core/
H A DSkBlitter_RGB565.cpp92 bool isOpaque = SkToBool(shaderContext->getFlags() & SkShaderBase::kOpaqueAlpha_Flag); in SkRGB565_Shader_Blitter() local
94 if (paint.asBlendMode() == SkBlendMode::kSrc || isOpaque) { in SkRGB565_Shader_Blitter()
98 fBlend = isOpaque ? D16_S32X_src : D16_S32A_srcover; in SkRGB565_Shader_Blitter()
99 fBlendCoverage = isOpaque ? D16_S32X_src_coverage : D16_S32A_srcover_coverage; in SkRGB565_Shader_Blitter()
H A DSkVMBlitter.cpp70 bool isOpaque() const override { return fSprite.isOpaque(); }
96 bool isOpaque() const override { return fShader->isOpaque(); }
176 explicit PaintColorShader(bool isOpaque) : fIsOpaque(isOpaque) {} in PaintColorShader()
184 bool isOpaque() const override { return fIsOpaque; }
240 shader = sk_make_sp<PaintColorShader>(paint.getColor4f().isOpaque()); in EffectiveParams()
263 // might appear that shader->isOpaque() is a property of the shader's in EffectiveParams()
267 // forces opacity for any shader subclass that claims isOpaque(), s in EffectiveParams()
[all...]
H A DSkDraw_vertices.cpp75 SkTriColorShader(bool isOpaque, bool usePersp) : fIsOpaque(isOpaque), fUsePersp(usePersp) {} in SkTriColorShader() argument
102 bool isOpaque() const override { return fIsOpaque; }
401 bool isOpaque = shader->isOpaque(); in drawFixedVertices()
403 isOpaque = false; // unless we want to walk all the colors, and see if they are in drawFixedVertices()
415 fDst, shaderPaint, pipeline, isOpaque, outerAlloc, fRC->clipShader()); in drawFixedVertices()
H A DSkDraw_atlas.cpp148 bool isOpaque = !colors && atlasShader->isOpaque(); in drawAtlas()
152 isOpaque = false; in drawAtlas()
156 fDst, p, pipeline, isOpaque, &alloc, fRC->clipShader()); in drawAtlas()
H A DSkBlitter_Sprite.cpp76 return mode == SkBlendMode::kSrc || (mode == SkBlendMode::kSrcOver && src.isOpaque()); in Supports()
135 auto srcAT = fSource.isOpaque() ? kOpaque_SkAlphaType
145 bool is_opaque = fSource.isOpaque() && fPaintColor.fA == 1.0f;
H A DSkSpriteBlitter_RGB565.cpp37 fUseSrcOver = (mode == SkBlendMode::kSrcOver) && !src.isOpaque(); in Sprite_D16_S32()
126 fUseSrcOver = (mode == SkBlendMode::kSrcOver) && !src.isOpaque(); in Sprite_D8_S32()
/third_party/skia/src/pdf/
H A DSkPDFBitmap.cpp140 bool isOpaque, in do_deflated_image()
143 if (!isOpaque) { in do_deflated_image()
192 if (!isOpaque) { in do_deflated_image()
239 SkAlphaType at = bm.isOpaque() ? kOpaque_SkAlphaType : kUnpremul_SkAlphaType; in to_pixels()
265 bool isOpaque = pm.isOpaque() || pm.computeIsOpaque(); in serialize_image() local
266 if (encodingQuality <= 100 && isOpaque) { in serialize_image()
273 do_deflated_image(pm, doc, isOpaque, ref); in serialize_image()
138 do_deflated_image(const SkPixmap& pm, SkPDFDocument* doc, bool isOpaque, SkPDFIndirectReference ref) do_deflated_image() argument
/third_party/skia/docs/examples/
H A DBitmap_isOpaque.cpp14 SkDebugf("isOpaque: %s\n", bitmap.isOpaque() ? "true" : "false"); in REG_FIDDLE()
16 SkDebugf("isOpaque: %s\n", bitmap.isOpaque() ? "true" : "false"); in REG_FIDDLE()
H A DPixmap_isOpaque.cpp15 SkDebugf("isOpaque: %s\n", pixmap.isOpaque() ? "true" : "false"); in REG_FIDDLE()
17 SkDebugf("isOpaque: %s\n", pixmap.isOpaque() ? "true" : "false"); in REG_FIDDLE()
H A DImageInfo_isOpaque.cpp15 SkDebugf("isOpaque: %s\n", imageInfo.isOpaque() ? "true" : "false"); in REG_FIDDLE()
17 SkDebugf("isOpaque: %s\n", imageInfo.isOpaque() ? "true" : "false"); in REG_FIDDLE()
H A DImage_isOpaque.cpp10 SkDebugf("isOpaque = %s\n", image->isOpaque() ? "true" : "false"); in REG_FIDDLE()
/third_party/skia/src/gpu/
H A DGrProcessorAnalysis.cpp18 fIsOpaque = input.isOpaque(); in GrColorFragmentProcessorAnalysis()
28 fIsOpaque = fLastKnownOutputColor.isOpaque(); in GrColorFragmentProcessorAnalysis()
H A DGrProcessorAnalysis.h31 if (color.isOpaque()) { in setToConstant()
44 bool isOpaque() const { return SkToBool(kIsOpaque_Flag & fFlags); } in isOpaque() function in GrProcessorAnalysisColor
101 bool isOpaque() const { return fIsOpaque; } in isOpaque() function in GrColorFragmentProcessorAnalysis
H A DGrPaint.cpp48 if (kSrc == fXPFactory || (!fXPFactory && fColor.isOpaque())) { in isConstantBlendedColor()
/third_party/skia/src/sksl/ir/
H A DSkSLVarDeclarations.cpp49 if (baseType->componentType().isOpaque() && storage != Variable::Storage::kGlobal) { in ErrorCheck()
104 if (var.type().isOpaque()) { in ErrorCheckAndCoerce()
141 if (var.type().isOpaque()) { in ErrorCheckAndCoerce()
218 SkASSERT(!(var->storage() == Variable::Storage::kInterfaceBlock && var->type().isOpaque())); in Make()
222 SkASSERT(!(value && var->type().isOpaque())); in Make()
H A DSkSLTernaryExpression.cpp40 if (trueType->componentType().isOpaque()) { in Convert()
66 SkASSERT(!ifTrue->type().componentType().isOpaque()); in Make()
/third_party/skia/src/gpu/effects/
H A DGrPorterDuffXferProcessor.cpp359 static BlendFormula get_blend_formula(bool isOpaque,
363 return gBlendTable[isOpaque][hasCoverage][(int)xfermode];
713 // See comment in MakeSrcOverXferProcessor about color.isOpaque here
715 SkBlendMode::kSrcOver == fBlendMode && color.isConstant() && /*color.isOpaque() &&*/
726 if (fBlendMode == SkBlendMode::kSrcOver && color.isOpaque() &&
732 return get_blend_formula(color.isOpaque(), GrProcessorAnalysisCoverage::kNone != coverage,
739 (isLCD && (SkBlendMode::kSrcOver != fBlendMode /*|| !color.isOpaque()*/)) ||
757 return get_blend_formula(color.isOpaque(), hasCoverage, mode);
765 // See comment in MakeSrcOverXferProcessor about color.isOpaque here
766 if (SkBlendMode::kSrcOver == mode && color.isConstant() && /*color.isOpaque()
[all...]
/third_party/skia/include/core/
H A DSkImageInfo.h211 bool isOpaque() const { in isOpaque() function in SkColorInfo
504 bool isOpaque() const { return fColorInfo.isOpaque(); } in isOpaque() function
H A DSkBitmap.h305 bool isOpaque() const { in isOpaque() function in SkBitmap
531 pixel memory. If isOpaque is true, sets SkImageInfo to kOpaque_SkAlphaType;
544 @param isOpaque true if pixels do not have transparency
547 bool SK_WARN_UNUSED_RESULT tryAllocN32Pixels(int width, int height, bool isOpaque = false);
550 pixel memory. If isOpaque is true, sets SkImageInfo to kOpaque_SkAlphaType;
562 @param isOpaque true if pixels do not have transparency
566 void allocN32Pixels(int width, int height, bool isOpaque = false);
H A DSkPixmap.h191 bool isOpaque() const { return fInfo.isOpaque(); } in isOpaque() function in SkPixmap

Completed in 14 milliseconds

12345