{"action":"created","comment":{"url":"https://api.github.com/repos/mer-qt/qtbase/pulls/comments/35187185","id":35187185,"diff_hunk":"@@ -48,15 +48,212 @@\n #include <QtPlatformSupport/private/qeglpbuffer_p.h>\n #include <QtGui/QSurface>\n #include <QtDebug>\n+#include <QOpenGLFramebufferObject>\n+#include <QOpenGLShaderProgram>\n \n QT_BEGIN_NAMESPACE\n \n+\n+class Blitter : public QOpenGLFunctions\n+{\n+public:\n+    Blitter(QEglFSContext *context)\n+        : m_context(context)\n+    {\n+        initializeOpenGLFunctions();\n+        m_blitProgram = new QOpenGLShaderProgram();\n+        m_blitProgram->addShaderFromSourceCode(QOpenGLShader::Vertex, \"attribute vec4 position;\\n\\\n+                                                                    attribute vec4 texCoords;\\n\\\n+                                                                    varying vec2 outTexCoords;\\n\\\n+                                                                    void main()\\n\\\n+                                                                    {\\n\\\n+                                                                        gl_Position = position;\\n\\\n+                                                                        outTexCoords = texCoords.xy;\\n\\","path":"src/plugins/platforms/eglfs/qeglfscontext.cpp","position":24,"original_position":24,"commit_id":"f9ece9edc718df2f758f8300d28fe6638338004f","original_commit_id":"f9ece9edc718df2f758f8300d28fe6638338004f","user":{"login":"sletta","id":6309668,"avatar_url":"https://avatars.githubusercontent.com/u/6309668?v=3","gravatar_id":"","url":"https://api.github.com/users/sletta","html_url":"https://github.com/sletta","followers_url":"https://api.github.com/users/sletta/followers","following_url":"https://api.github.com/users/sletta/following{/other_user}","gists_url":"https://api.github.com/users/sletta/gists{/gist_id}","starred_url":"https://api.github.com/users/sletta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sletta/subscriptions","organizations_url":"https://api.github.com/users/sletta/orgs","repos_url":"https://api.github.com/users/sletta/repos","events_url":"https://api.github.com/users/sletta/events{/privacy}","received_events_url":"https://api.github.com/users/sletta/received_events","type":"User","site_admin":false},"body":"if texCoords is a vec2, then you can use only texCoords, without .xy","created_at":"2015-07-22T07:23:21Z","updated_at":"2015-07-22T07:23:21Z","html_url":"https://github.com/mer-qt/qtbase/pull/44#discussion_r35187185","pull_request_url":"https://api.github.com/repos/mer-qt/qtbase/pulls/44","_links":{"self":{"href":"https://api.github.com/repos/mer-qt/qtbase/pulls/comments/35187185"},"html":{"href":"https://github.com/mer-qt/qtbase/pull/44#discussion_r35187185"},"pull_request":{"href":"https://api.github.com/repos/mer-qt/qtbase/pulls/44"}}},"pull_request":{"url":"https://api.github.com/repos/mer-qt/qtbase/pulls/44","id":40142096,"html_url":"https://github.com/mer-qt/qtbase/pull/44","diff_url":"https://github.com/mer-qt/qtbase/pull/44.diff","patch_url":"https://github.com/mer-qt/qtbase/pull/44.patch","issue_url":"https://api.github.com/repos/mer-qt/qtbase/issues/44","number":44,"state":"open","locked":false,"title":"eglfs: Allow scaling down the window surface","user":{"login":"giucam","id":680260,"avatar_url":"https://avatars.githubusercontent.com/u/680260?v=3","gravatar_id":"","url":"https://api.github.com/users/giucam","html_url":"https://github.com/giucam","followers_url":"https://api.github.com/users/giucam/followers","following_url":"https://api.github.com/users/giucam/following{/other_user}","gists_url":"https://api.github.com/users/giucam/gists{/gist_id}","starred_url":"https://api.github.com/users/giucam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giucam/subscriptions","organizations_url":"https://api.github.com/users/giucam/orgs","repos_url":"https://api.github.com/users/giucam/repos","events_url":"https://api.github.com/users/giucam/events{/privacy}","received_events_url":"https://api.github.com/users/giucam/received_events","type":"User","site_admin":false},"body":"This patch introduces the QT_QPA_EGLFS_SCALE environment variable.\r\nWhen set to an integer number > 1 it will scale the draws window\r\ncontent down by that scale factor.","created_at":"2015-07-16T15:29:35Z","updated_at":"2015-07-22T07:23:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1165d72ec79e483e87e61f94d2d6f6b34b469601","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mer-qt/qtbase/pulls/44/commits","review_comments_url":"https://api.github.com/repos/mer-qt/qtbase/pulls/44/comments","review_comment_url":"https://api.github.com/repos/mer-qt/qtbase/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mer-qt/qtbase/issues/44/comments","statuses_url":"https://api.github.com/repos/mer-qt/qtbase/statuses/f9ece9edc718df2f758f8300d28fe6638338004f","head":{"label":"giucam:eglfs","ref":"eglfs","sha":"f9ece9edc718df2f758f8300d28fe6638338004f","user":{"login":"giucam","id":680260,"avatar_url":"https://avatars.githubusercontent.com/u/680260?v=3","gravatar_id":"","url":"https://api.github.com/users/giucam","html_url":"https://github.com/giucam","followers_url":"https://api.github.com/users/giucam/followers","following_url":"https://api.github.com/users/giucam/following{/other_user}","gists_url":"https://api.github.com/users/giucam/gists{/gist_id}","starred_url":"https://api.github.com/users/giucam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giucam/subscriptions","organizations_url":"https://api.github.com/users/giucam/orgs","repos_url":"https://api.github.com/users/giucam/repos","events_url":"https://api.github.com/users/giucam/events{/privacy}","received_events_url":"https://api.github.com/users/giucam/received_events","type":"User","site_admin":false},"repo":{"id":22063858,"name":"qtbase","full_name":"giucam/qtbase","owner":{"login":"giucam","id":680260,"avatar_url":"https://avatars.githubusercontent.com/u/680260?v=3","gravatar_id":"","url":"https://api.github.com/users/giucam","html_url":"https://github.com/giucam","followers_url":"https://api.github.com/users/giucam/followers","following_url":"https://api.github.com/users/giucam/following{/other_user}","gists_url":"https://api.github.com/users/giucam/gists{/gist_id}","starred_url":"https://api.github.com/users/giucam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giucam/subscriptions","organizations_url":"https://api.github.com/users/giucam/orgs","repos_url":"https://api.github.com/users/giucam/repos","events_url":"https://api.github.com/users/giucam/events{/privacy}","received_events_url":"https://api.github.com/users/giucam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/giucam/qtbase","description":"","fork":true,"url":"https://api.github.com/repos/giucam/qtbase","forks_url":"https://api.github.com/repos/giucam/qtbase/forks","keys_url":"https://api.github.com/repos/giucam/qtbase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/giucam/qtbase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/giucam/qtbase/teams","hooks_url":"https://api.github.com/repos/giucam/qtbase/hooks","issue_events_url":"https://api.github.com/repos/giucam/qtbase/issues/events{/number}","events_url":"https://api.github.com/repos/giucam/qtbase/events","assignees_url":"https://api.github.com/repos/giucam/qtbase/assignees{/user}","branches_url":"https://api.github.com/repos/giucam/qtbase/branches{/branch}","tags_url":"https://api.github.com/repos/giucam/qtbase/tags","blobs_url":"https://api.github.com/repos/giucam/qtbase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/giucam/qtbase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/giucam/qtbase/git/refs{/sha}","trees_url":"https://api.github.com/repos/giucam/qtbase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/giucam/qtbase/statuses/{sha}","languages_url":"https://api.github.com/repos/giucam/qtbase/languages","stargazers_url":"https://api.github.com/repos/giucam/qtbase/stargazers","contributors_url":"https://api.github.com/repos/giucam/qtbase/contributors","subscribers_url":"https://api.github.com/repos/giucam/qtbase/subscribers","subscription_url":"https://api.github.com/repos/giucam/qtbase/subscription","commits_url":"https://api.github.com/repos/giucam/qtbase/commits{/sha}","git_commits_url":"https://api.github.com/repos/giucam/qtbase/git/commits{/sha}","comments_url":"https://api.github.com/repos/giucam/qtbase/comments{/number}","issue_comment_url":"https://api.github.com/repos/giucam/qtbase/issues/comments{/number}","contents_url":"https://api.github.com/repos/giucam/qtbase/contents/{+path}","compare_url":"https://api.github.com/repos/giucam/qtbase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/giucam/qtbase/merges","archive_url":"https://api.github.com/repos/giucam/qtbase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/giucam/qtbase/downloads","issues_url":"https://api.github.com/repos/giucam/qtbase/issues{/number}","pulls_url":"https://api.github.com/repos/giucam/qtbase/pulls{/number}","milestones_url":"https://api.github.com/repos/giucam/qtbase/milestones{/number}","notifications_url":"https://api.github.com/repos/giucam/qtbase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/giucam/qtbase/labels{/name}","releases_url":"https://api.github.com/repos/giucam/qtbase/releases{/id}","created_at":"2014-07-21T12:43:27Z","updated_at":"2015-05-12T13:45:22Z","pushed_at":"2015-07-21T15:12:11Z","git_url":"git://github.com/giucam/qtbase.git","ssh_url":"git@github.com:giucam/qtbase.git","clone_url":"https://github.com/giucam/qtbase.git","svn_url":"https://github.com/giucam/qtbase","homepage":"","size":160967,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"mer-stable"}},"base":{"label":"mer-qt:mer-stable","ref":"mer-stable","sha":"3f0086c1b286cd2e1b964e05deda502ee18334b1","user":{"login":"mer-qt","id":6041330,"avatar_url":"https://avatars.githubusercontent.com/u/6041330?v=3","gravatar_id":"","url":"https://api.github.com/users/mer-qt","html_url":"https://github.com/mer-qt","followers_url":"https://api.github.com/users/mer-qt/followers","following_url":"https://api.github.com/users/mer-qt/following{/other_user}","gists_url":"https://api.github.com/users/mer-qt/gists{/gist_id}","starred_url":"https://api.github.com/users/mer-qt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mer-qt/subscriptions","organizations_url":"https://api.github.com/users/mer-qt/orgs","repos_url":"https://api.github.com/users/mer-qt/repos","events_url":"https://api.github.com/users/mer-qt/events{/privacy}","received_events_url":"https://api.github.com/users/mer-qt/received_events","type":"Organization","site_admin":false},"repo":{"id":14718868,"name":"qtbase","full_name":"mer-qt/qtbase","owner":{"login":"mer-qt","id":6041330,"avatar_url":"https://avatars.githubusercontent.com/u/6041330?v=3","gravatar_id":"","url":"https://api.github.com/users/mer-qt","html_url":"https://github.com/mer-qt","followers_url":"https://api.github.com/users/mer-qt/followers","following_url":"https://api.github.com/users/mer-qt/following{/other_user}","gists_url":"https://api.github.com/users/mer-qt/gists{/gist_id}","starred_url":"https://api.github.com/users/mer-qt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mer-qt/subscriptions","organizations_url":"https://api.github.com/users/mer-qt/orgs","repos_url":"https://api.github.com/users/mer-qt/repos","events_url":"https://api.github.com/users/mer-qt/events{/privacy}","received_events_url":"https://api.github.com/users/mer-qt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mer-qt/qtbase","description":"","fork":true,"url":"https://api.github.com/repos/mer-qt/qtbase","forks_url":"https://api.github.com/repos/mer-qt/qtbase/forks","keys_url":"https://api.github.com/repos/mer-qt/qtbase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mer-qt/qtbase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mer-qt/qtbase/teams","hooks_url":"https://api.github.com/repos/mer-qt/qtbase/hooks","issue_events_url":"https://api.github.com/repos/mer-qt/qtbase/issues/events{/number}","events_url":"https://api.github.com/repos/mer-qt/qtbase/events","assignees_url":"https://api.github.com/repos/mer-qt/qtbase/assignees{/user}","branches_url":"https://api.github.com/repos/mer-qt/qtbase/branches{/branch}","tags_url":"https://api.github.com/repos/mer-qt/qtbase/tags","blobs_url":"https://api.github.com/repos/mer-qt/qtbase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mer-qt/qtbase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mer-qt/qtbase/git/refs{/sha}","trees_url":"https://api.github.com/repos/mer-qt/qtbase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mer-qt/qtbase/statuses/{sha}","languages_url":"https://api.github.com/repos/mer-qt/qtbase/languages","stargazers_url":"https://api.github.com/repos/mer-qt/qtbase/stargazers","contributors_url":"https://api.github.com/repos/mer-qt/qtbase/contributors","subscribers_url":"https://api.github.com/repos/mer-qt/qtbase/subscribers","subscription_url":"https://api.github.com/repos/mer-qt/qtbase/subscription","commits_url":"https://api.github.com/repos/mer-qt/qtbase/commits{/sha}","git_commits_url":"https://api.github.com/repos/mer-qt/qtbase/git/commits{/sha}","comments_url":"https://api.github.com/repos/mer-qt/qtbase/comments{/number}","issue_comment_url":"https://api.github.com/repos/mer-qt/qtbase/issues/comments{/number}","contents_url":"https://api.github.com/repos/mer-qt/qtbase/contents/{+path}","compare_url":"https://api.github.com/repos/mer-qt/qtbase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mer-qt/qtbase/merges","archive_url":"https://api.github.com/repos/mer-qt/qtbase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mer-qt/qtbase/downloads","issues_url":"https://api.github.com/repos/mer-qt/qtbase/issues{/number}","pulls_url":"https://api.github.com/repos/mer-qt/qtbase/pulls{/number}","milestones_url":"https://api.github.com/repos/mer-qt/qtbase/milestones{/number}","notifications_url":"https://api.github.com/repos/mer-qt/qtbase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mer-qt/qtbase/labels{/name}","releases_url":"https://api.github.com/repos/mer-qt/qtbase/releases{/id}","created_at":"2013-11-26T14:20:08Z","updated_at":"2015-04-14T15:25:26Z","pushed_at":"2015-07-21T15:12:12Z","git_url":"git://github.com/mer-qt/qtbase.git","ssh_url":"git@github.com:mer-qt/qtbase.git","clone_url":"https://github.com/mer-qt/qtbase.git","svn_url":"https://github.com/mer-qt/qtbase","homepage":"","size":201534,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":5,"forks":14,"open_issues":5,"watchers":0,"default_branch":"mer-stable"}},"_links":{"self":{"href":"https://api.github.com/repos/mer-qt/qtbase/pulls/44"},"html":{"href":"https://github.com/mer-qt/qtbase/pull/44"},"issue":{"href":"https://api.github.com/repos/mer-qt/qtbase/issues/44"},"comments":{"href":"https://api.github.com/repos/mer-qt/qtbase/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/mer-qt/qtbase/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/mer-qt/qtbase/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mer-qt/qtbase/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/mer-qt/qtbase/statuses/f9ece9edc718df2f758f8300d28fe6638338004f"}}}}