projects
/
platform
/
core
/
uifw
/
dali-adaptor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Tizen] Do not call gl functions during shutdown
[platform/core/uifw/dali-adaptor.git]
/
dali
/
internal
/
graphics
/
gles-impl
/
gles-graphics-shader.h
diff --git
a/dali/internal/graphics/gles-impl/gles-graphics-shader.h
b/dali/internal/graphics/gles-impl/gles-graphics-shader.h
index
d96223f
..
180a14b
100644
(file)
--- a/
dali/internal/graphics/gles-impl/gles-graphics-shader.h
+++ b/
dali/internal/graphics/gles-impl/gles-graphics-shader.h
@@
-42,15
+42,12
@@
public:
/**
* @brief Destructor
*/
/**
* @brief Destructor
*/
- ~Shader() override
= default
;
+ ~Shader() override;
/**
* @brief Called when GL resources are destroyed
*/
/**
* @brief Called when GL resources are destroyed
*/
- void DestroyResource() override
- {
- // TODO: Implement destroying the resource
- }
+ void DestroyResource() override;
/**
* @brief Called when initializing the resource
/**
* @brief Called when initializing the resource
@@
-59,29
+56,28
@@
public:
*/
bool InitializeResource() override
{
*/
bool InitializeResource() override
{
- // TODO: Implement initializing resource
- return {};
+ // The Shader has instant initialization, hence no need to initialize GL resource
+ // here
+ return true;
}
/**
* @brief Compiles shader
}
/**
* @brief Compiles shader
- * @return
+ *
+ * @return True on success
*/
*/
- bool Compile() const;
+
[[nodiscard]]
bool Compile() const;
/**
* @brief Called when UniquePtr<> on client-side dies
*/
/**
* @brief Called when UniquePtr<> on client-side dies
*/
- void DiscardResource() override
- {
- // TODO: Implement moving to the discard queue
- }
+ void DiscardResource() override;
uint32_t GetGLShader() const;
private:
struct Impl;
uint32_t GetGLShader() const;
private:
struct Impl;
- std::unique_ptr<Impl> mImpl;
+ std::unique_ptr<Impl> mImpl
{nullptr}
;
};
} // namespace Dali::Graphics::GLES
};
} // namespace Dali::Graphics::GLES