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] Implement partial update
[platform/core/uifw/dali-adaptor.git]
/
dali
/
internal
/
graphics
/
gles
/
egl-graphics.cpp
diff --git
a/dali/internal/graphics/gles/egl-graphics.cpp
b/dali/internal/graphics/gles/egl-graphics.cpp
old mode 100644
(file)
new mode 100755
(executable)
index
a54b9ed
..
2ce631e
--- a/
dali/internal/graphics/gles/egl-graphics.cpp
+++ b/
dali/internal/graphics/gles/egl-graphics.cpp
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 201
8
Samsung Electronics Co., Ltd.
+ * Copyright (c) 201
9
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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-44,6
+44,11
@@
void EglGraphics::SetGlesVersion( const int32_t glesVersion )
mGLES->SetGlesVersion( glesVersion );
}
mGLES->SetGlesVersion( glesVersion );
}
+void EglGraphics::SetIsSurfacelessContextSupported( const bool isSupported )
+{
+ mGLES->SetIsSurfacelessContextSupported( isSupported );
+}
+
void EglGraphics::Initialize( EnvironmentOptions* environmentOptions )
{
if( environmentOptions->GetGlesCallTime() > 0 )
void EglGraphics::Initialize( EnvironmentOptions* environmentOptions )
{
if( environmentOptions->GetGlesCallTime() > 0 )
@@
-57,19
+62,24
@@
void EglGraphics::Initialize( EnvironmentOptions* environmentOptions )
mDepthBufferRequired = static_cast< Integration::DepthBufferAvailable >( environmentOptions->DepthBufferRequired() );
mStencilBufferRequired = static_cast< Integration::StencilBufferAvailable >( environmentOptions->StencilBufferRequired() );
mDepthBufferRequired = static_cast< Integration::DepthBufferAvailable >( environmentOptions->DepthBufferRequired() );
mStencilBufferRequired = static_cast< Integration::StencilBufferAvailable >( environmentOptions->StencilBufferRequired() );
+ mPartialUpdateAvailable = static_cast< Integration::PartialUpdateAvailable >( environmentOptions->PartialUpdateAvailable() );
mMultiSamplingLevel = environmentOptions->GetMultiSamplingLevel();
mEglSync = Utils::MakeUnique< EglSyncImplementation >();
mMultiSamplingLevel = environmentOptions->GetMultiSamplingLevel();
mEglSync = Utils::MakeUnique< EglSyncImplementation >();
+
+ mEglContextHelper = Utils::MakeUnique< EglContextHelperImplementation >();
}
EglInterface* EglGraphics::Create()
{
}
EglInterface* EglGraphics::Create()
{
- mEglImplementation = Utils::MakeUnique< EglImplementation >( mMultiSamplingLevel, mDepthBufferRequired, mStencilBufferRequired );
+ mEglImplementation = Utils::MakeUnique< EglImplementation >( mMultiSamplingLevel, mDepthBufferRequired, mStencilBufferRequired
, mPartialUpdateAvailable
);
mEglImageExtensions = Utils::MakeUnique< EglImageExtensions >( mEglImplementation.get() );
mEglSync->Initialize( mEglImplementation.get() ); // The sync impl needs the EglDisplay
mEglImageExtensions = Utils::MakeUnique< EglImageExtensions >( mEglImplementation.get() );
mEglSync->Initialize( mEglImplementation.get() ); // The sync impl needs the EglDisplay
+ mEglContextHelper->Initialize( mEglImplementation.get() ); // The context helper impl needs the EglContext
+
return mEglImplementation.get();
}
return mEglImplementation.get();
}
@@
-107,6
+117,12
@@
EglSyncImplementation& EglGraphics::GetSyncImplementation()
return *mEglSync;
}
return *mEglSync;
}
+EglContextHelperImplementation& EglGraphics::GetContextHelperImplementation()
+{
+ DALI_ASSERT_DEBUG( mEglContextHelper && "EglContextHelperImplementation not created" );
+ return *mEglContextHelper;
+}
+
EglImageExtensions* EglGraphics::GetImageExtensions()
{
DALI_ASSERT_DEBUG( mEglImageExtensions && "EglImageExtensions not created" );
EglImageExtensions* EglGraphics::GetImageExtensions()
{
DALI_ASSERT_DEBUG( mEglImageExtensions && "EglImageExtensions not created" );