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

  /cts/tests/tests/graphics/src/android/graphics/cts/
BitmapFactoryTest.java 507 Bitmap premul = BitmapFactory.decodeResource(mRes, R.drawable.premul_data, options); local
510 assertEquals(premul.getConfig(), Bitmap.Config.ARGB_8888);
512 assertTrue(premul.getHeight() == 1 && unpremul.getHeight() == 1);
513 assertTrue(premul.getWidth() == unpremul.getWidth() &&
515 premul.getWidth() == DEPREMUL_COLORS.length);
517 // verify pixel data - unpremul should have raw values, premul will have rounding errors
518 for (int i = 0; i < premul.getWidth(); i++) {
519 assertEquals(premul.getPixel(i, 0), DEPREMUL_COLORS[i]);
  /external/chromium_org/third_party/skia/tests/
WritePixelsTest.cpp 138 static uint32_t premul(uint32_t color) { function
152 color = premul(color);

Completed in 540 milliseconds