platform/core/uifw/pepper.git
8 years agodesktop-shell: fix DEREF_AFTER_NULL 65/55665/1
Sangjin Lee [Mon, 28 Dec 2015 11:09:41 +0000 (20:09 +0900)]
desktop-shell: fix DEREF_AFTER_NULL

Change-Id: Ie96a803f7e56d0ff23af3fefd2da0dd900be4d07

8 years agodesktop-shell: fix DEREF_AFTER_NULL 64/55664/1
Sangjin Lee [Mon, 28 Dec 2015 11:07:38 +0000 (20:07 +0900)]
desktop-shell: fix DEREF_AFTER_NULL

Change-Id: I81e79341a56b3f493547c88f09822aed8b485b10

8 years agotdm: chenge keep_buffer in flush_surface_damage 42/55242/1
Sangjin Lee [Tue, 22 Dec 2015 12:58:56 +0000 (21:58 +0900)]
tdm: chenge keep_buffer in flush_surface_damage

Change-Id: Iff7ebfb6aa40af4097e31d46c992846da1c82f3d

8 years agopepper: fix build error 38/55238/1 accepted/tizen/mobile/20151222.225050 accepted/tizen/tv/20151222.225109 accepted/tizen/wearable/20151222.225124 submit/tizen/20151222.124433 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718
Sangjin Lee [Tue, 22 Dec 2015 12:41:18 +0000 (21:41 +0900)]
pepper: fix build error

Change-Id: Ie0c21a62fcfe7ec2320e24429e6adf7a9a1d1aa8

8 years agopepper: change pepper_compositor_create_fd() 08/55208/3
Sangjin Lee [Tue, 22 Dec 2015 11:14:43 +0000 (20:14 +0900)]
pepper: change pepper_compositor_create_fd()

wayland server api was changed
http://cgit.freedesktop.org/wayland/wayland/commit/?id=225830dcb8bf1a6583d0f4ca182584024783923e
so pepper must bind and listen to socket fd.

Change-Id: I798c2c0d684ddb1034eaec20eda60e3800ac5e11
Signed-off-by: Sangjin Lee <lsj119@samsung.com>
8 years agopepper: add TDM backend 61/55061/4
Sangjin Lee [Mon, 21 Dec 2015 12:25:37 +0000 (21:25 +0900)]
pepper: add TDM backend

TDM(tizen display manager) is HAL layer for tizen
this is just draft version.
- use only primary layer
- gl and sw renderer test: ok

Change-Id: Id6ea1c1c90d1d02a3ffa7d315cc20d65fabee574
Signed-off-by: Sangjin Lee <lsj119@samsung.com>
8 years agoshell: Fix build error 86/54686/1 accepted/tizen/mobile/20151221.050925 accepted/tizen/tv/20151221.051004 accepted/tizen/wearable/20151221.051043 submit/tizen/20151221.025226
Taekyun Kim [Thu, 17 Dec 2015 07:32:29 +0000 (16:32 +0900)]
shell: Fix build error

Change-Id: I2feae9320873baa5fb5fb1827c46337e604ac93e

8 years agoshell: shell client implementation 82/54582/2
Taekyun Kim [Wed, 16 Dec 2015 08:16:07 +0000 (17:16 +0900)]
shell: shell client implementation

Only manages the pointer cursor now.

Change-Id: I441637a262d97c414a122d3173e7eb4a67b8560e

8 years agopepper: pointer cursor implementation 81/54581/1
Junghoon [Sun, 18 Oct 2015 05:47:32 +0000 (14:47 +0900)]
pepper: pointer cursor implementation

    - implement wl_pointer::set_cursor
    - implement drm_cursor

Change-Id: I45aac2e96b176a8480307a4465782c255e4ca2be

8 years agopepper: Removed unused data device codes 35/54535/1
Taekyun Kim [Wed, 16 Dec 2015 04:40:06 +0000 (13:40 +0900)]
pepper: Removed unused data device codes

Change-Id: I4ac53eccf3da630f543803ffd2418e8ea75f9483

8 years agodoc: Documentation 34/54534/1
Taekyun Kim [Wed, 16 Dec 2015 03:56:52 +0000 (12:56 +0900)]
doc: Documentation

