/external/chromium_org/third_party/skia/samplecode/ |
SampleTinyBitmap.cpp | 24 SkBitmap bm; local 25 bm.allocPixels(SkImageInfo::Make(1, 1, kIndex_8_SkColorType, 30 bm.lockPixels(); 31 for (int y = 0; y < bm.height(); y++) { 32 uint8_t* p = bm.getAddr8(0, y); 33 for (int x = 0; x < bm.width(); x++) { 37 bm.unlockPixels(); 38 return bm; 59 static void setBitmapOpaque(SkBitmap* bm, bool isOpaque) { 60 SkAutoLockPixels alp(*bm); // needed for ctabl [all...] |
/external/chromium_org/third_party/skia/src/views/ |
SkProgressView.cpp | 111 SkBitmap bm; local 113 return SkImageDecoder::DecodeFile(file, &bm) ? 114 SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode) :
|
/external/chromium_org/third_party/skia/tests/ |
AnnotationTest.cpp | 28 SkBitmap bm; local 29 bm.allocN32Pixels(10, 10); 30 bm.eraseColor(SK_ColorTRANSPARENT); 32 SkCanvas canvas(bm); 37 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0)); 39 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0));
|
BitmapGetColorTest.cpp | 38 SkBitmap bm; local 40 bm.installPixels(info, storage, info.minRowBytes()); 42 bm.eraseColor(initColor); 43 bm.eraseArea(area, gRec[i].fInColor); 45 SkColor c = bm.getColor(1, 1);
|
BitmapHeapTest.cpp | 35 SkBitmap bm; local 36 bm.allocN32Pixels(2, 2); 37 bm.eraseColor(SK_ColorRED); 38 uint32_t* pixel = bm.getAddr32(1,0); 41 SkShader* bitmapShader = SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode,
|
ClipCubicTest.cpp | 18 SkBitmap bm; local 19 bm.allocN32Pixels(64919, 1); 20 SkCanvas canvas(bm);
|
GifTest.cpp | 54 SkBitmap bm; local 56 data, size, &bm); 58 REPORTER_ASSERT(r, bm.width() == 1); 59 REPORTER_ASSERT(r, bm.height() == 1); 60 REPORTER_ASSERT(r, !(bm.empty())); 61 if (!(bm.empty())) { 62 REPORTER_ASSERT(r, bm.getColor(0, 0) == 0x00000000); 66 SkBitmap bm; local 68 data, size, &bm); 70 REPORTER_ASSERT(r, bm.width() == 3) 88 SkBitmap bm; local 121 SkBitmap bm; local [all...] |
/external/skia/bench/ |
SkipZeroesBench.cpp | 85 SkBitmap bm; variable 87 SkDEBUGCODE(bool success =) fDecoder->decode(&fStream, &bm,
|
/external/skia/gm/ |
bitmapmatrix.cpp | 38 SkBitmap bm; variable 39 this->setupBitmap(&bm); 47 canvas->drawBitmapMatrix(bm, matrix, &paint); 50 canvas->translate(SkIntToScalar(bm.width() + 5), 0); 52 canvas->drawBitmapMatrix(bm, matrix, &paint); 55 canvas->translate(SkIntToScalar(bm.width()*2 + 5), 0); 57 matrix.setRotate(SkIntToScalar(45), SkIntToScalar(bm.width() / 2), 58 SkIntToScalar(bm.height() / 2)); 61 canvas->drawBitmapMatrix(bm, matrix, &paint); 65 canvas->translate(SkIntToScalar(bm.width() + 15), 0) [all...] |
bitmaprecttest.cpp | 11 static void make_bm(SkBitmap* bm) { 12 bm->allocN32Pixels(60, 60); 13 bm->eraseColor(0); 15 SkCanvas canvas(*bm); 37 SkBitmap bm; local 38 make_bm(&bm); 40 canvas->drawBitmap(bm, 150, 45, NULL); 45 canvas->drawBitmapRectToRect(bm, NULL, SkRect::MakeXYWH(100, 100, 128, 128), NULL); 49 canvas->drawBitmap(bm, -310, 45, NULL);
|
copyTo4444.cpp | 34 SkBitmap bm, bm4444; local 37 if (!SkImageDecoder::DecodeFile(filename.c_str(), &bm, kN32_SkColorType, 43 canvas->drawBitmap(bm, 0, 0); 44 SkAssertResult(bm.copyTo(&bm4444, kARGB_4444_SkColorType)); 45 canvas->drawBitmap(bm4444, SkIntToScalar(bm.width()), 0);
|
spritebitmap.cpp | 12 static void make_bm(SkBitmap* bm) { 13 bm->allocN32Pixels(100, 100); 14 bm->eraseColor(SK_ColorBLUE); 16 SkCanvas canvas(*bm); 23 static void draw_2_bitmaps(SkCanvas* canvas, const SkBitmap& bm, bool doClip, 30 SkIntToScalar(bm.width()), 31 SkIntToScalar(bm.height())); 40 canvas->drawSprite(bm, dx, dy, &paint); 45 canvas->translate(SkIntToScalar(bm.width() + 20), 0); 51 canvas->drawBitmap(bm, SkIntToScalar(dx), SkIntToScalar(dy), &paint) 78 SkBitmap bm; local [all...] |
stroketext.cpp | 13 SkBitmap bm; local 14 bm.setInfo(SkImageInfo::MakeN32Premul(30, 30)); 17 SkCanvas c(bm);
|
tinybitmap.cpp | 20 SkBitmap bm; local 21 bm.allocPixels(SkImageInfo::Make(1, 1, kIndex_8_SkColorType, 26 bm.lockPixels(); 27 *bm.getAddr8(0, 0) = 0; 28 bm.unlockPixels(); 29 return bm; 46 SkBitmap bm = make_bitmap(); local 48 SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode,
|
/external/skia/samplecode/ |
SampleLines.cpp | 66 SkBitmap bm; local 67 SkImageDecoder::DecodeFile("/kill.gif", &bm); 68 canvas->drawBitmap(bm, 0, 0, NULL);
|
SampleRepeatTile.cpp | 14 static void make_bitmap(SkBitmap* bm) { 17 bm->allocN32Pixels(W, H); 20 SkCanvas canvas(*bm); 37 SkBitmap bm; local 38 make_bitmap(&bm); 40 SkShader* shader = SkShader::CreateBitmapShader(bm, tm, tm);
|
SampleTextureDomain.cpp | 15 SkBitmap bm; local 16 bm.allocN32Pixels(5, 5); 18 for (int y = 0; y < bm.height(); y++) { 19 uint32_t* p = bm.getAddr32(0, y); 20 for (int x = 0; x < bm.width(); x++) { 24 bm.unlockPixels(); 25 return bm;
|
SampleTinyBitmap.cpp | 24 SkBitmap bm; local 25 bm.allocPixels(SkImageInfo::Make(1, 1, kIndex_8_SkColorType, 30 bm.lockPixels(); 31 for (int y = 0; y < bm.height(); y++) { 32 uint8_t* p = bm.getAddr8(0, y); 33 for (int x = 0; x < bm.width(); x++) { 37 bm.unlockPixels(); 38 return bm; 59 static void setBitmapOpaque(SkBitmap* bm, bool isOpaque) { 60 SkAutoLockPixels alp(*bm); // needed for ctabl [all...] |
/external/skia/src/views/ |
SkProgressView.cpp | 111 SkBitmap bm; local 113 return SkImageDecoder::DecodeFile(file, &bm) ? 114 SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode) :
|
/external/skia/tests/ |
AnnotationTest.cpp | 28 SkBitmap bm; local 29 bm.allocN32Pixels(10, 10); 30 bm.eraseColor(SK_ColorTRANSPARENT); 32 SkCanvas canvas(bm); 37 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0)); 39 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0));
|
BitmapGetColorTest.cpp | 38 SkBitmap bm; local 40 bm.installPixels(info, storage, info.minRowBytes()); 42 bm.eraseColor(initColor); 43 bm.eraseArea(area, gRec[i].fInColor); 45 SkColor c = bm.getColor(1, 1);
|
BitmapHeapTest.cpp | 35 SkBitmap bm; local 36 bm.allocN32Pixels(2, 2); 37 bm.eraseColor(SK_ColorRED); 38 uint32_t* pixel = bm.getAddr32(1,0); 41 SkShader* bitmapShader = SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode,
|
ClipCubicTest.cpp | 18 SkBitmap bm; local 19 bm.allocN32Pixels(64919, 1); 20 SkCanvas canvas(bm);
|
GifTest.cpp | 54 SkBitmap bm; local 56 data, size, &bm); 58 REPORTER_ASSERT(r, bm.width() == 1); 59 REPORTER_ASSERT(r, bm.height() == 1); 60 REPORTER_ASSERT(r, !(bm.empty())); 61 if (!(bm.empty())) { 62 REPORTER_ASSERT(r, bm.getColor(0, 0) == 0x00000000); 66 SkBitmap bm; local 68 data, size, &bm); 70 REPORTER_ASSERT(r, bm.width() == 3) 88 SkBitmap bm; local 121 SkBitmap bm; local [all...] |
/external/valgrind/main/drd/ |
drd_segment.h | 60 struct bitmap bm; member in struct:segment 97 return &sg->bm;
|