/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/skia_adapter/ |
H A D | skia_gpu_context_test.cpp | 50 ASSERT_TRUE(gpuContext != nullptr); 64 ASSERT_TRUE(gpuContext != nullptr); 81 ASSERT_TRUE(gpuContext != nullptr); 99 ASSERT_TRUE(gpuContext != nullptr); 100 gpuContext->FreeGpuResources(); 112 ASSERT_TRUE(gpuContext != nullptr); 114 gpuContext->DumpGpuStats(out); 126 ASSERT_TRUE(gpuContext != nullptr); 142 ASSERT_TRUE(gpuContext != nullptr); 204 gpuContext->Submit(); [all …]
|
H A D | skia_surface_test.cpp | 86 auto gpuContext = skiaCanvas->GetGPUContext(); variable 90 …auto surface1 = SkiaSurface::MakeFromBackendRenderTarget(gpuContext.get(), info, TextureOrigin::TO… 92 …auto surface2 = SkiaSurface::MakeFromBackendRenderTarget(gpuContext.get(), info, TextureOrigin::TO… 109 auto gpuContext = skiaCanvas->GetGPUContext(); variable 115 …auto surface = SkiaSurface::MakeFromBackendTexture(gpuContext.get(), info, TextureOrigin::TOP_LEFT… 179 auto gpuContext = skiaCanvas->GetGPUContext(); variable 181 auto surface1 = SkiaSurface::MakeRenderTarget(gpuContext.get(), true, imageInfo);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/memory/ |
H A D | rs_tag_tracker_test.cpp | 70 EXPECT_TRUE(gpuContext == nullptr); 85 EXPECT_TRUE(gpuContext != nullptr); 102 EXPECT_TRUE(gpuContext != nullptr); 118 EXPECT_TRUE(gpuContext != nullptr); 135 EXPECT_TRUE(gpuContext == nullptr); 150 EXPECT_TRUE(gpuContext == nullptr); 167 EXPECT_TRUE(gpuContext != nullptr); 185 EXPECT_TRUE(gpuContext != nullptr); 202 EXPECT_TRUE(gpuContext != nullptr); 235 Drawing::GPUContext gpuContext; variable [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/image/ |
H A D | gpu_context_test.cpp | 147 ASSERT_TRUE(gpuContext != nullptr); 159 ASSERT_TRUE(gpuContext != nullptr); 163 gpuContext->Flush(); 181 ASSERT_TRUE(gpuContext != nullptr); 198 ASSERT_TRUE(gpuContext != nullptr); 217 ASSERT_TRUE(gpuContext != nullptr); 239 ASSERT_TRUE(gpuContext != nullptr); 240 gpuContext->Flush(); 252 ASSERT_TRUE(gpuContext != nullptr); 266 ASSERT_TRUE(gpuContext != nullptr); [all …]
|
H A D | image_test.cpp | 433 GPUContext gpuContext; variable 448 GPUContext gpuContext; variable 464 GPUContext gpuContext; variable 480 GPUContext gpuContext; variable 497 GPUContext gpuContext; variable 564 GPUContext gpuContext; variable 583 ASSERT_NE(gpuContext, nullptr); 589 gpuContext = nullptr; 604 ASSERT_NE(gpuContext, nullptr); 624 gpuContext = nullptr; [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/memory/ |
H A D | rs_memory_manager.cpp | 103 if (!gpuContext) { in ReleaseAllGpuResource() 124 if (!gpuContext) { in ReleaseUnlockGpuResource() 137 if (!gpuContext) { in ReleaseUnlockGpuResource() 152 if (!gpuContext) { in PurgeCacheBetweenFrames() 179 if (!gpuContext) { in ReleaseUnlockGpuResource() 191 if (!gpuContext) { in ReleaseUnlockAndSafeCacheGpuResource() 203 if (!gpuContext) { in SetGpuCacheSuppressWindowSwitch() 215 if (!gpuContext) { in SetGpuMemoryAsyncReclaimerSwitch() 226 if (!gpuContext) { in FlushGpuMemoryInWaitQueue() 238 if (!gpuContext) { in SuppressGpuCacheBelowCertainRatio() [all …]
|
H A D | rs_memory_manager.h | 36 static MemoryGraphic CountPidMemory(int pid, const Drawing::GPUContext* gpuContext); 38 const Drawing::GPUContext* gpuContext, std::vector<MemoryGraphic>& mems); 40 static void ReleaseUnlockGpuResource(Drawing::GPUContext* gpuContext, pid_t pid); 45 static void ReleaseAllGpuResource(Drawing::GPUContext* gpuContext, pid_t pid); 49 static float GetAppGpuMemoryInMB(Drawing::GPUContext* gpuContext); 51 static void SetGpuMemoryLimit(Drawing::GPUContext* gpuContext); 52 static void MemoryOverCheck(Drawing::GPUContext* gpuContext); 54 static void VmaDefragment(Drawing::GPUContext* gpuContext); 59 static void FlushGpuMemoryInWaitQueue(Drawing::GPUContext* gpuContext); 66 static void DumpGpuCache(DfxString& log, const Drawing::GPUContext* gpuContext, [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/image/ |
H A D | image.cpp | 75 std::shared_ptr<Image> Image::MakeFromYUVAPixmaps(GPUContext& gpuContext, const YUVInfo& info, void… in MakeFromYUVAPixmaps() argument 77 return StaticFactory::MakeFromYUVAPixmaps(gpuContext, info, memory); in MakeFromYUVAPixmaps() 80 bool Image::BuildFromBitmap(GPUContext& gpuContext, const Bitmap& bitmap) in BuildFromBitmap() argument 82 return imageImplPtr->BuildFromBitmap(gpuContext, bitmap); in BuildFromBitmap() 93 return imageImplPtr->BuildFromCompressed(gpuContext, data, width, height, type, colorSpace); in BuildFromCompressed() 96 bool Image::BuildFromSurface(GPUContext& gpuContext, Surface& surface, TextureOrigin origin, in BuildFromSurface() argument 99 return imageImplPtr->BuildFromSurface(gpuContext, surface, origin, bitmapFormat, colorSpace); in BuildFromSurface() 102 bool Image::BuildFromTexture(GPUContext& gpuContext, const TextureInfo& info, TextureOrigin origin, in BuildFromTexture() argument 106 return imageImplPtr->BuildFromTexture(gpuContext, info, origin, bitmapFormat, in BuildFromTexture() 110 … Image::BuildSubset(const std::shared_ptr<Image>& image, const RectI& rect, GPUContext& gpuContext) in BuildSubset() argument [all …]
|
/ohos5.0/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() 123 if (!gpuContext->BuildFromGL(options)) { in CreateShareGPUContext() 127 return gpuContext; in CreateShareGPUContext() 133 auto gpuContext = RsVulkanContext::GetSingleton().CreateDrawingContext(); in CreateShareGPUContext() local 134 if (gpuContext == nullptr) { in CreateShareGPUContext() 138 return gpuContext; in CreateShareGPUContext()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/render_context/ |
H A D | momory_handler_test.cpp | 45 auto gpuContext = new Drawing::GPUContext(); variable 46 EXPECT_NE(gpuContext, nullptr); 47 MemoryHandler::ClearRedundantResources(gpuContext); 48 delete gpuContext; 49 gpuContext = nullptr;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/ |
H A D | rs_uni_render_thread.cpp | 634 gpuContext->Flush(); in TrimMemEmptyType() 636 gpuContext->FreeGpuResources(); in TrimMemEmptyType() 637 gpuContext->PurgeUnlockedResources(true); in TrimMemEmptyType() 644 gpuContext->FlushAndSubmit(true); in TrimMemEmptyType() 713 if (gpuContext == nullptr) { in TrimMem() 717 TrimMemEmptyType(gpuContext); in TrimMem() 719 gpuContext->Flush(); in TrimMem() 723 gpuContext->Flush(); in TrimMem() 724 gpuContext->FreeGpuResources(); in TrimMem() 727 gpuContext->Flush(); in TrimMem() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/memory/ |
H A D | rs_tag_tracker.cpp | 24 …Tracker::RSTagTracker(Drawing::GPUContext* gpuContext, RSTagTracker::TAGTYPE tagType) : gpuContext… in RSTagTracker() argument 84 RSTagTracker::RSTagTracker(Drawing::GPUContext* gpuContext, NodeId nodeId, in RSTagTracker() argument 86 : gpuContext_(gpuContext) in RSTagTracker() 100 …Tracker::RSTagTracker(Drawing::GPUContext* gpuContext, Drawing::GPUResourceTag& tag) : gpuContext_… in RSTagTracker() argument
|
/ohos5.0/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>(); variable 163 EXPECT_EQ(RSPixelMapUtil::ConvertYUVPixelMapToDrawingImage(gpuContext, pixelmap), nullptr); 165 EXPECT_EQ(RSPixelMapUtil::ConvertYUVPixelMapToDrawingImage(gpuContext, pixelmap), nullptr); 167 EXPECT_EQ(RSPixelMapUtil::ConvertYUVPixelMapToDrawingImage(gpuContext, pixelmap), nullptr); 209 std::shared_ptr<Drawing::GPUContext> gpuContext; variable 211 RSPixelMapUtil::ConvertYUVPixelMapToDrawingImage(gpuContext, pixelmap); 212 gpuContext = std::make_shared<Drawing::GPUContext>(); 213 EXPECT_NE(nullptr, gpuContext); 214 RSPixelMapUtil::ConvertYUVPixelMapToDrawingImage(gpuContext, pixelmap); 218 auto image = RSPixelMapUtil::ConvertYUVPixelMapToDrawingImage(gpuContext, pixelmap);
|
H A D | rs_image_base_test.cpp | 268 std::shared_ptr<Drawing::GPUContext> gpuContext = nullptr; variable 269 imageBase->ProcessYUVImage(gpuContext); 270 gpuContext = std::make_shared<Drawing::GPUContext>(); 271 imageBase->ProcessYUVImage(gpuContext); 275 imageBase->ProcessYUVImage(gpuContext); 276 EXPECT_EQ(RSPixelMapUtil::ConvertYUVPixelMapToDrawingImage(gpuContext, pixelMap), nullptr);
|
/ohos5.0/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() 37 gpuContext->Flush(); in ClearRedundantResources() 39 gpuContext->PerformDeferredCleanup(std::chrono::seconds(10)); in ClearRedundantResources()
|
/ohos5.0/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, voi… 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) ov… 64 …bool BuildFromCompressed(GPUContext& gpuContext, const std::shared_ptr<Data>& data, int width, int… 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, con… in MakeFromBackendRenderTarget() argument 90 return SkiaSurface::MakeFromBackendRenderTarget(gpuContext, info, origin, in MakeFromBackendRenderTarget() 94 std::shared_ptr<Surface> SkiaStaticFactory::MakeFromBackendTexture(GPUContext* gpuContext, const Te… 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… in MakeFromYUVAPixmaps() argument 110 return SkiaImage::MakeFromYUVAPixmaps(gpuContext, info, memory); in MakeFromYUVAPixmaps()
|
/ohos5.0/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 T… 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 Textur… 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() 169 return DDGRStaticFactory::MakeFromYUVAPixmaps(gpuContext, info, memory); in MakeFromYUVAPixmaps() [all …]
|
/ohos5.0/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 Texture… in MakeFromBackendRenderTarget() argument 52 return StaticFactory::MakeFromBackendRenderTarget(gpuContext, info, origin, in MakeFromBackendRenderTarget() 57 std::shared_ptr<Surface> Surface::MakeFromBackendTexture(GPUContext* gpuContext, const TextureInfo&… 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 Ima… in MakeRenderTarget() argument 67 return StaticFactory::MakeRenderTarget(gpuContext, budgeted, imageInfo); in MakeRenderTarget()
|
/ohos5.0/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 …al 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 wi… 68 …virtual bool BuildFromTexture(GPUContext& gpuContext, const TextureInfo& info, TextureOrigin origi… 71 virtual bool BuildFromSurface(GPUContext& gpuContext, Surface& surface, TextureOrigin origin,
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/engine_adapter/ |
H A D | static_factory_test.cpp | 96 auto gpuContext = new GPUContext(); variable 97 ASSERT_TRUE(gpuContext != nullptr); 104 …auto surface = StaticFactory::MakeFromBackendRenderTarget(gpuContext, info, TextureOrigin::TOP_LEF… 108 surface = StaticFactory::MakeFromBackendRenderTarget(gpuContext, info, TextureOrigin::TOP_LEFT, 112 delete gpuContext;
|
/ohos5.0/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()
|
/ohos5.0/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);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/image/ |
H A D | image.h | 267 …static std::shared_ptr<Image> MakeFromYUVAPixmaps(GPUContext& gpuContext, const YUVInfo& info, voi… 275 bool BuildFromBitmap(GPUContext& gpuContext, const Bitmap& bitmap); 288 …bool BuildFromCompressed(GPUContext& gpuContext, const std::shared_ptr<Data>& data, int width, int… 301 bool BuildFromTexture(GPUContext& gpuContext, const TextureInfo& info, TextureOrigin origin, 315 bool BuildFromSurface(GPUContext& gpuContext, Surface& surface, TextureOrigin origin, 332 … bool BuildSubset(const std::shared_ptr<Image>& image, const RectI& rect, GPUContext& gpuContext);
|
/ohos5.0/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 TextureI… 90 …static std::shared_ptr<Surface> MakeFromBackendTexture(GPUContext* gpuContext, const TextureInfo& … 101 …static std::shared_ptr<Surface> MakeRenderTarget(GPUContext* gpuContext, bool budgeted, const Imag…
|