Change-Id: I655102f2bd0619472d5192b0b3658453592ec677

8 years agodoc: documentation in pepper-output-backend.h 33/54533/1
Junghoon [Wed, 9 Dec 2015 08:03:01 +0000 (17:03 +0900)]
doc: documentation in pepper-output-backend.h

Change-Id: I44c2bed7a316308df65243dc8196385580b3c5f4

8 years agodoc: documentation in pepper-input-backend.h 32/54532/1
Junghoon [Wed, 9 Dec 2015 08:01:19 +0000 (17:01 +0900)]
doc: documentation in pepper-input-backend.h

Change-Id: I10115244aa65c9c3279125b5fdb0f377bb3d0250

8 years agopepper: save time of last pointer event 31/54531/1
Junghoon [Fri, 27 Nov 2015 10:50:19 +0000 (19:50 +0900)]
pepper: save time of last pointer event

    - for internal pointer motion event

Change-Id: Ife0f545942952865d9d50a87bb3dbec5e7974426

8 years agodrm: add specific init function for spreadtrum 28/54528/1
Sangjin Lee [Wed, 16 Dec 2015 04:11:06 +0000 (13:11 +0900)]
drm: add specific init function for spreadtrum

drm-sprd need specific init function.

Change-Id: Ibcc0c3dd1acfb0559146c23e8a96c8055b6913a9
Signed-off-by: Sangjin Lee <lsj119@samsung.com>
8 years agopepper: option for enabling wl_display_add_socket_fd() 12/53612/1
Taekyun Kim [Tue, 8 Dec 2015 06:34:46 +0000 (15:34 +0900)]
pepper: option for enabling wl_display_add_socket_fd()

wl_display_add_socket_fd() is tizen specific. It is not supported by
other linux systems. So, disable it by default and enable for GBS
build only.

Change-Id: I295b7adcc4619dc630da1716aadfba1c53565ab2

8 years agopepper: support creation with socket fd 77/53577/1
Sangjin Lee [Tue, 8 Dec 2015 04:27:22 +0000 (13:27 +0900)]
pepper: support creation with socket fd

Change-Id: I604c91dc631f39419a6ccc2fd6fb5f3cc244207f
Signed-off-by: Sangjin Lee <lsj119@samsung.com>
8 years agodrm: Check valid pageflip in handler 97/53197/1
Sangjin Lee [Wed, 2 Dec 2015 12:36:08 +0000 (21:36 +0900)]
drm: Check valid pageflip in handler

drmModePageFlip is called twice.
1. output render
2. start_repaint_loop
So the pageflip handler is called twice and relese front buffer for invaild

Change-Id: I00a79f1405001abcb41abcd685ce0c6a3da923c2
Signed-off-by: Sangjin Lee <lsj119@samsung.com>
8 years agodrm: fix resource leak 46/53046/1
Sangjin Lee [Tue, 1 Dec 2015 06:49:15 +0000 (15:49 +0900)]
drm: fix resource leak

Change-Id: Ied296861266fd8479efdf3407ce968cf4a194cca
Signed-off-by: Sangjin Lee <lsj119@samsung.com>
8 years agorender: change to supprot the wayland-tbm buffer 36/53036/2
Sangjin Lee [Tue, 1 Dec 2015 05:01:03 +0000 (14:01 +0900)]
render: change to supprot the wayland-tbm buffer

pixman renderer can support wayland-tbm buffer.

Change-Id: Idff39133e72a023451aab5d92234efdd74a92142
Signed-off-by: Sangjin Lee <lsj119@samsung.com>
8 years agodrm: Use wayland-tbm protocol 28/53028/1
Sangjin Lee [Tue, 1 Dec 2015 02:14:07 +0000 (11:14 +0900)]
drm: Use wayland-tbm protocol

Change-Id: Ib9e078da148e03b693be473e8efd639915945f26
Signed-off-by: Sangjin Lee <lsj119@samsung.com>
8 years agodesktop-shell : xdg-shell version upgrade to 5 71/52971/1
Sangjin Lee [Mon, 30 Nov 2015 10:57:45 +0000 (19:57 +0900)]
desktop-shell : xdg-shell version upgrade to 5

