1. 31 May, 2020 1 commit
  2. 29 Apr, 2020 2 commits
  3. 17 Apr, 2020 1 commit
    • David Edmundson's avatar
      [autotests] Optimistic attempt to fix RemoteAccessTest reilability · 1b141294
      David Edmundson authored
      Summary:
      In this test we are waiting on 4 events. 2 things via 2 threads. It was
      unstable.
      
      This patch avoids hardcoding a bunch of ifs() handling recieving
      different orders, by waiting for both events.
      
      We can't use QTRY_COMPARE as ConnectionThread does magic things with
      QCoreApplication::eventDispatcher which don't work quite the same.
      
      This is a bit of a shot in the dark. It passes 100% of the time locally,
      lets see what CI manages to do :)
      
      Test Plan: Ran test :)
      
      Reviewers: #kwin, zzag
      
      Reviewed By: #kwin, zzag
      
      Subscribers: zzag, kde-frameworks-devel
      
      Tags: #frameworks
      
      Differential Revision: https://phabricator.kde.org/D28892
      1b141294
  4. 16 Mar, 2020 1 commit
  5. 07 Dec, 2019 1 commit
  6. 04 Mar, 2019 1 commit
    • David Edmundson's avatar
      Hopefully fix flaky remote access test · f0152135
      David Edmundson authored
      Summary:
      We have 4 events:
      
      buffer1 created
      buffer2 created
      buffer1 paramters sent
      buffer2 paramters sent
      
      Some are batched
      
      We should connect to buffer 1's parameters being sent after the first
      buffer is recieved, not in the potential event loop waiting for buffer
      2.
      
      Test Plan:
      Passes locally
      Haven't tested on build.k.o
      
      Reviewers: #kwin
      
      Subscribers: kde-frameworks-devel
      
      Tags: #frameworks
      
      Differential Revision: https://phabricator.kde.org/D19476
      f0152135
  7. 06 Nov, 2018 1 commit
  8. 11 Sep, 2018 1 commit
    • Roman Gilg's avatar
      [server] Fix remote access buffer handling when output not bound · 1faa629d
      Roman Gilg authored
      Summary:
      If a client has not bound a certain output do not directly return
      but try to deliver the buffer to other clients.
      
      If none of them has requested it, send bufferReleased signal
      immediately to let compositor know that the buffer should
      be cleaned up.
      
      Test Plan: Manually. Autotest planned.
      
      Reviewers: #kwin, #frameworks, davidedmundson
      
      Reviewed By: #kwin, davidedmundson
      
      Subscribers: jgrulich, davidedmundson, kde-frameworks-devel
      
      Tags: #frameworks
      
      Differential Revision: https://phabricator.kde.org/D15422
      1faa629d
  9. 25 Mar, 2018 1 commit
    • Oleg Chernovskiy's avatar
      Add Remote Access interface to KWayland · 5116fe0c
      Oleg Chernovskiy authored
      Summary:
      This commit adds an interface bridge from KWin to KRfb. The purpose of
      this protocol is to pass a GBM fd of currently displayed buffer from
      KWin. The buffer is expected to be fully drawn once it is passed.
      
      Related to D1230
      
      Test Plan:
      ********* Start testing of RemoteAccessTest *********
      Config: Using QtTest library 5.6.0, Qt 5.6.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 6.1.1 20160501)
      PASS   : RemoteAccessTest::initTestCase()
      QDEBUG : RemoteAccessTest::testSendReleaseSingle() kwayland-client: Connected to Wayland server at: "kwayland-test-remote-access-0"
      QDEBUG : RemoteAccessTest::testSendReleaseSingle() kwayland-client: Wayland Interface:  wl_shm / 1 / 1
      QDEBUG : RemoteAccessTest::testSendReleaseSingle() kwayland-client: Wayland Interface:  org_kde_kwin_remote_access_manager / 2 / 1
      QDEBUG : RemoteAccessTest::testSendReleaseSingle() kwayland-server: Server buffer sent: fd 15
      QDEBUG : RemoteAccessTest::testSendReleaseSingle() kwayland-client: Got buffer, server fd: 15
      QDEBUG : RemoteAccessTest::testSendReleaseSingle() kwayland-server: Remote buffer returned, client 4 , id 0 , fd 15
      QDEBUG : RemoteAccessTest::testSendReleaseSingle() kwayland-server: Buffer released, fd 15
      QDEBUG : RemoteAccessTest::testSendReleaseSingle() kwayland-client: Buffer released
      PASS   : RemoteAccessTest::testSendReleaseSingle()
      QDEBUG : RemoteAccessTest::testSendReleaseMultiple() kwayland-client: Connected to Wayland server at: "kwayland-test-remote-access-0"
      QDEBUG : RemoteAccessTest::testSendReleaseMultiple() kwayland-client: Wayland Interface:  wl_shm / 1 / 1
      QDEBUG : RemoteAccessTest::testSendReleaseMultiple() kwayland-client: Wayland Interface:  org_kde_kwin_remote_access_manager / 2 / 1
      QDEBUG : RemoteAccessTest::testSendReleaseMultiple() kwayland-server: Server buffer sent: fd 15
      QDEBUG : RemoteAccessTest::testSendReleaseMultiple() kwayland-client: Got buffer, server fd: 15
      QDEBUG : RemoteAccessTest::testSendReleaseMultiple() kwayland-client: Got buffer, server fd: 15
      QDEBUG : RemoteAccessTest::testSendReleaseMultiple() kwayland-server: Remote buffer returned, client 4 , id 0 , fd 15
      QDEBUG : RemoteAccessTest::testSendReleaseMultiple() kwayland-server: Remote buffer returned, client 5 , id 0 , fd 15
      QDEBUG : RemoteAccessTest::testSendReleaseMultiple() kwayland-server: Buffer released, fd 15
      QDEBUG : RemoteAccessTest::testSendReleaseMultiple() kwayland-client: Buffer released
      QDEBUG : RemoteAccessTest::testSendReleaseMultiple() kwayland-client: Buffer released
      PASS   : RemoteAccessTest::testSendReleaseMultiple()
      QDEBUG : RemoteAccessTest::testSendClientGone() kwayland-client: Connected to Wayland server at: "kwayland-test-remote-access-0"
      QDEBUG : RemoteAccessTest::testSendClientGone() kwayland-client: Wayland Interface:  wl_shm / 1 / 1
      QDEBUG : RemoteAccessTest::testSendClientGone() kwayland-client: Wayland Interface:  org_kde_kwin_remote_access_manager / 2 / 1
      QDEBUG : RemoteAccessTest::testSendClientGone() kwayland-server: Server buffer sent: fd 15
      QDEBUG : RemoteAccessTest::testSendClientGone() kwayland-server: Buffer released, fd 15
      PASS   : RemoteAccessTest::testSendClientGone()
      QDEBUG : RemoteAccessTest::testSendReceiveClientGone() kwayland-client: Connected to Wayland server at: "kwayland-test-remote-access-0"
      QDEBUG : RemoteAccessTest::testSendReceiveClientGone() kwayland-client: Wayland Interface:  wl_shm / 1 / 1
      QDEBUG : RemoteAccessTest::testSendReceiveClientGone() kwayland-client: Wayland Interface:  org_kde_kwin_remote_access_manager / 2 / 1
      QDEBUG : RemoteAccessTest::testSendReceiveClientGone() kwayland-server: Server buffer sent: fd 15
      QDEBUG : RemoteAccessTest::testSendReceiveClientGone() kwayland-client: Got buffer, server fd: 15
      QDEBUG : RemoteAccessTest::testSendReceiveClientGone() kwayland-client: Buffer released
      QDEBUG : RemoteAccessTest::testSendReceiveClientGone() kwayland-server: Buffer released, fd 15
      PASS   : RemoteAccessTest::testSendReceiveClientGone()
      PASS   : RemoteAccessTest::cleanupTestCase()
      Totals: 6 passed, 0 failed, 0 skipped, 0 blacklisted
      ********* Finished testing of RemoteAccessTest *********
      
      Reviewers: graesslin, davidedmundson, romangg
      
      Reviewed By: davidedmundson, romangg
      
      Subscribers: jtamate, jgrulich, romangg, ngraham, alexeymin, #frameworks, davidedmundson, plasma-devel
      
      Tags: #plasma_on_wayland, #frameworks
      
      Maniphest Tasks: T5653, T7785
      
      Differential Revision: https://phabricator.kde.org/D1231
      5116fe0c