Home
last modified time | relevance | path

Searched refs:tempCache (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/
H A Doffscreen_canvas_paint_method.cpp133 RSBitmap tempCache; in GetImageData() local
134 tempCache.Build(dirtyWidth, dirtyHeight, format); in GetImageData()
136 tempCanvas.Bind(tempCache); in GetImageData()
142 uint8_t* pixels = static_cast<uint8_t*>(tempCache.GetPixels()); in GetImageData()
189 RSBitmap tempCache; in ToDataURL() local
190 tempCache.Build(width_, height_, in ToDataURL()
194 tempCanvas.Bind(tempCache); in ToDataURL()
199 bool success = tempCache.PeekPixels(rsSrc); in ToDataURL()
H A Dcanvas_paint_method.cpp234 RSBitmap tempCache; in GetImageData() local
235 tempCache.Build(dirtyWidth, dirtyHeight, format); in GetImageData()
239 tempCanvas.Bind(tempCache); in GetImageData()
245 const uint8_t* pixels = static_cast<const uint8_t*>(tempCache.GetPixels()); in GetImageData()
333 RSBitmap tempCache; in ToDataURL() local
334 tempCache.Build(width, height, format); in ToDataURL()
340 tempCache.GetPixmap(), RSSamplingOptions(RSCubicResampler { 1 / 3.0f, 1 / 3.0f })); in ToDataURL()
342 RSPixmap rsSrc = tempCache.GetPixmap(); in ToDataURL()
/ohos5.0/foundation/arkui/ace_engine/interfaces/inner_api/drawable_descriptor/
H A Ddrawable_descriptor.cpp518 Rosen::Drawing::Bitmap tempCache; in CompositeIconAdaptive() local
519 tempCache.Build(imageInfo); in CompositeIconAdaptive()
521 bitmapCanvas.Bind(tempCache); in CompositeIconAdaptive()
547 bitmapCanvas.ReadPixels(imageInfo, tempCache.GetPixels(), tempCache.GetRowBytes(), 0, 0); in CompositeIconAdaptive()
585 Rosen::Drawing::Bitmap tempCache; in CompositeIconNotAdaptive() local
586 tempCache.Build(imageInfo); in CompositeIconNotAdaptive()
588 bitmapCanvas.Bind(tempCache); in CompositeIconNotAdaptive()
609 bitmapCanvas.ReadPixels(imageInfo, tempCache.GetPixels(), tempCache.GetRowBytes(), 0, 0); in CompositeIconNotAdaptive()
680 tempCache.Build(imageInfo); in GetCompositePixelMapWithBadge()
682 bitmapCanvas.Bind(tempCache); in GetCompositePixelMapWithBadge()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/
H A Drs_common_def.cpp74 Cache tempCache; in Alloc() local
75 memCaches_.insert(std::pair<size_t, Cache>(size, tempCache)); in Alloc()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Dschema_object.cpp366 …std::vector<uint8_t> *tempCache = nullptr; // A temporary cache for use when input cache can not h… in ExtractValue() local
375 tempCache = new (std::nothrow) std::vector<uint8_t>; in ExtractValue()
376 if (tempCache == nullptr) { in ExtractValue()
380 tempCache->resize(inValue.second - schemaSkipSize_); in ExtractValue()
381 tempCache->assign(inValue.first + schemaSkipSize_, inValue.first + inValue.second); in ExtractValue()
382 rawValue = {tempCache->data(), tempCache->size()}; in ExtractValue()
390 delete tempCache; // delete nullptr is safe in ExtractValue()
391 tempCache = nullptr; in ExtractValue()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/custom_paint/
H A Drosen_render_offscreen_canvas.cpp912 SkBitmap tempCache; in GetImageData() local
913 tempCache.allocPixels(imageInfo); in GetImageData()
914 SkCanvas tempCanvas(tempCache); in GetImageData()
930 RSBitmap tempCache; in GetImageData() local
931 tempCache.Build(width, height, format); in GetImageData()
933 tempCanvas.Bind(tempCache); in GetImageData()
983 SkBitmap tempCache; in ToDataURL() local
986 SkCanvas tempCanvas(tempCache); in ToDataURL()
996 RSBitmap tempCache; in ToDataURL() local
997 tempCache.Build(width_, height_, in ToDataURL()
[all …]
H A Drosen_render_custom_paint.cpp341 SkBitmap tempCache; in ToDataURL() local
354 tempCache.pixmap(), SkSamplingOptions(SkCubicResampler { 1 / 3.0f, 1 / 3.0f })); in ToDataURL()
371 SkPixmap src = tempCache.pixmap(); in ToDataURL()
2751 SkBitmap tempCache; local
2756 tempCache.allocPixels(imageInfo);
2760 SkCanvas tempCanvas(tempCache);
2767 pixels = tempCache.pixmap().addr8();
2770 RSBitmap tempCache; local
2771 tempCache.Build(width, height, format);
2779 tempCanvas.Bind(tempCache);
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/box/
H A Drosen_render_box.cpp653 SkBitmap tempCache; local
654 tempCache.allocPixels(imageInfo);
655 SkCanvas tempCanvas(tempCache);
665 tempCache.readPixels(dstPixmap);
680 RSBitmap tempCache; local
682 tempCache.Build(width, height, format);
684 tempCanvas.Bind(tempCache);
696 tempCache.CopyPixels(tempBitmap, 0, 0);