Change-Id: I27364e2e7579dab4174cc220dd08722e1e030351
Signed-off-by: Sangjin Lee <lsj119@samsung.com>
8 years agopepper: remove unused variable 14/52914/1
Junghoon [Fri, 27 Nov 2015 05:50:36 +0000 (14:50 +0900)]
pepper: remove unused variable

Change-Id: I8a60e131b8e11504495165d18db0f9db58a5b39e

8 years agopepper: destroy resources in subcompositor_destroy 13/52913/1
Jaehoon Jeong [Wed, 25 Nov 2015 06:51:39 +0000 (15:51 +0900)]
pepper: destroy resources in subcompositor_destroy

Change-Id: I0c3a7591403d411409e92a9553daa24d5a3870bc

8 years agopepper: Initialize subcompositor when creating compositor 12/52912/1
Jaehoon Jeong [Wed, 25 Nov 2015 06:50:58 +0000 (15:50 +0900)]
pepper: Initialize subcompositor when creating compositor

Change-Id: I20053bf6795dbcbc2674b2cc62bc769b72bc7988

8 years agobuild: add doxygen support 11/52911/1
Jaehoon Jeong [Tue, 24 Nov 2015 07:46:29 +0000 (16:46 +0900)]
build: add doxygen support

    - Documentation build enabled as default, so use --disable-document if do not want

Change-Id: I51c83a58d69276065323b0b33999cb987c9dbbb4

8 years agorender: gl-renderer: minor refactoring of repaint_region_scissor() 10/52910/1
Junghoon [Wed, 25 Nov 2015 07:33:48 +0000 (16:33 +0900)]
render: gl-renderer: minor refactoring of repaint_region_scissor()

Change-Id: Iaec6c59dc57cd96698ed426eddac534d905e10b9

8 years agorender: gl-renderer: apply y_inverted 09/52909/1
Junghoon [Tue, 24 Nov 2015 07:57:26 +0000 (16:57 +0900)]
render: gl-renderer: apply y_inverted

Change-Id: I3761e9e60c6aad12916b76acb357a1a80de36d3a

8 years agorender: pixman-renderer: fix buffer transform & scale 08/52908/1
Junghoon [Tue, 24 Nov 2015 01:37:24 +0000 (10:37 +0900)]
render: pixman-renderer: fix buffer transform & scale

Change-Id: If3bb7098df3826c0da657193505b6a84e4321f5e

8 years agorender: gl-renderer: fix buffer transform 07/52907/1
Junghoon [Mon, 23 Nov 2015 09:41:32 +0000 (18:41 +0900)]
render: gl-renderer: fix buffer transform

Change-Id: Ifab79d3a7867992bfb140d6306192f0787fb24dc

8 years agopepper: Add view create/destroy code for subsurface 06/52906/1
Jaehoon Jeong [Mon, 23 Nov 2015 05:16:20 +0000 (14:16 +0900)]
pepper: Add view create/destroy code for subsurface

Change-Id: I6f327ec72e3be02eab593c55805ca1b574708c74

8 years agopepper: Implement subsurface 05/52905/1
Jaehoon Jeong [Fri, 20 Nov 2015 08:52:38 +0000 (17:52 +0900)]
pepper: Implement subsurface

    - Update surface.commit for subsurface
    - Add link to its own subsurface_list

Change-Id: I9fe3d1b1c9386f700d848f16b6d4c15b60b75533

8 years agoshell: destroy view when shell_surface destroyed 04/52904/1
Jaehoon Jeong [Mon, 23 Nov 2015 05:53:42 +0000 (14:53 +0900)]
shell: destroy view when shell_surface destroyed

Change-Id: Ia908996ef29a90f03b4f1bc651984f6ab4d2de53

8 years agorender: pixman-renderer: change repaint_view 03/52903/1
Junghoon [Sun, 22 Nov 2015 06:21:29 +0000 (15:21 +0900)]
render: pixman-renderer: change repaint_view

    - apply buffer transform & scale
    - repaint opaque region separately

Change-Id: I98b0d2f148d940755c267f3427fab56050101bac

8 years agopepper: API for getting current mode of an output 80/52380/1
Taekyun Kim [Thu, 19 Nov 2015 05:37:52 +0000 (14:37 +0900)]
pepper: API for getting current mode of an output

