Merge lp:~hikiko/compiz/compiz.shared-transform-ezoom into lp:compiz/0.9.12

Proposed by Eleni Maria Stea
Status: Needs review
Proposed branch: lp:~hikiko/compiz/compiz.shared-transform-ezoom
Merge into: lp:compiz/0.9.12
Prerequisite: lp:~hikiko/compiz/compiz.use-pipeline-with-3d-clipping
Diff against target: 32 lines (+6/-0)
2 files modified
plugins/ezoom/src/ezoom.cpp (+4/-0)
plugins/opengl/include/opengl/opengl.h (+2/-0)
To merge this branch: bzr merge lp:~hikiko/compiz/compiz.shared-transform-ezoom
Reviewer Review Type Date Requested Status
Sam Spilsbury Needs Fixing
PS Jenkins bot (community) continuous-integration Needs Fixing
Marco Trevisan (Treviño) Pending
Unity Team Pending
Review via email: mp+266357@code.launchpad.net

This proposal supersedes a proposal from 2015-07-03.

Commit message

saves the enhanced zoom transformation on gScreen so that other plugins that use the opengl can use it

Description of the change

saves the enhanced zoom transformation on gScreen so that other plugins that use the opengl can use it

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Approve (continuous-integration)
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote : Posted in a previous version of this proposal

vertexbuffer and 3d changes are probably for another MP

Revision history for this message
Eleni Maria Stea (hikiko) wrote : Posted in a previous version of this proposal

> vertexbuffer and 3d changes are probably for another MP

Right. Basically that's part of the 3d windows plugin fix, which I forgot to add as a prerequisite branch :) Apologies!

3951. By Eleni Maria Stea

removed comment

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Sam Spilsbury (smspillaz) wrote :

I don't really understand this - if Unity needs to use the transform, it is available to it in glPaintOutput.

I also note the age of this branch - is it still relevant or can it be dropped?

review: Needs Fixing

Unmerged revisions

3951. By Eleni Maria Stea

removed comment

3950. By Eleni Maria Stea

renamed sh_transform to ezoom_transform

3949. By Eleni Maria Stea

added sh_transform member to gScreen to store transformations that
need to be exchanged between plugins (eg ezoom and unityshell), filled it
in ezoom

3948. By Eleni Maria Stea

local merge

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/ezoom/src/ezoom.cpp'
2--- plugins/ezoom/src/ezoom.cpp 2014-10-22 16:01:27 +0000
3+++ plugins/ezoom/src/ezoom.cpp 2015-07-30 06:20:33 +0000
4@@ -519,12 +519,16 @@
5
6 mask |= PAINT_SCREEN_TRANSFORMED_MASK;
7
8+ gScreen->ezoom_transform = zTransform;
9 status = gScreen->glPaintOutput (sa, zTransform, region, output, mask);
10
11 drawCursor (output, transform);
12 }
13 else
14+ {
15+ gScreen->ezoom_transform = transform;
16 status = gScreen->glPaintOutput (attrib, transform, region, output, mask);
17+ }
18
19 if (grabIndex)
20 drawBox (transform, output, box);
21
22=== modified file 'plugins/opengl/include/opengl/opengl.h'
23--- plugins/opengl/include/opengl/opengl.h 2014-12-10 13:21:23 +0000
24+++ plugins/opengl/include/opengl/opengl.h 2015-07-30 06:20:33 +0000
25@@ -763,6 +763,8 @@
26 GLScreen (CompScreen *s);
27 ~GLScreen ();
28
29+ GLMatrix ezoom_transform;
30+
31 CompOption::Vector & getOptions ();
32 bool setOption (const CompString &name, CompOption::Value &value);
33

Subscribers

People subscribed via source and target branches