/external/skia/samplecode/ |
D | SampleFilter2.cpp | 29 SkBitmap* fBitmaps; member in Filter2View 35 fBitmaps = new SkBitmap[fBitmapCount]; in Filter2View() 38 SkImageDecoder::DecodeFile(gNames[i], &fBitmaps[i], in Filter2View() 43 SkImageDecoder::DecodeFile(gNames[i-fBitmapCount/2], &fBitmaps[i], in Filter2View() 53 delete[] fBitmaps; in ~Filter2View() 71 const SkScalar W = SkIntToScalar(fBitmaps[0].width() + 1); in onDrawContent() 72 const SkScalar H = SkIntToScalar(fBitmaps[0].height() + 1); in onDrawContent() 87 canvas->drawBitmap(fBitmaps[i], x, y, &paint); in onDrawContent() 106 s.appendS32(fBitmaps[i].config() == SkBitmap::kRGB_565_Config ? 16 : 32); in onDrawContent()
|
D | SampleEncode.cpp | 118 SkBitmap* fBitmaps; member in EncodeView 126 fBitmaps = new SkBitmap[fBitmapCount]; in EncodeView() 128 make_image(&fBitmaps[i], gConfigs[i], i); in EncodeView() 139 !codec->encodeFile(path.c_str(), fBitmaps[i], 100)) { in EncodeView() 147 fBitmaps = NULL; in EncodeView() 154 delete[] fBitmaps; in ~EncodeView() 183 x + SkIntToScalar(fBitmaps[i].width()) / 2, 0, in onDrawContent() 187 canvas->drawBitmap(fBitmaps[i], x, y); in onDrawContent() 191 yy += SkIntToScalar(fBitmaps[i].height() + 10); in onDrawContent() 202 x += SkIntToScalar(fBitmaps[i].width() + SPACER); in onDrawContent() [all …]
|
D | SampleImage.cpp | 50 SkBitmap* fBitmaps; member in ImageView 57 fBitmaps = new SkBitmap[N]; in ImageView() 64 SetImageRef(&fBitmaps[i], stream, SkBitmap::kNo_Config, gNames[i]); in ImageView() 66 fBitmaps[i].buildMipMap(); in ImageView() 70 fShader = SkShader::CreateBitmapShader(fBitmaps[5], in ImageView() 84 SkBitmap& bm = fBitmaps[i]; in ImageView() 103 delete[] fBitmaps; in ~ImageView() 132 canvas->drawBitmap(fBitmaps[i], x, y); in onDraw() 133 x += SkIntToScalar(fBitmaps[i].width() + 10); in onDraw()
|
D | SamplePageFlip.cpp | 98 SkBitmap fBitmaps[N]; member in PageFlipView 109 fBitmaps[i].setConfig(gConfigs[i], WIDTH, HEIGHT); in PageFlipView() 111 fBitmaps[i].setPixelRef(pr)->unref(); in PageFlipView() 112 fBitmaps[i].eraseColor(0); in PageFlipView() 114 status = pthread_create(&fThreads[i], &attr, draw_proc, &fBitmaps[i]); in PageFlipView() 143 canvas->drawBitmap(fBitmaps[i], x, y); in onDrawContent() 144 x += SkIntToScalar(fBitmaps[i].width() + 20); in onDrawContent()
|
D | SampleImageDir.cpp | 131 SkBitmap* fBitmaps; member in ImageDirView 142 fBitmaps = new SkBitmap[3]; in ImageDirView() 153 SetImageRef(&fBitmaps[i], stream, configs[i], SPECIFIC_IMAGE); in ImageDirView() 156 SkImageDecoder::DecodeFile(SPECIFIC_IMAGE, &fBitmaps[i]); in ImageDirView() 166 fBitmaps = new SkBitmap[N]; in ImageDirView() 175 SetImageRef(&fBitmaps[i], stream, SkBitmap::kNo_Config, in ImageDirView() 192 delete[] fBitmaps; in ~ImageDirView() 268 canvas->drawBitmap(fBitmaps[i], x, y, &p); in onDraw() 269 x += SkIntToScalar(fBitmaps[i].width() + 10); in onDraw() 274 canvas->drawBitmap(fBitmaps[fCurrIndex], x, y, &paint); in onDraw()
|
D | SampleFontCache.cpp | 85 SkBitmap fBitmaps[N]; member in FontCacheView 95 fBitmaps[i].setConfig(SkBitmap::kRGB_565_Config, 320, 240); in FontCacheView() 96 fBitmaps[i].allocPixels(); in FontCacheView() 97 status = pthread_create(&fDThreads[i], NULL, draw_proc, &fBitmaps[i]); in FontCacheView() 128 canvas->drawBitmap(fBitmaps[i], x, y); in onDrawContent() 129 x += SkIntToScalar(fBitmaps[i].width()); in onDrawContent()
|
/external/skia/src/core/ |
D | SkPicturePlayback.cpp | 84 fBitmaps = SkNEW_ARRAY(SkBitmap, fBitmapCount); in SkPicturePlayback() 89 flatBitmap->unflatten(&fBitmaps[index], &fRCPlayback); in SkPicturePlayback() 177 fBitmaps = SkNEW_ARRAY(SkBitmap, fBitmapCount); in SkPicturePlayback() 179 fBitmaps[i] = src.fBitmaps[i]; in SkPicturePlayback() 210 fBitmaps = NULL; in init() 225 SkDELETE_ARRAY(fBitmaps); in ~SkPicturePlayback() 335 fBitmaps[i].flatten(buffer); in serialize() 444 fBitmaps = SkNEW_ARRAY(SkBitmap, fBitmapCount); in SkPicturePlayback() 446 fBitmaps[i].unflatten(buffer); in SkPicturePlayback() 779 const SkBitmap& bitmap = fBitmaps[index]; [all …]
|
D | SkPicturePlayback.h | 62 return fBitmaps[index - 1]; in getBitmap() 161 SkBitmap* fBitmaps; variable
|
D | SkPictureRecord.cpp | 492 fBitmaps.reset(); in reset() 508 addInt(find(fBitmaps, bitmap)); in addBitmap() 710 int count = fBitmaps.count(); in bitmaps() 712 result += sizeof(fBitmaps[index]) + fBitmaps[index]->size(); in bitmaps() 766 int count = fBitmaps.count(); in validateBitmaps() 769 const SkFlatBitmap* bitPtr = fBitmaps[index]; in validateBitmaps()
|
D | SkPictureRecord.h | 73 return fBitmaps; in getBitmaps() 174 SkTDArray<const SkFlatBitmap* > fBitmaps; variable
|
/external/skia/tests/ |
D | CanvasTest.cpp | 459 referenceRecord->fBitmaps.count() == in AssertFlattenedObjectsEqual() 460 testRecord->fBitmaps.count(), testStep->assertMessage()); in AssertFlattenedObjectsEqual() 461 for (int i = 0; i < referenceRecord->fBitmaps.count(); ++i) { in AssertFlattenedObjectsEqual() 463 SkFlatData::Compare(referenceRecord->fBitmaps[i], in AssertFlattenedObjectsEqual() 464 testRecord->fBitmaps[i]) == 0, testStep->assertMessage()); in AssertFlattenedObjectsEqual()
|