Change-Id: I05526441cabcaf1e41c0d2319f9632a13e9b2156

8 years agopepper: Unref buffer only when having reference 79/52379/1
Taekyun Kim [Thu, 19 Nov 2015 05:07:01 +0000 (14:07 +0900)]
pepper: Unref buffer only when having reference

Change-Id: I5ecff83ccb6cd73fcd514c6d1b41f7f7a7e8a656

8 years agorender: gl-renderer: apply buffer transform & scale 78/52378/1
Junghoon [Wed, 18 Nov 2015 08:04:24 +0000 (17:04 +0900)]
render: gl-renderer: apply buffer transform & scale

Change-Id: I4ebdb7181548e0228302d198690998c1cb1e2327

8 years agopepper: Add pepper_surface/buffer_get_size() 77/52377/1
Taekyun Kim [Wed, 18 Nov 2015 05:51:37 +0000 (14:51 +0900)]
pepper: Add pepper_surface/buffer_get_size()

Change-Id: I47e203d72f98e26874854543950b62378d06b875

8 years agopepper: flush_surface_damage() returns keep_buffer flag 76/52376/1
Taekyun Kim [Wed, 18 Nov 2015 05:24:54 +0000 (14:24 +0900)]
pepper: flush_surface_damage() returns keep_buffer flag

keep_buffer flag is used for telling the pepper core that the buffer is no
longer required (by maintaining a copy of it). If no output wants to keep
the buffer, pepper core can safely unreference the buffer.

Change-Id: I13fccfba6f9cacb08c6619a56fb1ff03ad95883a

8 years agopepper: send wl_surface::leave only when surface is alive 75/52375/1
Junghoon [Wed, 18 Nov 2015 05:22:19 +0000 (14:22 +0900)]
pepper: send wl_surface::leave only when surface is alive

Change-Id: Ie8368ddde3752d13fedd6c77464f91e31d456339

8 years agoMerge branch 'master' into p_tizen
Sangjin Lee [Sat, 21 Nov 2015 03:17:35 +0000 (12:17 +0900)]
Merge branch 'master' into p_tizen
Add initial source code

Change-Id: I0bd275b7e9294c752792e55a22936e48766b4f6d

9 years agopepper: implement subsurface protocols
Jaehoon Jeong [Tue, 10 Nov 2015 04:46:07 +0000 (13:46 +0900)]
pepper: implement subsurface protocols

    - Create subsurface's views that corresponding to parent surface's views

Change-Id: I6d54bd82f67c41a5b74d0bcd965394063ef0c3be

9 years agopepper: calculate inverse of transform matrix once
Junghoon [Thu, 12 Nov 2015 06:23:53 +0000 (15:23 +0900)]
pepper: calculate inverse of transform matrix once

    - only when view's geometry is updated

Change-Id: I0923364890d4c6fb9fabeb7e1b794e4e06067db0

9 years agopepper: send wl_surface::enter and wl_surface::leave events
Junghoon [Thu, 12 Nov 2015 09:54:53 +0000 (18:54 +0900)]
pepper: send wl_surface::enter and wl_surface::leave events

Change-Id: Ia74e2dbd4da848aa3bfdb518690ee6b8a697acd0

9 years agoshell: bugfix in state transition and send configure
Jaehoon Jeong [Tue, 27 Oct 2015 10:52:44 +0000 (19:52 +0900)]
shell: bugfix in state transition and send configure

Change-Id: I682f54a89755dfdc07fd33b6b8f97add7d962547

9 years agodrm: env var for using overlay (default : 0)
Taekyun Kim [Thu, 12 Nov 2015 09:41:24 +0000 (18:41 +0900)]
drm: env var for using overlay (default : 0)

Overlay does not work on linux KMS and need further investigation.
Just disable it by default for now.

Change-Id: I4edec54d5be219f9203cd204632a2a28b8286793

9 years agopepper: Remove keep_buffer APIs
Taekyun Kim [Thu, 12 Nov 2015 09:38:18 +0000 (18:38 +0900)]
pepper: Remove keep_buffer APIs

Change-Id: I21550a0ec67a6229ad6f4b965a4da4a3d24dc271

