/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/skia_adapter/ |
H A D | skia_gpu_context_test.cpp | 49 auto gpuContext = std::make_shared<SkiaGPUContext>(); in HWTEST_F() local 50 ASSERT_TRUE(gpuContext != nullptr); in HWTEST_F() 52 gpuContext->BuildFromVK(grVkBackendContext); in HWTEST_F() 63 auto gpuContext = std::make_shared<SkiaGPUContext>(); in HWTEST_F() local 64 ASSERT_TRUE(gpuContext != nullptr); in HWTEST_F() 65 gpuContext->storeVkPipelineCacheData(); in HWTEST_F() 67 gpuContext->SetGrContext(GrDirectContext::MakeMock(&options)); in HWTEST_F() 68 gpuContext->storeVkPipelineCacheData(); in HWTEST_F() 80 auto gpuContext = std::make_shared<SkiaGPUContext>(); in HWTEST_F() local 81 ASSERT_TRUE(gpuContext ! in HWTEST_F() 98 auto gpuContext = std::make_shared<SkiaGPUContext>(); HWTEST_F() local 111 auto gpuContext = std::make_shared<SkiaGPUContext>(); HWTEST_F() local 125 auto gpuContext = std::make_shared<SkiaGPUContext>(); HWTEST_F() local 141 auto gpuContext = std::make_shared<SkiaGPUContext>(); HWTEST_F() local 154 auto gpuContext = std::make_shared<SkiaGPUContext>(); HWTEST_F() local 171 auto gpuContext = std::make_shared<SkiaGPUContext>(); HWTEST_F() local 189 auto gpuContext = std::make_shared<SkiaGPUContext>(); HWTEST_F() local 202 auto gpuContext = std::make_shared<SkiaGPUContext>(); HWTEST_F() local 215 auto gpuContext = std::make_shared<SkiaGPUContext>(); HWTEST_F() local 232 auto gpuContext = std::make_shared<SkiaGPUContext>(); HWTEST_F() local 248 auto gpuContext = std::make_shared<SkiaGPUContext>(); HWTEST_F() local 261 auto gpuContext = std::make_shared<SkiaGPUContext>(); HWTEST_F() local [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/image/ |
H A D | gpu_context_test.cpp | 146 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); in HWTEST_F() local 147 ASSERT_TRUE(gpuContext != nullptr); in HWTEST_F() 158 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); in HWTEST_F() local 159 ASSERT_TRUE(gpuContext != nullptr); in HWTEST_F() 161 EXPECT_TRUE(gpuContext->BuildFromGL(options)); in HWTEST_F() 163 gpuContext->Flush(); in HWTEST_F() 165 gpuContext->PerformDeferredCleanup(msNotUsed); in HWTEST_F() 168 gpuContext->GetResourceCacheLimits(&maxResource, &maxResourceBytes); in HWTEST_F() 169 gpuContext->SetResourceCacheLimits(maxResource, maxResourceBytes); in HWTEST_F() 180 std::unique_ptr<GPUContext> gpuContext in HWTEST_F() local 197 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); HWTEST_F() local 216 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); HWTEST_F() local 238 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); HWTEST_F() local 251 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); HWTEST_F() local 265 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); HWTEST_F() local 280 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); HWTEST_F() local 295 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); HWTEST_F() local 310 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); HWTEST_F() local 325 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); HWTEST_F() local 338 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); HWTEST_F() local 352 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); HWTEST_F() local [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/memory/ |
H A D | rs_tag_tracker_test.cpp | 69 Drawing::GPUContext* gpuContext = nullptr; in HWTEST_F() local 70 RSTagTracker tagTracker(gpuContext, tag); in HWTEST_F() 84 Drawing::GPUContext* gpuContext = new Drawing::GPUContext; in HWTEST_F() local 85 RSTagTracker tagTracker(gpuContext, tagType); in HWTEST_F() 87 RSTagTracker tagTracker1(gpuContext, tagType); in HWTEST_F() 101 Drawing::GPUContext* gpuContext = new Drawing::GPUContext; in HWTEST_F() local 102 RSTagTracker tagTracker(gpuContext, tagType); in HWTEST_F() 104 RSTagTracker tagTracker1(gpuContext, tagType); in HWTEST_F() 117 Drawing::GPUContext* gpuContext = new Drawing::GPUContext; in HWTEST_F() local 119 RSTagTracker tagTracker(gpuContext, nodeI in HWTEST_F() 134 Drawing::GPUContext* gpuContext = nullptr; HWTEST_F() local 149 Drawing::GPUContext* gpuContext = nullptr; HWTEST_F() local 166 Drawing::GPUContext* gpuContext = new Drawing::GPUContext; HWTEST_F() local 184 Drawing::GPUContext gpuContext; HWTEST_F() local 201 Drawing::GPUContext gpuContext; HWTEST_F() local 218 Drawing::GPUContext* gpuContext = nullptr; HWTEST_F() local 235 Drawing::GPUContext gpuContext; HWTEST_F() local [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/memory/ |
H A D | rs_memory_manager.h | 31 static void DumpPidMemory(DfxString& log, int pid, const Drawing::GPUContext* gpuContext); 32 static MemoryGraphic CountSubMemory(int pid, const Drawing::GPUContext* gpuContext); 36 static MemoryGraphic CountPidMemory(int pid, const Drawing::GPUContext* gpuContext); 38 const Drawing::GPUContext* gpuContext, std::vector<MemoryGraphic>& mems); 39 static void ReleaseUnlockGpuResource(Drawing::GPUContext* gpuContext, NodeId surfaceNodeId); 40 static void ReleaseUnlockGpuResource(Drawing::GPUContext* gpuContext, pid_t pid); 41 static void ReleaseUnlockGpuResource(Drawing::GPUContext* gpuContext, Drawing::GPUResourceTag& tag); 42 static void ReleaseUnlockGpuResource(Drawing::GPUContext* gpuContext, std::set<pid_t> exitedPidSet); 43 static void PurgeCacheBetweenFrames(Drawing::GPUContext* gpuContext, bool scratchResourceOnly, 45 static void ReleaseAllGpuResource(Drawing::GPUContext* gpuContext, pid_ [all...] |
H A D | rs_memory_manager.cpp | 89 void MemoryManager::ReleaseAllGpuResource(Drawing::GPUContext* gpuContext, Drawing::GPUResourceTag& tag) in ReleaseAllGpuResource() argument 92 if (!gpuContext) { in ReleaseAllGpuResource() 93 RS_LOGE("ReleaseGpuResByTag fail, gpuContext is nullptr"); in ReleaseAllGpuResource() 98 gpuContext->ReleaseByTag(tag); in ReleaseAllGpuResource() 102 void MemoryManager::ReleaseAllGpuResource(Drawing::GPUContext* gpuContext, pid_t pid) in ReleaseAllGpuResource() argument 106 ReleaseAllGpuResource(gpuContext, tag); in ReleaseAllGpuResource() 110 void MemoryManager::ReleaseUnlockGpuResource(Drawing::GPUContext* gpuContext, Drawing::GPUResourceTag& tag) in ReleaseUnlockGpuResource() argument 113 if (!gpuContext) { in ReleaseUnlockGpuResource() 114 RS_LOGE("ReleaseGpuResByTag fail, gpuContext is nullptr"); in ReleaseUnlockGpuResource() 119 gpuContext in ReleaseUnlockGpuResource() 123 ReleaseUnlockGpuResource(Drawing::GPUContext* gpuContext, std::set<pid_t> exitedPidSet) ReleaseUnlockGpuResource() argument 137 PurgeCacheBetweenFrames(Drawing::GPUContext* gpuContext, bool scratchResourceOnly, std::set<pid_t>& exitedPidSet, std::set<pid_t>& protectedPidSet) PurgeCacheBetweenFrames() argument 165 ReleaseUnlockGpuResource(Drawing::GPUContext* gpuContext, bool scratchResourcesOnly) ReleaseUnlockGpuResource() argument 177 ReleaseUnlockAndSafeCacheGpuResource(Drawing::GPUContext* gpuContext) ReleaseUnlockAndSafeCacheGpuResource() argument 189 SetGpuCacheSuppressWindowSwitch(Drawing::GPUContext* gpuContext, bool enabled) SetGpuCacheSuppressWindowSwitch() argument 200 SetGpuMemoryAsyncReclaimerSwitch(Drawing::GPUContext* gpuContext, bool enabled) SetGpuMemoryAsyncReclaimerSwitch() argument 211 FlushGpuMemoryInWaitQueue(Drawing::GPUContext* gpuContext) FlushGpuMemoryInWaitQueue() argument 222 SuppressGpuCacheBelowCertainRatio( Drawing::GPUContext* gpuContext, const std::function<bool(void)>& nextFrameHasArrived) SuppressGpuCacheBelowCertainRatio() argument 234 GetAppGpuMemoryInMB(Drawing::GPUContext* gpuContext) GetAppGpuMemoryInMB() argument 257 DumpPidMemory(DfxString& log, int pid, const Drawing::GPUContext* gpuContext) DumpPidMemory() argument 265 CountSubMemory(int pid, const Drawing::GPUContext* gpuContext) CountSubMemory() argument 276 CountPidMemory(int pid, const Drawing::GPUContext* gpuContext) CountPidMemory() argument 297 CountMemory( std::vector<pid_t> pids, const Drawing::GPUContext* gpuContext, std::vector<MemoryGraphic>& mems) CountMemory() argument 383 DumpGpuCache( DfxString& log, const Drawing::GPUContext* gpuContext, Drawing::GPUResourceTag* tag, std::string& name) DumpGpuCache() argument 411 DumpAllGpuInfo(DfxString& log, const Drawing::GPUContext* gpuContext, std::vector<std::pair<NodeId, std::string>>& nodeTags) DumpAllGpuInfo() argument 426 DumpDrawingGpuMemory(DfxString& log, const Drawing::GPUContext* gpuContext, std::vector<std::pair<NodeId, std::string>>& nodeTags) DumpDrawingGpuMemory() argument 468 DumpGpuStats(DfxString& log, const Drawing::GPUContext* gpuContext) DumpGpuStats() argument 521 InitMemoryLimit(Drawing::GPUContext* gpuContext) InitMemoryLimit() argument 569 MemoryOverCheck(Drawing::GPUContext* gpuContext) MemoryOverCheck() argument 669 VmaDefragment(Drawing::GPUContext* gpuContext) VmaDefragment() argument [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/image/gpucontext_fuzzer/ |
H A D | gpucontext_fuzzer.cpp | 61 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>();
in GPUContextFuzzTest001() local 64 gpuContext->SetResourceCacheLimits(maxResource, maxResourceBytes);
in GPUContextFuzzTest001() 65 gpuContext->GetResourceCacheLimits(&maxResource, &maxResourceBytes);
in GPUContextFuzzTest001() 66 gpuContext->ResetContext();
in GPUContextFuzzTest001() 67 gpuContext->Flush();
in GPUContextFuzzTest001() 68 gpuContext->Submit();
in GPUContextFuzzTest001() 70 gpuContext->FlushAndSubmit(syncCpu);
in GPUContextFuzzTest001() 73 gpuContext->GetResourceCacheUsage(&resourceCount, &resourceBytes);
in GPUContextFuzzTest001() 74 gpuContext->FreeGpuResources();
in GPUContextFuzzTest001() 92 std::unique_ptr<GPUContext> gpuContext in GPUContextFuzzTest002() local 138 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); GPUContextFuzzTest003() local [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/render_context/ |
H A D | momory_handler_test.cpp | 45 auto gpuContext = new Drawing::GPUContext(); in HWTEST_F() local 46 EXPECT_NE(gpuContext, nullptr); in HWTEST_F() 47 MemoryHandler::ClearRedundantResources(gpuContext); in HWTEST_F() 48 delete gpuContext; in HWTEST_F() 49 gpuContext = nullptr; in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/image/ |
H A D | image.cpp | 70 std::shared_ptr<Image> Image::MakeFromYUVAPixmaps(GPUContext& gpuContext, const YUVInfo& info, void* memory) in MakeFromYUVAPixmaps() argument 72 return StaticFactory::MakeFromYUVAPixmaps(gpuContext, info, memory); in MakeFromYUVAPixmaps() 75 bool Image::BuildFromBitmap(GPUContext& gpuContext, const Bitmap& bitmap) in BuildFromBitmap() argument 77 return imageImplPtr->BuildFromBitmap(gpuContext, bitmap); in BuildFromBitmap() 85 bool Image::BuildFromCompressed(GPUContext& gpuContext, const std::shared_ptr<Data>& data, int width, int height, in BuildFromCompressed() argument 88 return imageImplPtr->BuildFromCompressed(gpuContext, data, width, height, type, colorSpace); in BuildFromCompressed() 91 bool Image::BuildFromSurface(GPUContext& gpuContext, Surface& surface, TextureOrigin origin, in BuildFromSurface() argument 94 return imageImplPtr->BuildFromSurface(gpuContext, surface, origin, bitmapFormat, colorSpace); in BuildFromSurface() 97 bool Image::BuildFromTexture(GPUContext& gpuContext, const TextureInfo& info, TextureOrigin origin, in BuildFromTexture() argument 101 return imageImplPtr->BuildFromTexture(gpuContext, inf in BuildFromTexture() 105 BuildSubset(const std::shared_ptr<Image>& image, const RectI& rect, GPUContext& gpuContext) BuildSubset() argument [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/memory/ |
H A D | rs_tag_tracker.cpp | 24 RSTagTracker::RSTagTracker(Drawing::GPUContext* gpuContext, RSTagTracker::TAGTYPE tagType) : gpuContext_(gpuContext) in RSTagTracker() argument 84 RSTagTracker::RSTagTracker(Drawing::GPUContext* gpuContext, NodeId nodeId, in RSTagTracker() argument 86 : gpuContext_(gpuContext) in RSTagTracker() 100 RSTagTracker::RSTagTracker(Drawing::GPUContext* gpuContext, Drawing::GPUResourceTag& tag) : gpuContext_(gpuContext) in RSTagTracker() argument
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/ |
H A D | rs_background_thread.cpp | 112 auto gpuContext = std::make_shared<Drawing::GPUContext>();
in CreateShareGPUContext() local 113 if (gpuContext == nullptr) {
in CreateShareGPUContext() 124 if (!gpuContext->BuildFromGL(options)) {
in CreateShareGPUContext() 128 return gpuContext;
in CreateShareGPUContext() 134 auto gpuContext = RsVulkanContext::GetSingleton().CreateDrawingContext();
in CreateShareGPUContext() local 135 if (gpuContext == nullptr) {
in CreateShareGPUContext() 139 return gpuContext;
in CreateShareGPUContext()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/render_context/ |
H A D | memory_handler.cpp | 33 void MemoryHandler::ClearRedundantResources(Drawing::GPUContext* gpuContext)
in ClearRedundantResources() argument 35 if (gpuContext != nullptr) {
in ClearRedundantResources() 36 LOGD("gpuContext clear redundant resources");
in ClearRedundantResources() 37 gpuContext->Flush();
in ClearRedundantResources() 39 gpuContext->PerformDeferredCleanup(std::chrono::seconds(10));
in ClearRedundantResources()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/memory/ |
H A D | rs_tag_tracker.h | 38 RSTagTracker(Drawing::GPUContext* gpuContext, RSTagTracker::TAGTYPE tagType); 39 RSTagTracker(Drawing::GPUContext* gpuContext, NodeId nodeId, 41 RSTagTracker(Drawing::GPUContext* gpuContext, Drawing::GPUResourceTag& tag);
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/interface/ |
H A D | surface_test.cpp | 42 OH_Drawing_GpuContext* gpuContext = OH_Drawing_GpuContextCreateFromGL(options); in OnTestPerformance() local 48 surface = OH_Drawing_SurfaceCreateFromGpuContext(gpuContext, budgeted, imageInfo); in OnTestPerformance() 54 OH_Drawing_GpuContextDestroy(gpuContext); in OnTestPerformance()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/ |
H A D | rs_uni_render_thread.cpp | 619 static void TrimMemEmptyType(Drawing::GPUContext* gpuContext) in TrimMemEmptyType() argument 621 gpuContext->Flush(); in TrimMemEmptyType() 623 gpuContext->FreeGpuResources(); in TrimMemEmptyType() 624 gpuContext->PurgeUnlockedResources(true); in TrimMemEmptyType() 631 gpuContext->FlushAndSubmit(true); in TrimMemEmptyType() 644 static void TrimMemGpuLimitType(Drawing::GPUContext* gpuContext, std::string& dumpString, in TrimMemGpuLimitType() argument 649 gpuContext->GetResourceCacheLimits(&maxResources, &cacheLimit); in TrimMemGpuLimitType() 662 gpuContext->SetResourceCacheLimits(maxResources, maxResourcesBytes); in TrimMemGpuLimitType() 678 auto gpuContext = renderContext->GetDrGPUContext(); in TrimMem() 679 if (gpuContext in TrimMem() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/parallel_render/resource/ |
H A D | rs_upload_resource_thread.cpp | 154 std::shared_ptr<Drawing::GPUContext> gpuContext = nullptr; in CreateShareGrContext() local 158 gpuContext = std::make_shared<Drawing::GPUContext>(); in CreateShareGrContext() 166 if (!gpuContext->BuildFromGL(options)) { in CreateShareGrContext() 167 RS_LOGE("nullptr gpuContext is null"); in CreateShareGrContext() 176 gpuContext = std::make_shared<Drawing::GPUContext>(); in CreateShareGrContext() 177 if (!gpuContext->BuildFromVK(RsVulkanContext::GetSingleton().GetGrVkBackendContext())) { in CreateShareGrContext() 178 RS_LOGE("nullptr gpuContext is null"); in CreateShareGrContext() 183 return gpuContext; in CreateShareGrContext()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_image.h | 58 static std::shared_ptr<Image> MakeFromYUVAPixmaps(GPUContext& gpuContext, const YUVInfo& info, void* memory); 59 bool BuildFromSurface(GPUContext& gpuContext, Surface& surface, TextureOrigin origin, 61 bool BuildFromBitmap(GPUContext& gpuContext, const Bitmap& bitmap) override; 63 bool BuildSubset(const std::shared_ptr<Image> image, const RectI& rect, GPUContext& gpuContext) override; 64 bool BuildFromCompressed(GPUContext& gpuContext, const std::shared_ptr<Data>& data, int width, int height, 66 bool BuildFromTexture(GPUContext& gpuContext, const TextureInfo& info, TextureOrigin origin,
|
H A D | skia_static_factory.cpp | 83 std::shared_ptr<Surface> SkiaStaticFactory::MakeFromBackendRenderTarget(GPUContext* gpuContext, const TextureInfo& info, in MakeFromBackendRenderTarget() argument 90 return SkiaSurface::MakeFromBackendRenderTarget(gpuContext, info, origin, in MakeFromBackendRenderTarget() 94 std::shared_ptr<Surface> SkiaStaticFactory::MakeFromBackendTexture(GPUContext* gpuContext, const TextureInfo& info, in MakeFromBackendTexture() argument 98 return SkiaSurface::MakeFromBackendTexture(gpuContext, info, origin, sampleCnt, colorType, in MakeFromBackendTexture() 102 std::shared_ptr<Surface> SkiaStaticFactory::MakeRenderTarget(GPUContext* gpuContext, in MakeRenderTarget() argument 105 return SkiaSurface::MakeRenderTarget(gpuContext, budgeted, imageInfo); in MakeRenderTarget() 108 std::shared_ptr<Image> SkiaStaticFactory::MakeFromYUVAPixmaps(GPUContext& gpuContext, const YUVInfo& info, void* memory) in MakeFromYUVAPixmaps() argument 110 return SkiaImage::MakeFromYUVAPixmaps(gpuContext, info, memory); in MakeFromYUVAPixmaps()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/draw/ |
H A D | surface.cpp | 45 std::shared_ptr<Surface> Surface::MakeFromBackendRenderTarget(GPUContext* gpuContext, const TextureInfo& info, in MakeFromBackendRenderTarget() argument 52 return StaticFactory::MakeFromBackendRenderTarget(gpuContext, info, origin, in MakeFromBackendRenderTarget() 57 std::shared_ptr<Surface> Surface::MakeFromBackendTexture(GPUContext* gpuContext, const TextureInfo& info, in MakeFromBackendTexture() argument 61 return StaticFactory::MakeFromBackendTexture(gpuContext, info, origin, sampleCnt, colorType, in MakeFromBackendTexture() 65 std::shared_ptr<Surface> Surface::MakeRenderTarget(GPUContext* gpuContext, bool budgeted, const ImageInfo& imageInfo) in MakeRenderTarget() argument 67 return StaticFactory::MakeRenderTarget(gpuContext, budgeted, imageInfo); in MakeRenderTarget()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/ |
H A D | image_impl.h | 63 virtual bool BuildFromBitmap(GPUContext& gpuContext, const Bitmap& bitmap) = 0; 65 virtual bool BuildSubset(const std::shared_ptr<Image> image, const RectI& rect, GPUContext& gpuContext); 66 virtual bool BuildFromCompressed(GPUContext& gpuContext, const std::shared_ptr<Data>& data, int width, int height, 68 virtual bool BuildFromTexture(GPUContext& gpuContext, const TextureInfo& info, TextureOrigin origin, 71 virtual bool BuildFromSurface(GPUContext& gpuContext, Surface& surface, TextureOrigin origin,
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_pixel_map_util_test.cpp | 162 auto gpuContext = std::make_shared<Drawing::GPUContext>();
in HWTEST_F() local 163 EXPECT_EQ(RSPixelMapUtil::ConvertYUVPixelMapToDrawingImage(gpuContext, pixelmap), nullptr);
in HWTEST_F() 165 EXPECT_EQ(RSPixelMapUtil::ConvertYUVPixelMapToDrawingImage(gpuContext, pixelmap), nullptr);
in HWTEST_F() 167 EXPECT_EQ(RSPixelMapUtil::ConvertYUVPixelMapToDrawingImage(gpuContext, pixelmap), nullptr);
in HWTEST_F() 209 std::shared_ptr<Drawing::GPUContext> gpuContext;
in HWTEST_F() local 211 RSPixelMapUtil::ConvertYUVPixelMapToDrawingImage(gpuContext, pixelmap);
in HWTEST_F() 212 gpuContext = std::make_shared<Drawing::GPUContext>();
in HWTEST_F() 213 EXPECT_NE(nullptr, gpuContext);
in HWTEST_F() 214 RSPixelMapUtil::ConvertYUVPixelMapToDrawingImage(gpuContext, pixelmap);
in HWTEST_F() 218 auto image = RSPixelMapUtil::ConvertYUVPixelMapToDrawingImage(gpuContext, pixelma in HWTEST_F() [all...] |
H A D | rs_image_base_test.cpp | 272 std::shared_ptr<Drawing::GPUContext> gpuContext = nullptr; in HWTEST_F() local 273 imageBase->ProcessYUVImage(gpuContext); in HWTEST_F() 274 gpuContext = std::make_shared<Drawing::GPUContext>(); in HWTEST_F() 275 imageBase->ProcessYUVImage(gpuContext); in HWTEST_F() 279 imageBase->ProcessYUVImage(gpuContext); in HWTEST_F() 280 EXPECT_EQ(RSPixelMapUtil::ConvertYUVPixelMapToDrawingImage(gpuContext, pixelMap), nullptr); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/engine_adapter/ |
H A D | static_factory_test.cpp | 96 auto gpuContext = new GPUContext(); in HWTEST_F() local 97 ASSERT_TRUE(gpuContext != nullptr); in HWTEST_F() 104 auto surface = StaticFactory::MakeFromBackendRenderTarget(gpuContext, info, TextureOrigin::TOP_LEFT, in HWTEST_F() 108 surface = StaticFactory::MakeFromBackendRenderTarget(gpuContext, info, TextureOrigin::TOP_LEFT, in HWTEST_F() 112 delete gpuContext; in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/ |
H A D | static_factory.cpp | 124 std::shared_ptr<Surface> StaticFactory::MakeFromBackendRenderTarget(GPUContext* gpuContext, const TextureInfo& info, in MakeFromBackendRenderTarget() argument 133 return DDGRStaticFactory::MakeFromBackendRenderTarget(gpuContext, info, origin, in MakeFromBackendRenderTarget() 137 return EngineStaticFactory::MakeFromBackendRenderTarget(gpuContext, info, origin, in MakeFromBackendRenderTarget() 141 std::shared_ptr<Surface> StaticFactory::MakeFromBackendTexture(GPUContext* gpuContext, const TextureInfo& info, in MakeFromBackendTexture() argument 147 return DDGRStaticFactory::MakeFromBackendTexture(gpuContext, info, origin, sampleCnt, colorType, in MakeFromBackendTexture() 151 return EngineStaticFactory::MakeFromBackendTexture(gpuContext, info, origin, sampleCnt, colorType, in MakeFromBackendTexture() 154 std::shared_ptr<Surface> StaticFactory::MakeRenderTarget(GPUContext* gpuContext, in MakeRenderTarget() argument 159 return DDGRStaticFactory::MakeRenderTarget(gpuContext, imageInfo, budgeted); in MakeRenderTarget() 162 return EngineStaticFactory::MakeRenderTarget(gpuContext, budgeted, imageInfo); in MakeRenderTarget() 165 std::shared_ptr<Image> StaticFactory::MakeFromYUVAPixmaps(GPUContext& gpuContext, cons argument [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/draw/ |
H A D | surface.h | 37 std::shared_ptr<GPUContext> gpuContext; member 86 static std::shared_ptr<Surface> MakeFromBackendRenderTarget(GPUContext* gpuContext, const TextureInfo& info, 90 static std::shared_ptr<Surface> MakeFromBackendTexture(GPUContext* gpuContext, const TextureInfo& info, 95 * @brief Create Surface from gpuContext and imageInfo. 96 * @param gpuContext GPU texture. 101 static std::shared_ptr<Surface> MakeRenderTarget(GPUContext* gpuContext, bool budgeted, const ImageInfo& imageInfo);
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/image/ |
H A D | image.h | 262 * @param gpuContext GPU context. 267 static std::shared_ptr<Image> MakeFromYUVAPixmaps(GPUContext& gpuContext, const YUVInfo& info, void* memory); 271 * @param gpuContext GPU context. 275 bool BuildFromBitmap(GPUContext& gpuContext, const Bitmap& bitmap); 281 * @param gpuContext GPU context. 288 bool BuildFromCompressed(GPUContext& gpuContext, const std::shared_ptr<Data>& data, int width, int height, 293 * @param gpuContext GPU context. 301 bool BuildFromTexture(GPUContext& gpuContext, const TextureInfo& info, TextureOrigin origin, 307 * @param gpuContext GPU context 315 bool BuildFromSurface(GPUContext& gpuContext, Surfac [all...] |