/ohos5.0/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 62 void GPUContext::Flush() in Flush() 67 void GPUContext::FlushAndSubmit(bool syncCpu) in FlushAndSubmit() 72 void GPUContext::Submit() in Submit() 102 void GPUContext::FreeGpuResources() in FreeGpuResources() 172 void GPUContext::ResetContext() in ResetContext() 178 void GPUContext::StoreVkPipelineCacheData() in StoreVkPipelineCacheData() 194 void GPUContext::VmaDefragment() in VmaDefragment() 199 void GPUContext::BeginFrame() in BeginFrame() 204 void GPUContext::EndFrame() in EndFrame() [all …]
|
H A D | image.cpp | 75 std::shared_ptr<Image> Image::MakeFromYUVAPixmaps(GPUContext& gpuContext, const YUVInfo& info, void… in MakeFromYUVAPixmaps() 80 bool Image::BuildFromBitmap(GPUContext& gpuContext, const Bitmap& bitmap) in BuildFromBitmap() 90 bool Image::BuildFromCompressed(GPUContext& gpuContext, const std::shared_ptr<Data>& data, int widt… in BuildFromCompressed() 96 bool Image::BuildFromSurface(GPUContext& gpuContext, Surface& surface, TextureOrigin origin, in BuildFromSurface() 102 bool Image::BuildFromTexture(GPUContext& gpuContext, const TextureInfo& info, TextureOrigin origin, in BuildFromTexture() 110 bool Image::BuildSubset(const std::shared_ptr<Image>& image, const RectI& rect, GPUContext& gpuCont… in BuildSubset() 120 bool Image::IsValid(GPUContext* context) const in IsValid()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/memory/ |
H A D | rs_memory_manager.h | 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); 48 static void ReleaseUnlockAndSafeCacheGpuResource(Drawing::GPUContext* grContext); 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 …]
|
H A D | rs_memory_manager.cpp | 113 void MemoryManager::ReleaseAllGpuResource(Drawing::GPUContext* gpuContext, pid_t pid) in ReleaseAllGpuResource() 168 void MemoryManager::ReleaseUnlockGpuResource(Drawing::GPUContext* grContext, pid_t pid) in ReleaseUnlockGpuResource() 188 void MemoryManager::ReleaseUnlockAndSafeCacheGpuResource(Drawing::GPUContext* gpuContext) in ReleaseUnlockAndSafeCacheGpuResource() 223 void MemoryManager::FlushGpuMemoryInWaitQueue(Drawing::GPUContext* gpuContext) in FlushGpuMemoryInWaitQueue() 235 Drawing::GPUContext* gpuContext, const std::function<bool(void)>& nextFrameHasArrived) in SuppressGpuCacheBelowCertainRatio() 246 float MemoryManager::GetAppGpuMemoryInMB(Drawing::GPUContext* gpuContext) in GetAppGpuMemoryInMB() 409 void MemoryManager::DumpAllGpuInfo(DfxString& log, const Drawing::GPUContext* gpuContext, in DumpAllGpuInfo() 470 void MemoryManager::DumpGpuStats(DfxString& log, const Drawing::GPUContext* gpuContext) in DumpGpuStats() 581 void MemoryManager::SetGpuMemoryLimit(Drawing::GPUContext* gpuContext) in SetGpuMemoryLimit() 590 void MemoryManager::MemoryOverCheck(Drawing::GPUContext* gpuContext) in MemoryOverCheck() [all …]
|
/ohos5.0/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>(); 158 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); 180 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); 197 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); 216 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); 238 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); 251 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); 265 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); 280 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); 295 std::unique_ptr<GPUContext> gpuContext = std::make_unique<GPUContext>(); [all …]
|
/ohos5.0/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; 84 Drawing::GPUContext* gpuContext = new Drawing::GPUContext; 101 Drawing::GPUContext* gpuContext = new Drawing::GPUContext; 117 Drawing::GPUContext* gpuContext = new Drawing::GPUContext; 134 Drawing::GPUContext* gpuContext = nullptr; 149 Drawing::GPUContext* gpuContext = nullptr; 166 Drawing::GPUContext* gpuContext = new Drawing::GPUContext; 184 Drawing::GPUContext* gpuContext = new Drawing::GPUContext; 201 Drawing::GPUContext* gpuContext = new Drawing::GPUContext; 218 Drawing::GPUContext* gpuContext = nullptr; [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/ |
H A D | image_impl.h | 35 class GPUContext; variable 63 virtual bool BuildFromBitmap(GPUContext& gpuContext, const Bitmap& bitmap) = 0; 65 …virtual bool BuildSubset(const std::shared_ptr<Image> image, const RectI& rect, GPUContext& gpuCon… 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, 74 virtual bool IsValid(GPUContext* context) const = 0;
|
/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, 72 bool IsValid(GPUContext* context) const override;
|
H A D | skia_static_factory.h | 53 …static std::shared_ptr<Surface> MakeFromBackendRenderTarget(GPUContext* gpuContext, const TextureI… 57 …static std::shared_ptr<Surface> MakeFromBackendTexture(GPUContext* gpuContext, const TextureInfo& … 60 …static std::shared_ptr<Surface> MakeRenderTarget(GPUContext* gpuContext, bool budgeted, const Imag… 61 …static std::shared_ptr<Image> MakeFromYUVAPixmaps(GPUContext& gpuContext, const YUVInfo& info, voi…
|
H A D | skia_surface.h | 45 …static std::shared_ptr<Surface> MakeFromBackendRenderTarget(GPUContext* gpuContext, const TextureI… 49 …static std::shared_ptr<Surface> MakeFromBackendTexture(GPUContext* gpuContext, const TextureInfo& … 52 …static std::shared_ptr<Surface> MakeRenderTarget(GPUContext* gpuContext, bool budgeted, const Imag…
|
/ohos5.0/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()
|
/ohos5.0/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_;
|
/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); 48 Drawing::GPUContext* gpuContext_ = nullptr;
|
/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); 336 bool IsValid(GPUContext* context) const;
|
/ohos5.0/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;
|
/ohos5.0/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 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…
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/pointer_render/ |
H A D | rs_pointer_render_manager.h | 43 …lorPicker(std::shared_ptr<RSProcessor> processor, std::shared_ptr<Drawing::GPUContext> gpuContext); 65 bool GetIntersectImageBySubset(std::shared_ptr<Drawing::GPUContext> gpuContext); 68 std::shared_ptr<Drawing::GPUContext>& context, const BufferDrawParam& param); 72 std::shared_ptr<Drawing::GPUContext>& context, const BufferDrawParam& param);
|
/ohos5.0/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;
|
/ohos5.0/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) : gpuCon… in RSTagTracker() 84 RSTagTracker::RSTagTracker(Drawing::GPUContext* gpuContext, NodeId nodeId, in RSTagTracker() 100 RSTagTracker::RSTagTracker(Drawing::GPUContext* gpuContext, Drawing::GPUResourceTag& tag) : gpuCont… in RSTagTracker()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/parallel_render/ |
H A D | rs_sub_thread.h | 60 std::shared_ptr<Drawing::GPUContext> GetGrContext() const in GetGrContext() 68 std::shared_ptr<Drawing::GPUContext> CreateShareGrContext(); 78 std::shared_ptr<Drawing::GPUContext> grContext_ = nullptr;
|
/ohos5.0/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 TextureI… 57 …static std::shared_ptr<Surface> MakeFromBackendTexture(GPUContext* gpuContext, const TextureInfo& … 60 …static std::shared_ptr<Surface> MakeRenderTarget(GPUContext* gpuContext, bool budgeted, const Imag… 61 …static std::shared_ptr<Image> MakeFromYUVAPixmaps(GPUContext& gpuContext, const YUVInfo& info, voi…
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/ |
H A D | rs_background_thread.cpp | 102 std::shared_ptr<Drawing::GPUContext> RSBackgroundThread::GetShareGPUContext() const in GetShareGPUContext() 107 std::shared_ptr<Drawing::GPUContext> RSBackgroundThread::CreateShareGPUContext() in CreateShareGPUContext() 112 auto gpuContext = std::make_shared<Drawing::GPUContext>(); in CreateShareGPUContext()
|
/ohos5.0/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>(); 207 … std::shared_ptr<Drawing::GPUContext> drGPUContextTest2 = std::make_shared<Drawing::GPUContext>();
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/skia_adapter/ |
H A D | skia_image_test.cpp | 108 GPUContext context; 116 GPUContext context; 136 GPUContext context; 150 GPUContext context; 172 GPUContext context; 260 GPUContext context; 274 GPUContext gpuContext; 294 GPUContext context;
|
/ohos5.0/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;
|