9 years agopepper: Better buffer ref management
Taekyun Kim [Thu, 12 Nov 2015 09:36:07 +0000 (18:36 +0900)]
pepper: Better buffer ref management

Change-Id: I49cec6341663c4324ad1b796a4d690bcf9b53c84

9 years agoInitial empty repository master
Jeonghoon Jeon [Thu, 12 Nov 2015 06:27:12 +0000 (22:27 -0800)]
Initial empty repository

9 years agodrm: Check format and buffer scale when assigning HW planes
Taekyun Kim [Wed, 11 Nov 2015 10:53:27 +0000 (19:53 +0900)]
drm: Check format and buffer scale when assigning HW planes

Change-Id: Ie514243f4db2c7db77f66f040fbdc53dd551cc0f

9 years agox11: Fix build error
Taekyun Kim [Wed, 11 Nov 2015 08:04:52 +0000 (17:04 +0900)]
x11: Fix build error

Change-Id: Ie65b66ebc2a8e437350a76bcb72750c3c4f80346

9 years agorender: gl-renderer: change repaint_view_scissor
Junghoon [Tue, 10 Nov 2015 05:44:24 +0000 (14:44 +0900)]
render: gl-renderer: change repaint_view_scissor

    - repaint opaque region separately

Change-Id: I7f8d3df1fed0c20df38507003aa4ff6854556faa

9 years agorender: gl-renderer: reduce glDrawArrays() calls
Junghoon [Mon, 9 Nov 2015 09:00:38 +0000 (18:00 +0900)]
render: gl-renderer: reduce glDrawArrays() calls

    - once per region in polygon clipping

Change-Id: I72e59b1db70f880596697e497d0679e93343d0eb

9 years agopepper: Apply output transform and scale
Taekyun Kim [Tue, 10 Nov 2015 02:25:03 +0000 (11:25 +0900)]
pepper: Apply output transform and scale

Change-Id: I93afbd49c5d338f179aaa6f1951239527b23a669

9 years agorender: gl-renderer: tex filter is set by trnasform flags
Junghoon [Mon, 9 Nov 2015 05:17:41 +0000 (14:17 +0900)]
render: gl-renderer: tex filter is set by trnasform flags

Change-Id: I99c7ad591875ef52d75f7f96045b3f7c092dcceb

9 years agoMerge "add manifest file"
TaeKyun Kim [Tue, 10 Nov 2015 02:24:06 +0000 (11:24 +0900)]
Merge "add manifest file"

9 years agoadd manifest file
Sangjin Lee [Tue, 10 Nov 2015 01:34:15 +0000 (10:34 +0900)]
add manifest file

Change-Id: Icca863cb8280cc672849dd090bb02d2da8a6c6eb

9 years agosamples: delete useless sample
Sangjin Lee [Mon, 9 Nov 2015 06:29:47 +0000 (15:29 +0900)]
samples: delete useless sample

Change-Id: I796ef106315a9d458bde62095e56920602386e6a

9 years agoAdd license to all files
Sangjin Lee [Mon, 9 Nov 2015 06:14:54 +0000 (15:14 +0900)]
Add license to all files

Change-Id: I1dfe26c622fea7a02a3a51fecd9cedf40d62d797

9 years agoUpdated COPYING & AUTHORS file
Taekyun Kim [Mon, 9 Nov 2015 05:05:41 +0000 (14:05 +0900)]
Updated COPYING & AUTHORS file

Use same license with wayland/weston.

Change-Id: I3f5b7bf532d6789d161cafe2725b88298247e80d

9 years agorender: gl-renderer: fix clipping condition in polygon clipping
Junghoon [Mon, 9 Nov 2015 04:23:57 +0000 (13:23 +0900)]
render: gl-renderer: fix clipping condition in polygon clipping

Change-Id: I40c4852975173edb5c96f0faf21c52fb0c823339

9 years agopepper: Add initial subsurface implementation
Jaehoon Jeong [Fri, 6 Nov 2015 05:55:27 +0000 (14:55 +0900)]
pepper: Add initial subsurface implementation

Change-Id: Icc0cc065a61d0cc46d58f58e7b740b86b7dcaa3d

