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

Proposed by Eleni Maria Stea
Status: Superseded
Proposed branch: lp:~hikiko/compiz/compiz.shared-transform-ezoom
Merge into: lp:compiz/0.9.12
Diff against target: 66 lines (+15/-1)
4 files modified
plugins/ezoom/src/ezoom.cpp (+4/-0)
plugins/opengl/include/opengl/opengl.h (+5/-0)
plugins/opengl/src/vertexbuffer.cpp (+4/-1)
plugins/td/src/3d.cpp (+2/-0)
To merge this branch: bzr merge lp:~hikiko/compiz/compiz.shared-transform-ezoom
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Unity Team Pending
Review via email: mp+263781@code.launchpad.net

This proposal has been superseded by a proposal from 2015-07-30.

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 :
review: Approve (continuous-integration)
Revision history for this message
Marco Trevisan (TreviƱo) (3v1n0) wrote :

vertexbuffer and 3d changes are probably for another MP

Revision history for this message
Eleni Maria Stea (hikiko) wrote :

> 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

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-03 14:07:43 +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-03 14:07:43 +0000
25@@ -763,6 +763,11 @@
26 GLScreen (CompScreen *s);
27 ~GLScreen ();
28
29+ /* identity matrix, fill it and use it to exchange transformations
30+ * between plugins */
31+
32+ GLMatrix ezoom_transform;
33+
34 CompOption::Vector & getOptions ();
35 bool setOption (const CompString &name, CompOption::Value &value);
36
37
38=== modified file 'plugins/opengl/src/vertexbuffer.cpp'
39--- plugins/opengl/src/vertexbuffer.cpp 2014-10-30 12:47:25 +0000
40+++ plugins/opengl/src/vertexbuffer.cpp 2015-07-03 14:07:43 +0000
41@@ -621,7 +621,10 @@
42 glTexCoordPointer (2, GL_FLOAT, 0, &textureData[i][0]);
43 }
44
45- glDrawArrays (primitiveType, vertexOffset, vertexData.size () / 3);
46+ glDrawArrays (primitiveType, vertexOffset, maxVertices > 0 ?
47+ std::min (static_cast <int> (vertexData.size () / 3),
48+ maxVertices) :
49+ vertexData.size () / 3);
50
51 glDisableClientState (GL_VERTEX_ARRAY);
52 glDisableClientState (GL_NORMAL_ARRAY);
53
54=== modified file 'plugins/td/src/3d.cpp'
55--- plugins/td/src/3d.cpp 2013-05-12 05:02:40 +0000
56+++ plugins/td/src/3d.cpp 2015-07-03 14:07:43 +0000
57@@ -454,8 +454,10 @@
58
59 glLoadMatrixf (mTransform.getMatrix ());
60
61+ GL::shaders = false;
62 tdw->gWindow->glPaint (tdw->gWindow->paintAttrib (), mTransform,
63 infiniteRegion, newMask);
64+ GL::shaders = true;
65
66 gScreen->glDisableOutputClipping ();
67

Subscribers

People subscribed via source and target branches