Home
last modified time | relevance | path

Searched refs:isOpaque (Results 1 – 25 of 230) sorted by relevance

12345678910

/external/skia/tests/
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 …]
/external/skqp/tests/
DShaderOpacityTest.cpp24 REPORTER_ASSERT(reporter, !shader->isOpaque()); in test_bitmap()
33 REPORTER_ASSERT(reporter, !shader->isOpaque()); in test_bitmap()
40 REPORTER_ASSERT(reporter, shader->isOpaque()); in test_bitmap()
47 REPORTER_ASSERT(reporter, !shader->isOpaque()); in test_bitmap()
64 REPORTER_ASSERT(reporter, grad->isOpaque()); in test_gradient()
71 REPORTER_ASSERT(reporter, !grad->isOpaque()); in test_gradient()
78 REPORTER_ASSERT(reporter, !grad->isOpaque()); in test_gradient()
85 REPORTER_ASSERT(reporter, !grad->isOpaque()); in test_gradient()
90 REPORTER_ASSERT(reporter, !colorShader1.isOpaque()); in test_color()
92 REPORTER_ASSERT(reporter, colorShader2.isOpaque()); in test_color()
[all …]
/external/skia/modules/canvaskit/
Drt_shader.js18 CanvasKit.RuntimeEffect.prototype.makeShader = function(floats, isOpaque, localMatrix) { argument
24 return this._makeShader(fptr, floats.length * 4, !!isOpaque, localMatrixPtr);
28 …CanvasKit.RuntimeEffect.prototype.makeShaderWithChildren = function(floats, isOpaque, childrenShad… argument
41 return this._makeShaderWithChildren(fptr, floats.length * 4, !!isOpaque, childrenPointers,
/external/skqp/src/images/
DSkPngEncoder.cpp116 pngColorType = srcInfo.isOpaque() ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA; in setHeader()
123 SkASSERT(srcInfo.isOpaque()); in setHeader()
131 pngColorType = srcInfo.isOpaque() ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA; in setHeader()
132 fPngBytesPerPixel = srcInfo.isOpaque() ? 3 : 4; in setHeader()
140 SkASSERT(srcInfo.isOpaque()); in setHeader()
151 pngColorType = srcInfo.isOpaque() ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA; in setHeader()
152 fPngBytesPerPixel = srcInfo.isOpaque() ? 3 : 4; in setHeader()
160 SkASSERT(srcInfo.isOpaque()); in setHeader()
174 pngColorType = srcInfo.isOpaque() ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA; in setHeader()
DSkWebpEncoder.cpp69 if (!info.isOpaque()) { in choose_proc()
120 bpp = pixmap.isOpaque() ? 3 : 4; in Encode()
178 if (pixmap.isOpaque()) { in Encode()
/external/skqp/src/pdf/
DSkPDFBitmap.cpp139 bool isOpaque, in do_deflated_image() argument
142 if (!isOpaque) { in do_deflated_image()
191 if (!isOpaque) { in do_deflated_image()
238 SkAlphaType at = bm.isOpaque() ? kOpaque_SkAlphaType : kUnpremul_SkAlphaType; in to_pixels()
262 bool isOpaque = pm.isOpaque() || pm.computeIsOpaque(); in serialize_image() local
263 if (encodingQuality <= 100 && isOpaque) { in serialize_image()
269 do_deflated_image(pm, doc, isOpaque, ref); in serialize_image()
/external/skia/src/images/
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()
/external/skqp/src/shaders/
DSkColorShader.h27 bool isOpaque() const override;
59 bool isOpaque() const override { return fColor.isOpaque(); } in isOpaque() function
/external/skia/src/pdf/
DSkPDFBitmap.cpp140 bool isOpaque, in do_deflated_image() argument
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()
264 bool isOpaque = pm.isOpaque() || pm.computeIsOpaque(); in serialize_image() local
265 if (encodingQuality <= 100 && isOpaque) { in serialize_image()
271 do_deflated_image(pm, doc, isOpaque, ref); in serialize_image()
/external/skia/src/shaders/
DSkColorShader.h26 bool isOpaque() const override;
58 bool isOpaque() const override { return fColor.isOpaque(); } in isOpaque() function
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()
/external/skqp/src/core/
DSkBlitter_RGB565.cpp93 bool isOpaque = SkToBool(shaderContext->getFlags() & SkShaderBase::kOpaqueAlpha_Flag); in SkRGB565_Shader_Blitter() local
95 if (paint.getBlendMode() == SkBlendMode::kSrc || isOpaque) { in SkRGB565_Shader_Blitter()
99 fBlend = isOpaque ? D16_S32X_src : D16_S32A_srcover; in SkRGB565_Shader_Blitter()
100 fBlendCoverage = isOpaque ? D16_S32X_src_coverage : D16_S32A_srcover_coverage; in SkRGB565_Shader_Blitter()
/external/skia/src/core/
DSkBlitter_RGB565.cpp92 bool isOpaque = SkToBool(shaderContext->getFlags() & SkShaderBase::kOpaqueAlpha_Flag); in SkRGB565_Shader_Blitter() local
94 if (paint.getBlendMode() == 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()
DSkDraw_atlas.cpp99 bool isOpaque = !colors && atlasShader->isOpaque(); in drawAtlas() local
102 isOpaque = false; in drawAtlas()
105 if (auto blitter = SkCreateRasterPipelineBlitter(fDst, p, pipeline, isOpaque, &alloc, in drawAtlas()
DSkDraw_vertices.cpp130 SkTriColorShader(bool isOpaque, bool usePersp) : fIsOpaque(isOpaque), fUsePersp(usePersp) {} in SkTriColorShader() argument
160 bool isOpaque() const override { return fIsOpaque; } in isOpaque() function in SkTriColorShader
360 bool isOpaque = shader->isOpaque(); in draw_fixed_vertices() local
362 isOpaque = false; // unless we want to walk all the colors, and see if they are in draw_fixed_vertices()
374 if (auto blitter = SkCreateRasterPipelineBlitter(fDst, p, pipeline, isOpaque, outerAlloc, in draw_fixed_vertices()
DSkVMBlitter.cpp236 if (params.dst.isOpaque()) { in build_program()
298 if (params.dst.isOpaque()) { in build_program()
347 bool isOpaque() const override { return fSprite.isOpaque(); } in isOpaque() function
373 bool isOpaque() const override { return fShader->isOpaque(); } in isOpaque() function
452 explicit PaintColorShader(bool isOpaque) : fIsOpaque(isOpaque) {} in PaintColorShader()
460 bool isOpaque() const override { return fIsOpaque; } in isOpaque() function
493 shader = sk_make_sp<PaintColorShader>(paint.getColor4f().isOpaque()); in effective_params()
519 if (blendMode == SkBlendMode::kSrcOver && shader->isOpaque()) { in effective_params()
/external/skqp/src/gpu/
DGrProcessorAnalysis.h31 if (color.isOpaque()) { in setToConstant()
44 bool isOpaque() const { return SkToBool(kIsOpaque_Flag & fFlags); } in isOpaque() function
101 bool isOpaque() const { return fIsOpaque; } in isOpaque() function
DGrProcessorAnalysis.cpp17 fIsOpaque = input.isOpaque(); in GrColorFragmentProcessorAnalysis()
30 fIsOpaque = fLastKnownOutputColor.isOpaque(); in GrColorFragmentProcessorAnalysis()
/external/llvm-project/mlir/lib/Dialect/LLVMIR/IR/
DTypeDetail.h85 bool isOpaque() const { in isOpaque() function
185 bool isOpaque() const { in isOpaque() function
217 key.isOpaque()); in LLVMStructTypeStorage()
219 key.isOpaque()); in LLVMStructTypeStorage()
240 return success(!isOpaque() && body == getIdentifiedStructBody() && in mutate()
277 return Key(getIdentifier(), isOpaque()); in getKey()
/external/skia/src/gpu/
DGrProcessorAnalysis.h31 if (color.isOpaque()) { in setToConstant()
44 bool isOpaque() const { return SkToBool(kIsOpaque_Flag & fFlags); } in isOpaque() function
101 bool isOpaque() const { return fIsOpaque; } in isOpaque() function
DGrProcessorAnalysis.cpp17 fIsOpaque = input.isOpaque(); in GrColorFragmentProcessorAnalysis()
30 fIsOpaque = fLastKnownOutputColor.isOpaque(); in GrColorFragmentProcessorAnalysis()
/external/skia/docs/examples/
DBitmap_isOpaque.cpp14 SkDebugf("isOpaque: %s\n", bitmap.isOpaque() ? "true" : "false"); in draw()
16 SkDebugf("isOpaque: %s\n", bitmap.isOpaque() ? "true" : "false"); in draw()
DImageInfo_isOpaque.cpp15 SkDebugf("isOpaque: %s\n", imageInfo.isOpaque() ? "true" : "false"); in draw()
17 SkDebugf("isOpaque: %s\n", imageInfo.isOpaque() ? "true" : "false"); in draw()
DPixmap_isOpaque.cpp15 SkDebugf("isOpaque: %s\n", pixmap.isOpaque() ? "true" : "false"); in draw()
17 SkDebugf("isOpaque: %s\n", pixmap.isOpaque() ? "true" : "false"); in draw()
/external/skqp/include/core/
DSkBitmap.h309 bool isOpaque() const { in isOpaque() function
571 bool SK_WARN_UNUSED_RESULT tryAllocN32Pixels(int width, int height, bool isOpaque = false) {
573 isOpaque ? kOpaque_SkAlphaType : kPremul_SkAlphaType);
592 void allocN32Pixels(int width, int height, bool isOpaque = false) {
594 isOpaque ? kOpaque_SkAlphaType : kPremul_SkAlphaType);

12345678910