/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/image/ |
H A D | gpu_context.cpp | 27 GPUContext::GPUContext() : impl_(ImplFactory::CreateGPUContextImpl()) {} in GPUContext() function in OHOS::Rosen::Drawing::GPUContext 29 bool GPUContext::BuildFromGL(const GPUContextOptions& options) in BuildFromGL() 35 bool GPUContext::BuildFromVK(const GrVkBackendContext& context) in BuildFromVK() 43 bool GPUContext::BuildFromVK(const GrVkBackendContext& context, const GPUContextOptions& options) in BuildFromVK() 52 void GPUContext::GetResourceCacheLimits(int* maxResource, size_t* maxResourceBytes) const in GetResourceCacheLimits() 59 void GPUContext::SetResourceCacheLimits(int maxResource, size_t maxResourceBytes) in SetResourceCacheLimits() 64 void GPUContext::Flush() in Flush() 69 void GPUContext::FlushAndSubmit(bool syncCpu) in FlushAndSubmit() 74 void GPUContext [all...] |
H A D | image.cpp | 70 std::shared_ptr<Image> Image::MakeFromYUVAPixmaps(GPUContext& gpuContext, const YUVInfo& info, void* memory) in MakeFromYUVAPixmaps() 75 bool Image::BuildFromBitmap(GPUContext& gpuContext, const Bitmap& bitmap) in BuildFromBitmap() 85 bool Image::BuildFromCompressed(GPUContext& gpuContext, const std::shared_ptr<Data>& data, int width, int height, in BuildFromCompressed() 91 bool Image::BuildFromSurface(GPUContext& gpuContext, Surface& surface, TextureOrigin origin, in BuildFromSurface() 97 bool Image::BuildFromTexture(GPUContext& gpuContext, const TextureInfo& info, TextureOrigin origin, in BuildFromTexture() 105 bool Image::BuildSubset(const std::shared_ptr<Image>& image, const RectI& rect, GPUContext& gpuContext) in BuildSubset() 115 bool Image::IsValid(GPUContext* context) const in IsValid()
|
/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); 33 static void DumpDrawingGpuMemory(DfxString& log, const Drawing::GPUContext* grContext, 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* gpuContex [all...] |
H A D | rs_memory_manager.cpp | 89 void MemoryManager::ReleaseAllGpuResource(Drawing::GPUContext* gpuContext, Drawing::GPUResourceTag& tag) in ReleaseAllGpuResource() 102 void MemoryManager::ReleaseAllGpuResource(Drawing::GPUContext* gpuContext, pid_t pid) in ReleaseAllGpuResource() 110 void MemoryManager::ReleaseUnlockGpuResource(Drawing::GPUContext* gpuContext, Drawing::GPUResourceTag& tag) in ReleaseUnlockGpuResource() 123 void MemoryManager::ReleaseUnlockGpuResource(Drawing::GPUContext* gpuContext, std::set<pid_t> exitedPidSet) in ReleaseUnlockGpuResource() 137 void MemoryManager::PurgeCacheBetweenFrames(Drawing::GPUContext* gpuContext, bool scratchResourceOnly, in PurgeCacheBetweenFrames() 149 void MemoryManager::ReleaseUnlockGpuResource(Drawing::GPUContext* grContext, NodeId surfaceNodeId) in ReleaseUnlockGpuResource() 157 void MemoryManager::ReleaseUnlockGpuResource(Drawing::GPUContext* grContext, pid_t pid) in ReleaseUnlockGpuResource() 165 void MemoryManager::ReleaseUnlockGpuResource(Drawing::GPUContext* gpuContext, bool scratchResourcesOnly) in ReleaseUnlockGpuResource() 177 void MemoryManager::ReleaseUnlockAndSafeCacheGpuResource(Drawing::GPUContext* gpuContext) in ReleaseUnlockAndSafeCacheGpuResource() 189 void MemoryManager::SetGpuCacheSuppressWindowSwitch(Drawing::GPUContext* gpuContex [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/image/ |
H A D | gpu_context_test.cpp | 140 * @tc.desc: Test for creating GPUContext. 146 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); in HWTEST_F() 152 * @tc.desc: Test for creating a GL GPUContext for a backend context. 158 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); in HWTEST_F() 174 * @tc.desc: Test for creating a GL GPUContext for a backend context. 180 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); in HWTEST_F() 191 * @tc.desc: Test for creating a VK GPUContext fo [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() 84 Drawing::GPUContext* gpuContext = new Drawing::GPUContext; in HWTEST_F() 101 Drawing::GPUContext* gpuContext = new Drawing::GPUContext; in HWTEST_F() 117 Drawing::GPUContext* gpuContext = new Drawing::GPUContext; in HWTEST_F() 134 Drawing::GPUContext* gpuContext = nullptr; in HWTEST_F() 149 Drawing::GPUContext* gpuContext = nullptr; in HWTEST_F() 166 Drawing::GPUContext* gpuContex in HWTEST_F() [all...] |
/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); 48 Drawing::GPUContext* gpuContext_ = nullptr;
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_gpu_context.cpp | 24 static GPUContext* CastToGPUContext(OH_Drawing_GpuContext* cGpuContext) in CastToGPUContext() 26 return reinterpret_cast<GPUContext*>(cGpuContext); in CastToGPUContext() 33 GPUContext* context = new GPUContext(); in OH_Drawing_GpuContextCreateFromGL()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/ |
H A D | image_impl.h | 35 class GPUContext; 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, 74 virtual bool IsValid(GPUContext* context) const = 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, 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, 72 bool IsValid(GPUContext* context) const override;
|
H A D | skia_static_factory.h | 53 static std::shared_ptr<Surface> MakeFromBackendRenderTarget(GPUContext* gpuContext, const TextureInfo& info, 57 static std::shared_ptr<Surface> MakeFromBackendTexture(GPUContext* gpuContext, const TextureInfo& info, 60 static std::shared_ptr<Surface> MakeRenderTarget(GPUContext* gpuContext, bool budgeted, const ImageInfo& imageInfo); 61 static std::shared_ptr<Image> MakeFromYUVAPixmaps(GPUContext& gpuContext, const YUVInfo& info, void* memory);
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/backend/ |
H A D | rs_vulkan_context.h | 201 std::shared_ptr<Drawing::GPUContext> CreateDrawingContext(bool independentContext = false,
203 std::shared_ptr<Drawing::GPUContext> GetDrawingContext();
205 std::shared_ptr<Drawing::GPUContext> GetHardWareGrContext() const
in GetHardWareGrContext() 238 std::shared_ptr<Drawing::GPUContext> hcontext_ = nullptr;
257 std::shared_ptr<Drawing::GPUContext> CreateNewDrawingContext(bool isProtected = false);
325 std::shared_ptr<Drawing::GPUContext> CreateDrawingContext(bool isProtected = false);
326 std::shared_ptr<Drawing::GPUContext> GetDrawingContext();
336 std::shared_ptr<Drawing::GPUContext> GetHardWareGrContext()
in GetHardWareGrContext() 358 static thread_local std::shared_ptr<Drawing::GPUContext> drawingContext_;
359 static thread_local std::shared_ptr<Drawing::GPUContext> protectedDrawingContext [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/ |
H A D | rs_background_thread.h | 36 std::shared_ptr<Drawing::GPUContext> GetShareGPUContext() const;
54 std::shared_ptr<Drawing::GPUContext> CreateShareGPUContext();
55 std::shared_ptr<Drawing::GPUContext> gpuContext_ = nullptr;
|
/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, void* memory); 275 bool BuildFromBitmap(GPUContext& gpuContext, const Bitmap& bitmap); 288 bool BuildFromCompressed(GPUContext& gpuContext, const std::shared_ptr<Data>& data, int width, int height, 301 bool BuildFromTexture(GPUContext& gpuContext, const TextureInfo& info, TextureOrigin origin, 315 bool BuildFromSurface(GPUContext& gpuContext, Surface& surface, TextureOrigin origin, 329 * @param gpuContext the GPUContext in play 332 bool BuildSubset(const std::shared_ptr<Image>& image, const RectI& rect, GPUContext& gpuContext); 336 bool IsValid(GPUContext* context) const;
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/parallel_render/resource/ |
H A D | rs_upload_resource_thread.cpp | 147 std::shared_ptr<Drawing::GPUContext> RSUploadResourceThread::GetShareGrContext() const in GetShareGrContext() 151 std::shared_ptr<Drawing::GPUContext> RSUploadResourceThread::CreateShareGrContext() in CreateShareGrContext() 154 std::shared_ptr<Drawing::GPUContext> gpuContext = nullptr; in CreateShareGrContext() 158 gpuContext = std::make_shared<Drawing::GPUContext>(); in CreateShareGrContext() 176 gpuContext = std::make_shared<Drawing::GPUContext>(); in CreateShareGrContext()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/ |
H A D | rs_canvas_drawing_render_node_drawable.h | 48 Drawing::Bitmap GetBitmap(Drawing::GPUContext* grContext); 78 bool GpuContextResetGL(int width, int height, std::shared_ptr<Drawing::GPUContext>& gpuContext); 81 bool GpuContextResetVk(int width, int height, std::shared_ptr<Drawing::GPUContext>& gpuContext); 84 bool GetCurrentContext(std::shared_ptr<Drawing::GPUContext>& grContext); 94 bool GetCurrentContextAndImage(std::shared_ptr<Drawing::GPUContext>& grContext,
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/magic_pointer_render/ |
H A D | rs_magic_pointer_render_manager.h | 43 void ProcessColorPicker(std::shared_ptr<RSProcessor> processor, std::shared_ptr<Drawing::GPUContext> gpuContext); 61 bool GetIntersectImageBySubset(std::shared_ptr<Drawing::GPUContext> gpuContext); 64 const std::shared_ptr<Drawing::GPUContext>& context, BufferDrawParam& param); 68 const std::shared_ptr<Drawing::GPUContext>& context, BufferDrawParam& param);
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/draw/ |
H A D | surface.h | 37 std::shared_ptr<GPUContext> gpuContext; 86 static std::shared_ptr<Surface> MakeFromBackendRenderTarget(GPUContext* gpuContext, const TextureInfo& info, 90 static std::shared_ptr<Surface> MakeFromBackendTexture(GPUContext* gpuContext, const TextureInfo& info, 101 static std::shared_ptr<Surface> MakeRenderTarget(GPUContext* gpuContext, bool budgeted, const ImageInfo& imageInfo);
|
/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() 92 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>();
in GPUContextFuzzTest002() 138 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>();
in GPUContextFuzzTest003()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/parallel_render/ |
H A D | rs_sub_thread.h | 61 std::shared_ptr<Drawing::GPUContext> GetGrContext() const in GetGrContext() 69 std::shared_ptr<Drawing::GPUContext> CreateShareGrContext(); 79 std::shared_ptr<Drawing::GPUContext> grContext_ = nullptr;
|
/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() 84 RSTagTracker::RSTagTracker(Drawing::GPUContext* gpuContext, NodeId nodeId, in RSTagTracker() 100 RSTagTracker::RSTagTracker(Drawing::GPUContext* gpuContext, Drawing::GPUResourceTag& tag) : gpuContext_(gpuContext) in RSTagTracker()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render_backend/ |
H A D | drawing_context.h | 35 GPUContext* GetDrawingContext() const; 41 std::shared_ptr<GPUContext> gpuContext_ = nullptr;
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/platform/ohos/backend/ |
H A D | rs_surface_frame_ohos_gl_test.cpp | 194 std::shared_ptr<Drawing::GPUContext> drGPUContextTest1 = std::make_shared<Drawing::GPUContext>();
in HWTEST_F() 207 std::shared_ptr<Drawing::GPUContext> drGPUContextTest2 = std::make_shared<Drawing::GPUContext>();
in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/ |
H A D | static_factory.h | 53 static std::shared_ptr<Surface> MakeFromBackendRenderTarget(GPUContext* gpuContext, const TextureInfo& info, 57 static std::shared_ptr<Surface> MakeFromBackendTexture(GPUContext* gpuContext, const TextureInfo& info, 60 static std::shared_ptr<Surface> MakeRenderTarget(GPUContext* gpuContext, bool budgeted, const ImageInfo& imageInfo); 61 static std::shared_ptr<Image> MakeFromYUVAPixmaps(GPUContext& gpuContext, const YUVInfo& info, void* memory);
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/render_context/ |
H A D | render_context.h | 47 Drawing::GPUContext* GetDrGPUContext() const in GetDrGPUContext() 52 std::shared_ptr<Drawing::GPUContext> GetSharedDrGPUContext() const in GetSharedDrGPUContext() 61 virtual bool SetUpGpuContext(std::shared_ptr<Drawing::GPUContext> drawingContext = nullptr); 147 std::shared_ptr<Drawing::GPUContext> drGPUContext_ = nullptr;
|