X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fgraphics%2Fgles-impl%2Fgles-graphics-command-buffer.h;h=c2ae566877fa105a8b2b789dfa07b526ab1cb429;hb=815490375bbb42ef8454fa5f474268084e08b62f;hp=8e2aeacc82611b40aae281337f10b1a78035d66f;hpb=69ca10aa718fba4929bd61e17ccd3a9050d16f0f;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/graphics/gles-impl/gles-graphics-command-buffer.h b/dali/internal/graphics/gles-impl/gles-graphics-command-buffer.h index 8e2aeac..c2ae566 100644 --- a/dali/internal/graphics/gles-impl/gles-graphics-command-buffer.h +++ b/dali/internal/graphics/gles-impl/gles-graphics-command-buffer.h @@ -2,7 +2,7 @@ #define DALI_GRAPHICS_GLES_COMMAND_BUFFER_H /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,6 +66,7 @@ enum class CommandType SET_DEPTH_COMPARE_OP, SET_DEPTH_TEST_ENABLE, SET_DEPTH_WRITE_ENABLE, + DRAW_NATIVE, }; /** @@ -215,6 +216,11 @@ struct Command { bool enabled; } colorMask; + + struct + { + DrawNativeInfo drawNativeInfo; + } drawNative; }; }; @@ -230,9 +236,9 @@ public: /** * @copydoc Dali::Graphics::CommandBuffer::BindVertexBuffers */ - void BindVertexBuffers(uint32_t firstBinding, - std::vector buffers, - std::vector offsets) override; + void BindVertexBuffers(uint32_t firstBinding, + const std::vector& buffers, + const std::vector& offsets) override; /** * @copydoc Dali::Graphics::CommandBuffer::BindUniformBuffers @@ -247,12 +253,12 @@ public: /** * @copydoc Dali::Graphics::CommandBuffer::BindTextures */ - void BindTextures(std::vector& textureBindings) override; + void BindTextures(const std::vector& textureBindings) override; /** * @copydoc Dali::Graphics::CommandBuffer::BindSamplers */ - void BindSamplers(std::vector& samplerBindings) override; + void BindSamplers(const std::vector& samplerBindings) override; /** * @copydoc Dali::Graphics::CommandBuffer::BindPushConstants @@ -272,10 +278,10 @@ public: * @copydoc Dali::Graphics::CommandBuffer::BeginRenderPass */ void BeginRenderPass( - Graphics::RenderPass* renderPass, - Graphics::RenderTarget* renderTarget, - Rect2D renderArea, - std::vector clearValues) override; + Graphics::RenderPass* renderPass, + Graphics::RenderTarget* renderTarget, + Rect2D renderArea, + const std::vector& clearValues) override; /** * @copydoc Dali::Graphics::CommandBuffer::EndRenderPass @@ -316,6 +322,11 @@ public: uint32_t stride) override; /** + * @copydoc Dali::Graphics::CommandBuffer::DrawNative + */ + void DrawNative(const DrawNativeInfo* drawNativeInfo) override; + + /** * @copydoc Dali::Graphics::CommandBuffer::Reset */ void Reset() override; @@ -427,6 +438,9 @@ public: */ void DiscardResource() override; + // Get the total memory usage of this command buffer + std::size_t GetCapacity(); + private: std::unique_ptr mCommandPool; ///< Pool of commands and transient memory };