9 years agopepper: Add initial subcompositor implementation
Jaehoon Jeong [Fri, 6 Nov 2015 05:49:13 +0000 (14:49 +0900)]
pepper: Add initial subcompositor implementation

Change-Id: I0810e69082dc7fe4d6b425143c43095dd995ba0e

9 years agorender: gl-renderer: fix vertex calculation in polygon clipping
Junghoon [Thu, 5 Nov 2015 12:13:27 +0000 (21:13 +0900)]
render: gl-renderer: fix vertex calculation in polygon clipping

Change-Id: I42bb73f41862127cbd988174784bcc14c9786d23

9 years agorender: gl-renderer: fix polygon clipping
Junghoon [Thu, 5 Nov 2015 05:11:02 +0000 (14:11 +0900)]
render: gl-renderer: fix polygon clipping

    - fix opaque region handling
    - fix scissor test enable/disable for background clearing

Change-Id: I65aec2ffc86a185bbeb00c201295e8257729e9c2

9 years agopepper: fix keyboard event handling function
Junghoon [Thu, 5 Nov 2015 08:09:33 +0000 (17:09 +0900)]
pepper: fix keyboard event handling function

Change-Id: I55e5acf46e792128bcfdd845df4d5fe591dc2995

9 years agorender: use GL_BLEND and GL_SCISSOR only when necessary
Taekyun Kim [Thu, 5 Nov 2015 05:14:22 +0000 (14:14 +0900)]
render: use GL_BLEND and GL_SCISSOR only when necessary

Change-Id: Ie29a60ac10793da9abfe242f1d66326610bfbe30

9 years agodrm: env var for disable no comp mode
Taekyun Kim [Thu, 5 Nov 2015 03:04:32 +0000 (12:04 +0900)]
drm: env var for disable no comp mode

Use PEPPER_DRM_DISABLE_NO_COMP=1 to disable no comp mode.

Change-Id: I693f670c4a9b6fc68a981c5c63184b5b16bc7c6e

9 years agorender: Don't use polygon clipper by default
Taekyun Kim [Thu, 5 Nov 2015 02:59:13 +0000 (11:59 +0900)]
render: Don't use polygon clipper by default

Current polygon clipper has bugs and if it is implemented correctly
there could still be problems like "seam artifect".

Change-Id: I9746d689362a42c13fdd1cf8d3c94030f5260ead

9 years agopepper: Remove unused self event handler of pepper_object_t
Taekyun Kim [Tue, 3 Nov 2015 07:55:13 +0000 (16:55 +0900)]
pepper: Remove unused self event handler of pepper_object_t

Change-Id: Icc4fcbfbf0b339e6301632afcaac6e0bb74c3ea4

9 years agopepper: Split input events into device events and core events
Taekyun Kim [Tue, 3 Nov 2015 06:25:27 +0000 (15:25 +0900)]
pepper: Split input events into device events and core events

Use PEPPER_EVENT_INPUT_DEVICE_XXX for pepper_input_device_t.
Event ID has been removed from pepper_input_event_t structure.

Change-Id: I76eadcf5d8f822b93b7ade94f1fdff62c892d073

9 years agorender: gl-renderer: implement polygon clipping
Junghoon [Tue, 3 Nov 2015 02:50:54 +0000 (11:50 +0900)]
render: gl-renderer: implement polygon clipping

    - add env var option
    - if PEPPER_GL_RENDERER_USE_GLSCISSOR=1 then use GlScissor
    - else use polygon clipping

Change-Id: I621717f04655eb2e8fa58ac5c92352cf758a9a3f

9 years agopepper: emit pepper input events after send wayland events to clients
Junghoon [Mon, 2 Nov 2015 08:46:41 +0000 (17:46 +0900)]
pepper: emit pepper input events after send wayland events to clients

Change-Id: Ic31725b0c5b5b2c40369946bcbe5cc8931130fe3

9 years agopepper: change touch APIs
Junghoon [Mon, 2 Nov 2015 08:00:44 +0000 (17:00 +0900)]
pepper: change touch APIs

    - change pepper_touch_point_get_focus to pepper_touch_get_focus
    - change pepper_touch_point_set_focus to pepper_touch_set_focus
        - add / remove touch point in pepper_touch_set_focus

