Searched refs:dstPixels_ (Results 1 – 2 of 2) sorted by relevance
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/ |
H A D | test_base.cpp | 245 if (dstPixels_) { in GpuCanvasToFile() 246 free(dstPixels_); in GpuCanvasToFile() 247 dstPixels_ = nullptr; in GpuCanvasToFile() 249 dstPixels_ = malloc(bitmapWidth_ * bitmapHeight_ * 4); // 4 for rgba in GpuCanvasToFile() 250 if (dstPixels_ == nullptr) { in GpuCanvasToFile() 255 …bool output = OH_Drawing_CanvasReadPixels(gpuCanvas_, &imageInfo_, dstPixels_, 4 * bitmapWidth_, 0… in GpuCanvasToFile() 264 …bitmap_ = OH_Drawing_BitmapCreateFromPixels(&imageInfo_, dstPixels_, 4 * bitmapWidth_); // 4 for r… in GpuCanvasToFile() 267 ret = OH_PixelmapNative_CreatePixelmap((uint8_t *)dstPixels_, bufferSize, createOps, &pixelMap); in GpuCanvasToFile() 274 Pixmap2RawFile(dstPixels_, bufferSize); in GpuCanvasToFile()
|
H A D | test_base.h | 41 if (dstPixels_) { in ~TestBase() 42 free(dstPixels_); in ~TestBase() 43 dstPixels_ = nullptr; in ~TestBase() 92 void* dstPixels_ = nullptr; variable
|