junsu choi [Mon, 8 Nov 2021 05:39:02 +0000 (05:39 +0000)]
Merge "CanvasRenderer: Use NativeImageSourceQueue in Tizen profile" into devel/master
JunsuChoi [Fri, 29 Oct 2021 06:05:19 +0000 (15:05 +0900)]
CanvasRenderer: Use NativeImageSourceQueue in Tizen profile
For performance, instead of PixelData
Change-Id: Ia20e249a271ba9ea9cbf91bc020b18ce194c4260
Adeel Kazmi [Fri, 5 Nov 2021 10:44:07 +0000 (10:44 +0000)]
DALi Version 2.0.51
Change-Id: Id5858458411f40046ea5340938599f690a2c0199
Seoyeon Kim [Mon, 1 Nov 2021 01:51:52 +0000 (01:51 +0000)]
Merge "[ATSPI] Add more descriptions to Bridge objects" into devel/master
David Steele [Fri, 29 Oct 2021 11:07:43 +0000 (11:07 +0000)]
Merge "Refactored font-client-plugin-impl" into devel/master
David Steele [Fri, 29 Oct 2021 11:04:43 +0000 (11:04 +0000)]
Merge "Moved font client plugin to new folder" into devel/master
David Steele [Fri, 29 Oct 2021 11:04:22 +0000 (11:04 +0000)]
Merge "Reduced font client debug logging" into devel/master
David Steele [Fri, 29 Oct 2021 09:05:56 +0000 (10:05 +0100)]
DALi Version 2.0.50
Change-Id: I55e26c05d5a508d521394d9412e5d609e8b45444
David Steele [Wed, 27 Oct 2021 12:17:54 +0000 (13:17 +0100)]
Refactored font-client-plugin-impl
Refactored cached item structs into separate classes
with own methods.
FontFaceCacheItem <|--- FontCacheItemInterface
BitmapFontCacheItem <|-+
This simplifies a lot of the hidden type lookup within the plugin
code. There is some scope for integrating EmbeddedItem into this
interface as well.
Change-Id: I7370355ff307f9aef7b19e2bbb6ed2225e7e92b6
Signed-off-by: David Steele <david.steele@samsung.com>
Seoyeon Kim [Fri, 1 Oct 2021 08:29:00 +0000 (17:29 +0900)]
[ATSPI] Add more descriptions to Bridge objects
- Added descriptions of the remaining Bridge classes.
- Updated some bridge codes according to dali coding style.
Change-Id: Icf1c9d5968b3397ee7a869ec2ba312037c5d3c56
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
David Steele [Wed, 27 Oct 2021 11:35:41 +0000 (12:35 +0100)]
Moved font client plugin to new folder
Moved font client helper & font client utility methods into
font-client-utils.cpp/h.
Change-Id: Idd57ddc426f1a85ce296b009e18d33c72bf0f587
Signed-off-by: David Steele <david.steele@samsung.com>
David Steele [Tue, 26 Oct 2021 15:04:21 +0000 (16:04 +0100)]
Reduced font client debug logging
Change-Id: Ia46c0a82692693771d3af467e19926b81f781d15
JunsuChoi [Thu, 21 Oct 2021 08:47:04 +0000 (17:47 +0900)]
CanvasRenderer: Refactoring to pass rasterized buffer
This makes the buffer not dependent on whether
to use NativeImageQueue's tbm_surface or PixelData.
After this work, we can make a patch using NativeImageQueue for the tizen profile.
This patch is related to https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-toolkit/+/265519/.
Change-Id: Ib29c0fb1364bc958852af9ec4a9da4baf5b4248e
Adeel Kazmi [Fri, 22 Oct 2021 11:25:41 +0000 (11:25 +0000)]
Merge "DALi Version 2.0.49" into devel/master
Shinwoo Kim [Fri, 22 Oct 2021 10:48:07 +0000 (10:48 +0000)]
Merge "[ATSPI] Sort children using middle line" into devel/master
Adam Bialogonski [Fri, 22 Oct 2021 10:24:59 +0000 (11:24 +0100)]
DALi Version 2.0.49
Change-Id: Ib217805a284b84737aad2ad2782d66baa8d3e41c
Eunki, Hong [Thu, 21 Oct 2021 13:38:42 +0000 (22:38 +0900)]
Fix LogMessage format to print Filename / Functioname / Line
Add LogMessageDlogFormat macro to apply these informations :
Filename: Function(Line#) > "messages"
Previous LogMessage function always print like this
logging-tizen.cpp: LogMessage(38) > "messages"
So we fix to print actual informations
Default LogMessage(~~) will be used when someone don't need to follow up
Dlog format. (like ttrace and perfomance logger)
Change-Id: Ib54b6ad2dd904dffa3d5e705b9209790850e779d
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Wonsik Jung [Thu, 21 Oct 2021 23:29:37 +0000 (23:29 +0000)]
Merge "Support to get the rect value to recalulate with the default system coordinates." into devel/master
Shinwoo Kim [Fri, 15 Oct 2021 09:32:54 +0000 (18:32 +0900)]
[ATSPI] Sort children using middle line
So far, it has been judged that thye are on different lines
if the "y" value of child A is less than "y + 0.25 * h" value of child B.
But it caused unwanted children order in following case.
[(class=ContentPage)],[0,0,720,1280]
[(class=AppBar)],[0,0,720,120]
[(class=Button)],[64,36,48,48]
[(class=TextLabel)],[136,0,300,120],[NUI Tizen Gallery]
[(class=Control)],[476,0,180,120]
The order should be "Button" > "TextLabel".
Change-Id: Icb11cf1fb63de7a5cea8fbf7697cabdf5a5179eb
Wonsik Jung [Fri, 8 Oct 2021 10:53:46 +0000 (19:53 +0900)]
Support to get the rect value to recalulate with the default system coordinates.
Some native window APIs ask the geometry value based on the default system coordinates.
when the surface is rotated, current window's geometry already were set with the rotated angle.
So, re-calculation is needed.
Change-Id: I3b6de8acffefc9e5939a801be9badd8f608d8a98
Heeyong Song [Wed, 20 Oct 2021 01:50:27 +0000 (01:50 +0000)]
Merge "Reset gPreInitializedApplication to reduce reference count" into devel/master
Wonsik Jung [Mon, 23 Aug 2021 07:04:29 +0000 (16:04 +0900)]
Supports to acknowledge for completing window rotation
It is waited the window rotation completing until a view finishes to draw.
The view is drawn on the other thread.
It means asychronous rendering occurs between dali render thread and the other thread when window is rotated.
Change-Id: I6bc0fc45337f7972cf2d2bdc7f1a53c3a3710cf3
Heeyong Song [Thu, 14 Oct 2021 05:33:58 +0000 (14:33 +0900)]
Reset gPreInitializedApplication to reduce reference count
Change-Id: I50f1140a90569a7c7be419346438e50a3874305d
Heeyong Song [Tue, 12 Oct 2021 14:46:29 +0000 (23:46 +0900)]
(Partial update) Change calculation of damaged rects
Separate the empty damaged rect case and the full damaged rect case
Change-Id: I6f515504f95b32c0d1a01b3851ecbc2044020a05
Adeel Kazmi [Fri, 15 Oct 2021 10:32:00 +0000 (10:32 +0000)]
Merge "DALi Version 2.0.48" into devel/master
Richard Huang [Fri, 15 Oct 2021 09:43:56 +0000 (10:43 +0100)]
DALi Version 2.0.48
Change-Id: I5358d66f0baa598748c4c97f6b62d4350c9fb127
Shinwoo Kim [Fri, 15 Oct 2021 09:15:03 +0000 (09:15 +0000)]
Merge "[ATSPI] Refactor - Remove duplicate lines" into devel/master
Shinwoo Kim [Fri, 15 Oct 2021 06:15:30 +0000 (15:15 +0900)]
[ATSPI] Refactor - Remove duplicate lines
For clean code.
Change-Id: I19615fb3b6f2713b866925957ea9f716dcec5167
junsu choi [Fri, 15 Oct 2021 06:29:47 +0000 (06:29 +0000)]
Merge "VectorImageRenderer: Remove TizenVectorImageRenderer dependency" into devel/master
Shinwoo Kim [Wed, 13 Oct 2021 10:35:23 +0000 (10:35 +0000)]
Merge "[ATSPI] enhance "GetNeighbor" interface" into devel/master
Adeel Kazmi [Fri, 8 Oct 2021 17:46:05 +0000 (17:46 +0000)]
Merge "Updated gfx back end to handle photoshop blend modes" into devel/master
David Steele [Fri, 8 Oct 2021 13:54:27 +0000 (14:54 +0100)]
DALi Version 2.0.47
Change-Id: Ifc32366774d2f2ce503465fbf6da17de23a1f7e9
Shinwoo Kim [Wed, 6 Oct 2021 11:53:32 +0000 (20:53 +0900)]
[ATSPI] enhance "GetNeighbor" interface
The next accessible should be showing if the next accessible is
under a scrollable parent which is not a scrollable parent of
currently highlighted accessible.
Change-Id: Id2d21528f6a4a1ecd4b4acc1cd3fff86dd80e0a5
David Steele [Thu, 7 Oct 2021 16:40:53 +0000 (17:40 +0100)]
Updated gfx back end to handle photoshop blend modes
Change-Id: I16a5e6d6b9139ed5dec30acddc8ced23302d81db
sunghyun kim [Thu, 19 Aug 2021 13:33:55 +0000 (22:33 +0900)]
Add API for setting resource destruction callback
Add api for setting resource destruction callback.
this callback will be called when NativeImageSource is desroyed its resource
Change-Id: Ib97573c648105b12bf38f601ace89a5b0fc54608
Adeel Kazmi [Fri, 1 Oct 2021 17:23:02 +0000 (18:23 +0100)]
DALi Version 2.0.46
Change-Id: Id7fc240f9b338b0cf86c0e752f62c3aa3de1a585
Adeel Kazmi [Thu, 30 Sep 2021 13:40:29 +0000 (13:40 +0000)]
Merge "Bind the EGL surface before querying its attributes" into devel/master
Adeel Kazmi [Thu, 30 Sep 2021 12:10:52 +0000 (12:10 +0000)]
Merge "Enable network server with target build" into devel/master
Eunki Hong [Thu, 30 Sep 2021 02:07:04 +0000 (02:07 +0000)]
Merge "WebEngine::GetNativeImageSource return NativeImageSourcePtr" into devel/master
Richard Huang [Wed, 29 Sep 2021 17:23:42 +0000 (18:23 +0100)]
Fix the GBS build error when ELDBUS is not available
Change-Id: I40cfeb061d8708740b43a5f689cec7b03882a8d3
David Steele [Wed, 29 Sep 2021 13:48:23 +0000 (14:48 +0100)]
Enable network server with target build
Change-Id: I0d3740fefa3cf8133d321ad0fd4dfec86008ba3e
Eunki, Hong [Wed, 29 Sep 2021 08:09:21 +0000 (17:09 +0900)]
WebEngine::GetNativeImageSource return NativeImageSourcePtr
NativeImageSource --> NativeImageInterface is simple valid job.
NativeImageInterface --> NativeImageSource is not simple and expensive job.
WebEngine / WebPlugin defined at dali-adaptor/devel-api and
NativeImageSource defined at dali-adaptor/public-api.
So there is no reason to convert NativeImageSource to NativeImageInterface.
Change-Id: Iae96e3b50ece16fcc6b17723b174a26c454cdddc
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Richard Huang [Tue, 28 Sep 2021 10:38:00 +0000 (11:38 +0100)]
Bind the EGL surface before querying its attributes
Change-Id: I462ed7cbfaf20d0d15eae102b8dd801845c83fca
Seoyeon Kim [Fri, 3 Sep 2021 09:40:51 +0000 (18:40 +0900)]
[ATSPI] Add some descriptions to Bridge objects
- Added some descriptions for BridgeAccessible and BridgeBase.
I'm going to modify other header files, like BridgeAction, to another patch.
Otherwise, this patch would become too heavy.
- Updated some bridge codes according to dali coding style.
Change-Id: I2cc9e7d222c4082af1cc423fd80e0c3eafbf083e
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
JunsuChoi [Thu, 9 Sep 2021 06:04:22 +0000 (15:04 +0900)]
VectorImageRenderer: Remove TizenVectorImageRenderer dependency
Whether to use the thorvg library is already known.
Therefore, you can no longer use the TizenVectorImageRenderer PlugIn
made for the ThorVG library.
Change-Id: Ic147f093e64fb4872c7d5fa1e32be584b0a9f9ce
junsu choi [Tue, 28 Sep 2021 05:20:57 +0000 (05:20 +0000)]
Merge "VectorImageRenderer: Add failure check condition for nsvgParse" into devel/master
JunsuChoi [Mon, 27 Sep 2021 08:14:05 +0000 (17:14 +0900)]
VectorImageRenderer: Add failure check condition for nsvgParse
NSVGimage returned by nsvgParse may be assigned even if it is not a normal SVG.
Add test conditions to check more accurately.
Change-Id: I6ccf4af7db708d3e8fd0b511c7e50d3545c56200
Daekwang Ryu [Mon, 27 Sep 2021 05:12:01 +0000 (14:12 +0900)]
Add a virtual destructor
This was detected by static analysis.
When there is no desctuctor, It doesn't call derived class's destructor.
Change-Id: Ic98f82a1ffe10175005cf041101dad597451eabc
Eunki, Hong [Fri, 24 Sep 2021 11:31:48 +0000 (20:31 +0900)]
Add Default Uniform : uActorColor
This patch only for fix UTC
Change-Id: I2a0e2f1af35900ea4e54b71bde030362d09277e3
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Adam Bialogonski [Fri, 24 Sep 2021 08:47:49 +0000 (09:47 +0100)]
DALi Version 2.0.45
Change-Id: I278edc33759e171a82f5f9d8caf4b23fed0e9612
HyunJu Shin [Thu, 23 Sep 2021 07:36:06 +0000 (07:36 +0000)]
Merge "[ATSPI] Initialize Bridge on Idler" into devel/master
Adeel Kazmi [Mon, 20 Sep 2021 08:49:41 +0000 (08:49 +0000)]
Merge "Fixed SVACE error in native-image-surface-impl-ecore-wl.cpp" into devel/master
David Steele [Fri, 17 Sep 2021 10:47:57 +0000 (10:47 +0000)]
Merge "DALi Version 2.0.44" into devel/master
Richard Huang [Fri, 17 Sep 2021 10:42:18 +0000 (11:42 +0100)]
DALi Version 2.0.44
Change-Id: I822ff2104b939932a5a24fdfccf841d23583141b
Adeel Kazmi [Fri, 17 Sep 2021 09:39:53 +0000 (10:39 +0100)]
Fixed SVACE error in native-image-surface-impl-ecore-wl.cpp
Change-Id: I89f45ed39a8fe4131f2aa5efe86abc6f3f3a6ac4
Shinwoo Kim [Thu, 16 Sep 2021 12:30:45 +0000 (21:30 +0900)]
[ATSPI] Initialize Bridge on Idler
There is an application launching before dbus.
In this case application cannot use ATSPI interface.
Because the Bridge cannot get a dbus connection.
We prepared BridgeDisableAutoInit.
But someone does not want to make application change.
This patch is providing a way to initialize the Bridge
for an application launching before dbus.
Change-Id: Ic254f8e001c3d4f198b0a7bb680e5c5792b818cd
Eunki Hong [Thu, 16 Sep 2021 09:15:02 +0000 (02:15 -0700)]
Fix SVACE issue at gles2-graphics-memory
casting between uint32_t --> long
Change-Id: Id82517274fe3689c6139ada519b611397cbf3c8b
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
Daekwang Ryu [Wed, 15 Sep 2021 12:29:10 +0000 (21:29 +0900)]
Add NativeImageSurface
NativeImageSurface is a GL Rendering surface.
But it's not an actual window, it's like a pixmap.
It creates EGL resources.
Change-Id: Ib69a1dba557483e87bb05c76842cf012dc4423a5
junsu choi [Tue, 14 Sep 2021 08:55:10 +0000 (08:55 +0000)]
Merge "CanvasRenderer: Change colorspace RGBA888 to BGRA888" into devel/master
JunsuChoi [Tue, 14 Sep 2021 04:27:27 +0000 (13:27 +0900)]
CanvasRenderer: Change colorspace RGBA888 to BGRA888
The vector backend(thorvg) is optimized for ARGB888
Change-Id: I6645618f61621a9908c4b3856719c1f31535e65c
Seoyeon Kim [Wed, 25 Aug 2021 08:29:00 +0000 (17:29 +0900)]
[ATSPI] Change function names for Window
- The original role of ApplicationShown/Hidden is to show/hide 'Window', not Application.
Therefore, the name of ApplicationShown/Hidden must be changed to
WindowShown/Hidden.
Change-Id: I58fc8945d8efc95e7f3d73d5a1cf8654baa2f767
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
Heeyong Song [Mon, 13 Sep 2021 03:39:12 +0000 (03:39 +0000)]
Merge "Fix UTC with wrong usage of Dali::Vector" into devel/master
Adeel Kazmi [Fri, 10 Sep 2021 15:24:19 +0000 (15:24 +0000)]
Merge "DALi Version 2.0.43" into devel/master
David Steele [Fri, 10 Sep 2021 15:20:39 +0000 (16:20 +0100)]
DALi Version 2.0.43
Change-Id: Id358222187f24e8a86fe65196f67de9d9df51117
Eunki, Hong [Fri, 10 Sep 2021 12:59:40 +0000 (21:59 +0900)]
Fix UTC with wrong usage of Dali::Vector
Some utc in ImageOperations use Dali::Vector with wrong way.
This patch fix it
Change-Id: Ibb94ba1d09b9c20fde6508c8768cbc37f347268d
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Wonsik Jung [Mon, 6 Sep 2021 10:05:39 +0000 (19:05 +0900)]
Add SetParent in Window
Add SetParent in Window.
This function has additional flag whether child is the above or below of parent.
Change-Id: Ibcc1a3fd69b9f81cc0b856d634f4b39c908e9d1d
Adeel Kazmi [Fri, 3 Sep 2021 15:04:20 +0000 (16:04 +0100)]
DALi Version 2.0.42
Change-Id: I3446c117b52ce72b5ea1f41eb3f958dd6a830a4c
Bartlomiej Grzelewski [Mon, 30 Aug 2021 13:05:14 +0000 (15:05 +0200)]
[ATSPI] Calculate Window state in atspi tree
Window state in atspi tree should not be
ACTIVE/VISIBLE when window is hidden or
minimalized.
Change-Id: I2fe1e9d38c4e9fb55d8c25b18a1dc154bca0293b
Bartlomiej Grzelewski [Wed, 25 Aug 2021 16:08:01 +0000 (18:08 +0200)]
[ATSPI] Added support for ToolkitName and Version to dali
Change-Id: Ibee9189930452c4c04856a8a2c1f0fd4512b1680
Adeel Kazmi [Fri, 27 Aug 2021 12:26:40 +0000 (13:26 +0100)]
Fix SVACE errors in Graphics Backend
Change-Id: I59401140ab4cb22fef23cd654c9d0e81c930ed85
David Steele [Fri, 27 Aug 2021 11:43:03 +0000 (11:43 +0000)]
Merge "DALi Version 2.0.41" into devel/master
Adam Bialogonski [Fri, 27 Aug 2021 09:49:29 +0000 (10:49 +0100)]
DALi Version 2.0.41
Change-Id: I6c001384e3a6452a70e50a0365f9836abef9e859
Wonsik Jung [Fri, 27 Aug 2021 00:42:34 +0000 (00:42 +0000)]
Merge "Fix activate window list bug for aurum" into devel/master
Wonsik Jung [Thu, 26 Aug 2021 08:36:10 +0000 (08:36 +0000)]
Merge "Add input region APIs" into devel/master
huayong.xu [Tue, 24 Aug 2021 01:38:40 +0000 (09:38 +0800)]
Implement more request interceptor APIs.
Change-Id: Id2c0a9eca5043ef3c9b559aee4d1713037dd3145
Seoyeon Kim [Wed, 25 Aug 2021 05:16:53 +0000 (05:16 +0000)]
Merge "[ATSPI] Add a function to check whether accessibility is enabled" into devel/master
Wonsik Jung [Fri, 20 Aug 2021 10:34:26 +0000 (19:34 +0900)]
Fix activate window list bug for aurum
When application is closed, deactivate signal is not emitted.
To fix, deactivated signal's emitting is in application's destructor.
It is temporary solution.
Change-Id: I61040570ae65730e988d8d880db7198e56441e13
Seoyeon Kim [Tue, 24 Aug 2021 04:48:30 +0000 (13:48 +0900)]
[ATSPI] Add a function to check whether accessibility is enabled
- Added `IsEnabled()` to check accessibility state
Change-Id: I18153b3570b6a20f8af37e86c9e71ba1ea733d89
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
seungho [Mon, 23 Aug 2021 05:15:19 +0000 (14:15 +0900)]
Remove unused custom shader prefix method
Change-Id: I7e376ba6d4ac9250d7b6971476514086d16cd454
Signed-off-by: seungho <sbsh.baek@samsung.com>
Wonsik Jung [Wed, 4 Aug 2021 23:10:13 +0000 (08:10 +0900)]
Add input region APIs
Add input region APIs about including and excluding.
Change-Id: I12f3fa15bbdf311aa5b51e56b16bbd993e1726e1
David Steele [Fri, 20 Aug 2021 11:18:41 +0000 (12:18 +0100)]
DALi Version 2.0.40
Change-Id: Idc1c929465a1ad07f4481937139b2c8da2501534
Heeyong Song [Fri, 13 Aug 2021 08:32:42 +0000 (17:32 +0900)]
Fix static analysis issue
Should return unsigned int type.
Change-Id: I863f772e9542f176465acc8ba70553daf2b5c311
Heeyong Song [Wed, 18 Aug 2021 07:20:55 +0000 (16:20 +0900)]
Change window visibility changed signal
Emit window visibility changed signal before the adaptor is paused / resumed
to ensure messages queued during the callback are processed.
Change-Id: I34917dcfa274f31c5e372ccdaa74bb98156d9857
Bowon Ryu [Tue, 17 Aug 2021 01:03:22 +0000 (01:03 +0000)]
Merge "Clipboard: fix integer underflow" into devel/master
David Steele [Fri, 13 Aug 2021 13:03:54 +0000 (13:03 +0000)]
Merge "DALi Version 2.0.39" into devel/master
Adeel Kazmi [Fri, 13 Aug 2021 12:46:32 +0000 (13:46 +0100)]
DALi Version 2.0.39
Change-Id: Ic74ee71fc4093781d2d531400d72afd96dd2b250
Bowon Ryu [Fri, 13 Aug 2021 09:56:35 +0000 (18:56 +0900)]
Clipboard: fix integer underflow
GetCount() returns an int, but NumberOfItems() returns an unsigned int.
If GetCount() returns a negative number, NumberOfItems() may return an unintended value.
There is also the risk of underflow.
Change-Id: I8db63963257c616b7a281c14b1c8f2480fbdc91e
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
JunsuChoi [Fri, 13 Aug 2021 01:40:29 +0000 (10:40 +0900)]
CanvasRenderer: Do not use c-style type cast
changed to static_cast or const_cast
Change-Id: I64ea9cee3b6f0fa2cde3a0445427ac3c10d361cb
JunsuChoi [Mon, 2 Aug 2021 08:51:16 +0000 (17:51 +0900)]
CanvasRenderer::Shape: Add AddPath() Api
Adds an API that adds a large path information.
The PathCommands structure has a PathCommandType array, a Point array
and the number of each array.
ex)
//Prepare Path Commands
Dali::CanvasRenderer::Shape::PathCommandType commands[11];
commands[0] = Dali::CanvasRenderer::Shape::PathCommandType::MOVE_TO;
commands[1] = Dali::CanvasRenderer::Shape::PathCommandType::LINE_TO;
commands[2] = Dali::CanvasRenderer::Shape::PathCommandType::LINE_TO;
commands[3] = Dali::CanvasRenderer::Shape::PathCommandType::LINE_TO;
commands[4] = Dali::CanvasRenderer::Shape::PathCommandType::LINE_TO;
commands[5] = Dali::CanvasRenderer::Shape::PathCommandType::LINE_TO;
commands[6] = Dali::CanvasRenderer::Shape::PathCommandType::LINE_TO;
commands[7] = Dali::CanvasRenderer::Shape::PathCommandType::LINE_TO;
commands[8] = Dali::CanvasRenderer::Shape::PathCommandType::LINE_TO;
commands[9] = Dali::CanvasRenderer::Shape::PathCommandType::LINE_TO;
commands[10] = Dali::CanvasRenderer::Shape::PathCommandType::CLOSE;
//Prepare Path Points
float points[20] = {-1.0f, -165.0f,
53.0f, -56.0f,
174.0f, -39.0f,
87.0f, 45.0f,
107.0f, 166.0f,
-1.0f, 110.0f,
-103.0f, 166.0f,
-88.0f, 46.0f,
-174.0f, -38.0f,
-54.0f, -56.0f};
Dali::CanvasRenderer::Shape::PathCommands starPath = { commands, 11, points, 20 };
Dali::CanvasRenderer::Shape star = Dali::CanvasRenderer::Shape::New();
star.AddPath(starPath);
mCanvasView.AddDrawable(star);
Change-Id: I36cea22b1e80bfe2182cdb7fb2a8e262523c2a4f
junsu choi [Fri, 13 Aug 2021 00:25:36 +0000 (00:25 +0000)]
Merge "CanvasRenderer:: Add Picture class" into devel/master
junsu choi [Fri, 13 Aug 2021 00:14:47 +0000 (00:14 +0000)]
Merge "CanvasRenderer: Change GetSize() method to const" into devel/master
junsu choi [Fri, 13 Aug 2021 00:08:38 +0000 (00:08 +0000)]
Merge "CanvasRenderer: Add Gradient, LinearGradient, RadialGradient classes" into devel/master
JunsuChoi [Mon, 26 Jul 2021 01:46:26 +0000 (10:46 +0900)]
CanvasRenderer:: Add Picture class
Add Picture class to rasterize Image to canvas with vector primitive.
ex)
Dali::CanvasRenderer::Picture picture = Dali::CanvasRenderer::Picture::New();
picture.Load(IMAGE_PATH);
picture.SetSize(Vector2(100, 400));
CanvasView.AddDrawable(picture);
Change-Id: I5a74a3b8baef206893aa1cf2a6559b6cf854707b
junsu choi [Wed, 11 Aug 2021 01:00:13 +0000 (01:00 +0000)]
Merge "CanvasRenderer::DrawableGroup: Add RemoveDrawable() API" into devel/master
junsu choi [Wed, 11 Aug 2021 01:00:01 +0000 (01:00 +0000)]
Merge "CanvasRenderer::Shape: Remove unnecessary header" into devel/master
JunsuChoi [Mon, 2 Aug 2021 05:24:18 +0000 (14:24 +0900)]
CanvasRenderer::DrawableGroup: Add RemoveDrawable() API
Add an API that removes the Drawable registered with AddDrawable()
from list in DrawableGroup
Change-Id: I0fc908d5282e9bd7297670a66554d1500e2f262f
Adeel Kazmi [Fri, 6 Aug 2021 10:28:03 +0000 (10:28 +0000)]
Merge "DALi Version 2.0.38" into devel/master
Richard Huang [Fri, 6 Aug 2021 09:47:45 +0000 (10:47 +0100)]
DALi Version 2.0.38
Change-Id: I2f9d0c81cc035ffed5b7344a6279251787bde18f
JunsuChoi [Tue, 13 Jul 2021 06:12:31 +0000 (15:12 +0900)]
CanvasRenderer: Add Gradient, LinearGradient, RadialGradient classes
Add Gradient, LinearGradient, and RadialGradient classes that
implement Linear and Radial Gradient features.
Each Gradient can be applied to Fill and Stroke of Shape after
setting Bounds and ColorStop suitable for style.
ex)
//Radial Gradient with Fill color
Dali::CanvasRenderer::RadialGradient radial = Dali::CanvasRenderer::RadialGradient::New();
Dali::Vector<Dali::CanvasRenderer::Gradient::ColorStop> stops;
stops.PushBack( {0.0f, Vector4(1.0f, 0.0f, 1.0f, 1.0f)} );
stops.PushBack( {1.0f, Vector4(0.5f, 1.0f, 0.0f, 1.0f)} );
radial.SetBounds(Vector2(110, 100), 50);
radial.SetColorStops(stops);
shape.SetFillGradient(radial);
//Linear Gradient with Stroke color
Dali::CanvasRenderer::LinearGradient linear = Dali::CanvasRenderer::LinearGradient::New();
Dali::Vector<Dali::CanvasRenderer::Gradient::ColorStop> stops;
stops.PushBack( {0.0f, Vector4(1.0f, 0.0f, 1.0f, 1.0f)} );
stops.PushBack( {1.0f, Vector4(0.5f, 1.0f, 0.0f, 1.0f)} );
linear.SetBounds(Vector2(10, 10), Vector2(100, 100));
linear.SetColorStops(stops);
shape.SetStrokeGradient(linear);
Change-Id: I747614bf1c6bcd59f30a74a23c4001cfdfe19d1a
joogab yun [Fri, 6 Aug 2021 04:50:26 +0000 (04:50 +0000)]
Merge "Add SetTapMaximumAllowedTime" into devel/master