Change-Id: I48d278662798b01189431f38ce3e1f772ec56db1

9 years agopepper: remove cancel_touch_point in pepper_touch_grab
Junghoon [Mon, 2 Nov 2015 07:40:12 +0000 (16:40 +0900)]
pepper: remove cancel_touch_point in pepper_touch_grab

Change-Id: If9d64789e317aaf01f5a18b08021c4277934f510

9 years agopepper: change touch APIs
Junghoon [Mon, 2 Nov 2015 07:38:29 +0000 (16:38 +0900)]
pepper: change touch APIs

    - change pepper_touch_point_get_position to pepper_touch_get_position
    - add pepper_touch_set_position

Change-Id: I2b5942599219f92b11cb716720c346a0ed6c02cf

9 years agopepper: change input event sending APIs
Junghoon [Mon, 2 Nov 2015 07:06:40 +0000 (16:06 +0900)]
pepper: change input event sending APIs

    - APIs for pointer, keyboard, touch
    - add view parameter to send input event

Change-Id: Ibb512319c85f67eb253d685ecbd65a386434c858

9 years agodrm: Don't print error msg when direct scanout failed
Taekyun Kim [Mon, 2 Nov 2015 04:04:19 +0000 (13:04 +0900)]
drm: Don't print error msg when direct scanout failed

Change-Id: I597b7c188f696937e9c28884398cc855e06a88d1

9 years agopepper: env var option for printing FPS
Taekyun Kim [Fri, 30 Oct 2015 02:03:52 +0000 (11:03 +0900)]
pepper: env var option for printing FPS

PEPPER_DEBUG_FPS=1 to print FPS on the console.

Change-Id: I4d96b5abe6063d0e1ebb54e24aa0391d06ffbf41

9 years agodrm: Support for shadow buffer
Taekyun Kim [Thu, 29 Oct 2015 09:36:52 +0000 (18:36 +0900)]
drm: Support for shadow buffer

Set evn var PEPPER_DRM_USE_SHADOW to 1 to use shadow buffer. Dumb buffers are
mapped as non-cached, so reading the dumb buffers is slow when doing blending.
If we can assume that all surfaces are opaque, disabling shadow buffer might
produce better performance.

Change-Id: I594e8952cdab96c488ddeab83ab8c9be0701ce73

9 years agorender: Composite repaint region only
Taekyun Kim [Wed, 28 Oct 2015 07:04:57 +0000 (16:04 +0900)]
render: Composite repaint region only

Change-Id: I05d3f5ab4a3da8654ad1fd01d65b91a204dbd5d8

9 years agopepper: Better repaint scheduling
Taekyun Kim [Wed, 28 Oct 2015 06:29:21 +0000 (15:29 +0900)]
pepper: Better repaint scheduling

Change-Id: If99be91ea6d2b514ecd015d45874585dcbda876c

9 years agorender: gl-renderer: set need_full_upload after calling glGenTextures
Junghoon [Wed, 28 Oct 2015 07:49:08 +0000 (16:49 +0900)]
render: gl-renderer: set need_full_upload after calling glGenTextures

    - and remove buffer_destroy_handler

Change-Id: I7b1710e98cdfb6d2c5df70fba4c6386dcf042cf1

9 years agodrm: clear overlay on drm_output_destroy()
Junghoon [Tue, 27 Oct 2015 10:07:42 +0000 (19:07 +0900)]
drm: clear overlay on drm_output_destroy()

Change-Id: I639714501d9fc1a9bdfcdc188fe4759b41cfc1d6

9 years agodrm: set connected flag false when output is disconnected
Junghoon [Tue, 27 Oct 2015 10:05:14 +0000 (19:05 +0900)]
drm: set connected flag false when output is disconnected

Change-Id: I250511b12b6730a160ec3ffdfc765667cedbe283

9 years agodrm: delay output destruction until vblank & page filp handlers are done
Junghoon [Tue, 27 Oct 2015 09:26:25 +0000 (18:26 +0900)]
drm: delay output destruction until vblank & page filp handlers are done

Change-Id: I104940fad30a9c048fa519a578f5019deb01a376

9 years agopepper: change buffer reference handling
Junghoon [Wed, 28 Oct 2015 06:18:33 +0000 (15:18 +0900)]
pepper: change buffer reference handling

