{
SysLog(NID_GRP, "[] cannot get the buffer!", handle);
}
- ((Tizen::Ui::Animations::TextureInfo*)handle)->updated = true;
}
this->_pitch = pitch;
{
SysLog(NID_GRP, "[] cannot get the buffer!", handle);
}
-
- ((Tizen::Ui::Animations::TextureInfo*)handle)->updated = true;
}
this->_pBuffer += (_y * pitch + _x);
{
SysLog(NID_GRP, "[] cannot get the buffer!", handle);
}
- ((Tizen::Ui::Animations::TextureInfo*)handle)->updated = true;
#endif
this->_pitch = pitch;
{
SysLog(NID_GRP, "[] cannot get the buffer!", handle);
}
- ((Tizen::Ui::Animations::TextureInfo*)handle)->updated = true;
#endif
this->_pBuffer += (_y * pitch + _x);
, __pMesh(null)
, __pLight(null)
, __pMaterial(null)
- , __textureUpdated(true)
, __alphaUpdated(true)
, __textureRepeated(false)
, __pShaderProgram(null)
__pSurface = pNewSurface;
}
-
- __textureUpdated = true;
- }
-
- if(static_cast<_GlVisualElementSurfaceImpl*>(pSurfaceImpl)->IsInvalidated())
- {
- __textureUpdated = true;
- pSurfaceImpl->Invalidate(false);
}
// Set texture info
Light* __pLight;
Material* __pMaterial;
- bool __textureUpdated;
bool __alphaUpdated;
bool __extraSurfaceUpdated[EXTRA_SURFACE_MAX];
bool __textureRepeated;
//#define PRINT(...) fprintf(stderr, __VA_ARGS__)
#define PRINT(...)
+#if 0
static bool __checkCondition(bool condition)
{
bool bCond = condition;
}
return bCond;
}
+#endif
+
//#define ASSERT(__CONDITION__,...) {__checkCondition(__CONDITION__); SysAssertf(__CONDITION__,__VA_ARGS__);}
#define ASSERT(...) SysAssertf(__VA_ARGS__)
__textureId = pNode->__textureId;
__textureRepeated = pNode->__textureRepeated;
+ if (__pSurfaceInfo->updated)
+ {
+ __isTexUpdated = true;
+ pSurfaceImpl->Invalidate(false);
+ }
+ else
+ {
+ __isTexUpdated = false;
+ }
+
__pTexCoordBuffer[textureIndex++] = pNode->__pVertices[3];
__pTexCoordBuffer[textureIndex++] = pNode->__pVertices[4];
_VisualElementSurfaceImpl* pSurfaceImpl = _VisualElementSurfaceImpl::GetInstance(*pNode->GetSurface());
__pSurfaceInfo = (TextureInfo*)pSurfaceImpl->GetNativeHandle();
+
__textureId = pNode->__textureId;
__textureRepeated = pNode->__textureRepeated;
+ if (__pSurfaceInfo->updated)
+ {
+ __isTexUpdated = true;
+ pSurfaceImpl->Invalidate(false);
+ }
+ else
+ {
+ __isTexUpdated = false;
+ }
+
__pTexCoords = pMeshImpl->__pTexCoordinates;
if (_FloatCompare(pNode->__opacity, 1.0f))
}
}
- if (pNode->__textureUpdated)
- {
- __isTexUpdated = true;
- pNode->__textureUpdated = false;
- }
-
if (pNode->__alphaUpdated)
{
__isAlphaMaskUpdated = true;
glUniform1i(pProgramImpl->__uniformLocation[UNIFORM_SAMPLER2D_TEXTURE], 0);
- if (!__pRenderQueue[i].__isMesh || __pRenderQueue[i].__isTexUpdated)
+ if (__pRenderQueue[i].__isTexUpdated)
{
__pGlContext->UpdateTexture(__pRenderQueue[i].__pSurfaceInfo);
-
- __pRenderQueue[i].__isTexUpdated = false;
}
}
else
: _VisualElementSurfaceImpl(size)
, __textureInfo()
, __pLayer(null)
- , __needToUpdate(true) // CHECKME: Is it needed to set 'True' here ?
{
ClearLastResult();
if (_VisualElementSurfaceManager::GetInstance()->CreateSurface(this) != E_SUCCESS)
{
SysAssertf(false, "Cannot initialize GL texture for surface");
- __needToUpdate = false;
}
}
: _VisualElementSurfaceImpl(size)
, __textureInfo()
, __pLayer(null)
- , __needToUpdate(true) // CHECKME: Is it needed to set 'True' here ?
{
ClearLastResult();
if (_VisualElementSurfaceManager::GetInstance()->CreateSurface(this) != E_SUCCESS)
{
SysAssertf(false, "Cannot initialize GL texture for surface");
- __needToUpdate = false;
}
}
: _VisualElementSurfaceImpl(FloatDimension(bitmap.GetWidthF(),bitmap.GetHeightF()))
, __textureInfo()
, __pLayer(null)
- , __needToUpdate(true) // CHECKME: Is it needed to set 'True' here ?
{
ClearLastResult();
if (_VisualElementSurfaceManager::GetInstance()->CreateSurface(this) != E_SUCCESS)
{
SysAssertf(false, "Cannot initialize GL texture for surface");
- __needToUpdate = false;
}
// draw bitmap on texture buffer
if (_VisualElementSurfaceManager::GetInstance()->CreateSurface(this) != E_SUCCESS)
{
SysAssertf(false, "Cannot initialize GL texture for surface");
- __needToUpdate = false;
}
}
virtual result GetBufferInfo(Tizen::Graphics::BufferInfo& bufferInfo) const;
virtual Tizen::Graphics::Dimension GetPhysicalSize(void) const;
- virtual void Invalidate(bool invalidate) { __needToUpdate = invalidate; }
+ virtual void Invalidate(bool invalidate) { __textureInfo.updated = invalidate; }
const _GlLayer* GetLayer(void) const;
- bool IsInvalidated(void) const { return __needToUpdate; }
-
private:
_GlVisualElementSurfaceImpl(void); // no implementation
_GlVisualElementSurfaceImpl(const _GlVisualElementSurfaceImpl& rhs);
private:
TextureInfo __textureInfo;
const _GlLayer* __pLayer;
- bool __needToUpdate;
Tizen::Base::String __imageName;
friend class _VisualElementSurfaceImpl;
//#define PRINT(...) fprintf(stderr, __VA_ARGS__)
#define PRINT(...)
+#if 0
static bool __checkCondition(bool condition)
{
bool bCond = condition;
}
return bCond;
}
+#endif
+
//#define ASSERT(__CONDITION__,...) {__checkCondition(__CONDITION__); SysAssertf(__CONDITION__,__VA_ARGS__);}
#define ASSERT(...) SysAssertf(__VA_ARGS__)