projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change DebugPriority name
[platform/core/uifw/dali-toolkit.git]
/
automated-tests
/
src
/
dali-toolkit
/
dali-toolkit-test-utils
/
test-graphics-controller.cpp
diff --git
a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-controller.cpp
b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-controller.cpp
index
6a8eab4
..
04d193c
100644
(file)
--- a/
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-controller.cpp
+++ b/
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-controller.cpp
@@
-32,6
+32,8
@@
#include <iostream>
#include <sstream>
#include <iostream>
#include <sstream>
+#include <any>
+
namespace Dali
{
std::ostream& operator<<(std::ostream& o, const Graphics::BufferCreateInfo& bufferCreateInfo)
namespace Dali
{
std::ostream& operator<<(std::ostream& o, const Graphics::BufferCreateInfo& bufferCreateInfo)
@@
-696,6
+698,13
@@
void TestGraphicsController::ProcessCommandBuffer(TestGraphicsCommandBuffer& com
case CommandType::DRAW_NATIVE:
{
auto info = &cmd.data.draw.drawNative.drawNativeInfo;
case CommandType::DRAW_NATIVE:
{
auto info = &cmd.data.draw.drawNative.drawNativeInfo;
+
+ if(info->glesNativeInfo.eglSharedContextStoragePointer)
+ {
+ auto* anyContext = reinterpret_cast<std::any*>(info->glesNativeInfo.eglSharedContextStoragePointer);
+ *anyContext = reinterpret_cast<void*>(0x12345678u);
+ }
+
CallbackBase::ExecuteReturn<bool>(*info->callback, info->userData);
break;
}
CallbackBase::ExecuteReturn<bool>(*info->callback, info->userData);
break;
}
@@
-1293,7
+1302,7
@@
Graphics::MemoryRequirements TestGraphicsController::GetBufferMemoryRequirements
return Graphics::MemoryRequirements{};
}
return Graphics::MemoryRequirements{};
}
-
const Graphics::TextureProperties&
TestGraphicsController::GetTextureProperties(const Graphics::Texture& texture)
+
Graphics::TextureProperties
TestGraphicsController::GetTextureProperties(const Graphics::Texture& texture)
{
static Graphics::TextureProperties textureProperties{};
mCallStack.PushCall("GetTextureProperties", "");
{
static Graphics::TextureProperties textureProperties{};
mCallStack.PushCall("GetTextureProperties", "");