Change-Id: I22dbd744f5da71686390b78807de4186ee18b958

9 years agodrm: set page_flip_pending true after call drmModePageFlip
Junghoon [Tue, 27 Oct 2015 07:26:16 +0000 (16:26 +0900)]
drm: set page_flip_pending true after call drmModePageFlip

Change-Id: I132b311a392e0460cc3f10d246a923574afeb6cb

9 years agodrm: replace drm_output_destroy() with pepper_output_destroy()
Junghoon [Tue, 27 Oct 2015 07:16:16 +0000 (16:16 +0900)]
drm: replace drm_output_destroy() with pepper_output_destroy()

Change-Id: Ie24cccb4cfa70a9d18366a225c66a5f428827765

9 years agodrm: implement overlay assignment
Junghoon [Tue, 27 Oct 2015 04:23:57 +0000 (13:23 +0900)]
drm: implement overlay assignment

Change-Id: I2c3ae72e04fac638568b15b0b7518febc0724840

9 years agopepper: bugfix in touch that is wrong check condition.
Seunghun Lee [Thu, 22 Oct 2015 02:11:15 +0000 (11:11 +0900)]
pepper: bugfix in touch that is wrong check condition.

Change-Id: Iabc44583a78ad88c497b7543cb7995c9a642dd65

9 years agopepper: use clamped values in pointer_set_position()
Junghoon [Wed, 21 Oct 2015 01:39:57 +0000 (10:39 +0900)]
pepper: use clamped values in pointer_set_position()

Change-Id: Ib12c19ccfff75c44ff5581cce8ba948ee1a7c376

9 years agopepper: set pointer clamp values correctly in pepper_pointer_create()
Junghoon [Wed, 21 Oct 2015 01:37:42 +0000 (10:37 +0900)]
pepper: set pointer clamp values correctly in pepper_pointer_create()

Change-Id: Ifc3ec245b2e0d37ae22b4e3f687cb22b9b1666b4

9 years agorender: Call begin/end_access when accessing shm buffer
Taekyun Kim [Tue, 20 Oct 2015 08:56:04 +0000 (17:56 +0900)]
render: Call begin/end_access when accessing shm buffer

Change-Id: I1d55ff55603c2db2b4b1556842faffefee6dec87

9 years agorender: Stop listening buffer destroy when the surface has been destroyed
Taekyun Kim [Tue, 20 Oct 2015 08:47:48 +0000 (17:47 +0900)]
render: Stop listening buffer destroy when the surface has been destroyed

Change-Id: Iffc63f4213e58a1861eca0d01b962564654a1d84

9 years agopepper: Set default keep_buffer flag to TRUE
Taekyun Kim [Tue, 20 Oct 2015 08:47:01 +0000 (17:47 +0900)]
pepper: Set default keep_buffer flag to TRUE

Change-Id: I26945fa27c22e51925ea342eef39119674ac2a17

9 years agopepper: Correctly manage buffer ref count when keep_buffer is TRUE
Taekyun Kim [Tue, 20 Oct 2015 06:51:06 +0000 (15:51 +0900)]
pepper: Correctly manage buffer ref count when keep_buffer is TRUE

Change-Id: I445af4554951b7a94dc24623aae503669477ef04

9 years agopepper: Bug fix on handling buffer release
Taekyun Kim [Tue, 20 Oct 2015 05:40:38 +0000 (14:40 +0900)]
pepper: Bug fix on handling buffer release

Change-Id: I52fda9e859cabe48eee3d200a5676166900c4709

9 years agopepper: Fix SEGV when NULL buffer is attached
Taekyun Kim [Tue, 20 Oct 2015 05:21:58 +0000 (14:21 +0900)]
pepper: Fix SEGV when NULL buffer is attached

Change-Id: Id5dac4dc14a66d63e8a741ab8d0c5e702efb81c9

9 years agopepper: Don't listen release event of the previous buffer
Taekyun Kim [Tue, 20 Oct 2015 05:15:37 +0000 (14:15 +0900)]
pepper: Don't listen release event of the previous buffer

Change-Id: I264f0c9d0a1d107a53d292af8b5808eaeb2b437b