X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftest-graphics-texture.h;h=58f7738b2cc378c8b749a079b750194a8becc0e6;hp=3eb54d33760a98dae0693f46ef8fe9af71d3827c;hb=HEAD;hpb=d74d70d51ed70b00e29a2b6feac5419124fffc49 diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-texture.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-texture.h index 3eb54d3..4d86364 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-texture.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-texture.h @@ -2,7 +2,7 @@ #define DALI_TEST_GRAPHICS_TEXTURE_H /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2023 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. @@ -31,7 +31,7 @@ class TestGraphicsTexture : public Graphics::Texture public: TestGraphicsTexture(TestGlAbstraction& glAbstraction, const Graphics::TextureCreateInfo& createInfo); - ~TestGraphicsTexture(); + ~TestGraphicsTexture() override; /** * Initialize the texture: allocate gl mem, apply default samplers @@ -49,12 +49,28 @@ public: GLuint GetTarget(); /** + * Get the texture type + */ + Graphics::TextureType GetType() + { + return mCreateInfo.textureType; + } + + /** + * Get the texture format + */ + Graphics::Format GetFormat() + { + return mCreateInfo.format; + } + + /** * Bind this texture, ensure Native image is initialized if necessary. */ void Bind(uint32_t textureUnit); /** - * Prepare ensures that the native texture is updated if necessary (SourceChanged) + * Prepare ensures that the native texture is updated if necessary */ void Prepare();