HomeSort by relevance Sort by last modified time
    Searched defs:premul (Results 1 - 7 of 7) sorted by null

  /external/skia/src/core/
SkColor.cpp 179 SkPM4f SkColor4f::premul() const { function in class:SkColor4f
  /external/skia/include/gpu/
GrColor.h 258 GrColor4f premul() const { function in struct:GrColor4f
  /frameworks/base/core/tests/coretests/src/android/graphics/
BitmapTest.java 174 int premul = Math.round(alpha * comp / 255.f); local
175 int unpre = Math.round(255.0f * premul / alpha);
  /external/skia/tests/
WritePixelsTest.cpp 135 static uint32_t premul(uint32_t color) { function
149 color = premul(color);
229 "Write performed premul: %d", cx, cy, bmpPMColor, canvasPixel, mul);
  /cts/tests/tests/graphics/src/android/graphics/cts/
BitmapFactoryTest.java 547 Bitmap premul = BitmapFactory.decodeResource(mRes, R.drawable.premul_data, options); local
550 assertEquals(premul.getConfig(), Bitmap.Config.ARGB_8888);
552 assertTrue(premul.getHeight() == 1 && unpremul.getHeight() == 1);
553 assertTrue(premul.getWidth() == unpremul.getWidth() &&
555 premul.getWidth() == DEPREMUL_COLORS.length);
557 // verify pixel data - unpremul should have raw values, premul will have rounding errors
558 for (int i = 0; i < premul.getWidth(); i++) {
559 assertEquals(premul.getPixel(i, 0), DEPREMUL_COLORS[i]);
    [all...]
  /external/skia/src/gpu/
GrContext.cpp 305 // We only allow premul <-> unpremul conversions for some formats
337 // The src is unpremul but the dst is premul -> premul the src before or as part of the write
338 const bool premul = SkToBool(kUnpremul_PixelOpsFlag & pixelOpsFlags); local
339 if (!valid_pixel_conversion(srcConfig, dstSurface->config(), premul)) {
344 // without any color spaces attached, and the caller wants us to premul.
346 premul &&
350 // Are we going to try to premul as part of a draw? For the non-legacy case, we always allow
352 bool premulOnGpu = premul &&
386 // temp buffer for doing sw premul conversion, if needed
    [all...]
  /external/skia/src/utils/
SkPatchUtils.cpp 240 SkRGBAf premul() const { function in struct:SkRGBAf
266 dst[i] = dst[i].premul();
342 * 2. Since drawing the vertices wants premul, shoudl we extend SkVertices to store
343 * premul colors (as floats, w/ a colorspace)?

Completed in 338 milliseconds