/external/webkit/WebCore/platform/graphics/skia/ |
PatternSkia.cpp | 85 SkBitmap bm2; local 86 bm2.setConfig(bm->config(), bm->width() + expandW, bm->height() + expandH); 87 bm2.allocPixels(); 88 bm2.eraseARGB(0x00, 0x00, 0x00, 0x00); 89 SkCanvas canvas(bm2); 91 m_pattern = SkShader::CreateBitmapShader(bm2, tileModeX, tileModeY);
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
BitmapTest.java | 30 Bitmap bm2 = Bitmap.createBitmap(100, 200, Bitmap.Config.RGB_565); local 34 assertTrue("mutability", bm2.isMutable()); 38 assertEquals("width", 100, bm2.getWidth()); 42 assertEquals("rowbytes", 200, bm2.getRowBytes()); 46 assertEquals("height", 200, bm2.getHeight()); 50 assertFalse("hasAlpha", bm2.hasAlpha()); 54 assertTrue("getConfig", bm2.getConfig() == Bitmap.Config.RGB_565); 61 Bitmap bm2 = Bitmap.createBitmap(new int[100 * 200], 100, 200, local 65 assertFalse("mutability", bm2.isMutable()); 70 bm2.eraseColor(0) 129 Bitmap bm2 = Bitmap.createBitmap(10, 10, config); local 155 Bitmap bm2 = Bitmap.createBitmap(10, 10, config); local 189 Bitmap bm2 = Bitmap.createBitmap(16, 16, config); local [all...] |
/external/skia/bench/ |
benchmain.cpp | 33 static bool equal(const SkBitmap& bm1, const SkBitmap& bm2) { 34 if (bm1.width() != bm2.width() || 35 bm1.height() != bm2.height() || 36 bm1.config() != bm2.config()) { 42 if (memcmp(bm1.getAddr(0, y), bm2.getAddr(0, y), pixelBytes)) { 147 SkBitmap bm2; local 149 bm2.setConfig(bm.config(), bm.width(), bm.height()); 150 bm2.allocPixels(); 151 erase(bm2); 153 SkCanvas canvas(bm2); [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapTest.java | 468 Bitmap bm2 = Bitmap.createBitmap(100, 200, Bitmap.Config.RGB_565); local 473 assertEquals(Bitmap.Config.RGB_565, bm2.getConfig()); 541 Bitmap bm2 = Bitmap.createBitmap(100, 200, Bitmap.Config.RGB_565); local 546 assertEquals(200, bm2.getRowBytes());
|