Timm Bäder
|
412fcb0330
|
scrolledwindow: Avoid using gtk_widget_get_preferred_size
This way we only measure in the direction we need.
|
2020-01-07 17:27:17 +01:00 |
|
Timm Bäder
|
b8d1c3ab55
|
gl renderer: Don't force repeat node child offscreen
|
2020-01-07 17:27:17 +01:00 |
|
Timm Bäder
|
4fb519f04d
|
renderborder: Only get border width if we really need to
We did this unconditionally before the if statement, but we don't need
to do it if any of the early-out checks in the not-border-image branch
hits.
|
2020-01-07 17:27:17 +01:00 |
|
Timm Bäder
|
054d69aaf9
|
gl renderer: Fix a misleading comment
|
2020-01-07 17:27:17 +01:00 |
|
Timm Bäder
|
1dea6d4fc7
|
gl renderer: Speed up bounds transformation
We started saving the scale of the current modelview directly in the
RenderOpBuilder, so we don't need to poke the modelview stack anymore.
|
2020-01-07 17:27:17 +01:00 |
|
Timm Bäder
|
022d19a4c6
|
gl renderer: Add debug code for color nodes
|
2020-01-07 17:27:17 +01:00 |
|
Timm Bäder
|
ef7276c398
|
gl renderer: Trivial variable reordering
|
2020-01-07 17:27:17 +01:00 |
|
Timm Bäder
|
0a8ca49b5e
|
gl renderer: transform border outline like everything else
|
2020-01-07 17:27:17 +01:00 |
|
Timm Bäder
|
74f18f71d3
|
gl renderer: Move work to the blur vertex shader
|
2020-01-07 17:27:17 +01:00 |
|
Timm Bäder
|
c0d4a6fc81
|
gl renderer: Avoid copying a matrix
|
2020-01-07 17:27:17 +01:00 |
|
Timm Bäder
|
1dd31d58fb
|
testsuite: Add a test case for rotated border node
|
2020-01-07 17:27:17 +01:00 |
|
Timm Bäder
|
766d4dff76
|
GskTransform: Compute sin/deg of 90deg rotations manually
Otherwise we might end up with inaccuracies, e.g. when
gsk_transform_transform_bounds()'ing bounds.
|
2020-01-07 17:27:17 +01:00 |
|
Timm Bäder
|
e62f135c6a
|
GskTransform: Normalize angles
Make sure all angles are in the [0..365) range
|
2020-01-07 17:27:17 +01:00 |
|
Timm Bäder
|
4788f88840
|
snapshot: Repeat color nodes by creating a larger color node
|
2020-01-07 17:27:17 +01:00 |
|
Timm Bäder
|
587bc82c37
|
gl renderer: Print debug node message
|
2020-01-07 17:27:17 +01:00 |
|
Timm Bäder
|
750dc8dbe2
|
gl driver: Inline function into only caller
|
2020-01-07 17:27:17 +01:00 |
|
Timm Bäder
|
d490d8f1f3
|
renderbackground: Try to omit a save/restore pair
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
cb2f523994
|
rendernodes: Use floats for everything
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
075a0ccb5e
|
renderbackground: Save a snapshot_translate() call
Just add the values manually when really using the snapshot later. Also
unifies the two if branches by pulling out getting the x/y values.
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
db91b6dc61
|
gl renderer: Load vertex data directly into vertices GArray
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
44ac2d5abb
|
gl renderer: Pass linear gradient stops to shaders directly
No need to copy them into the render ops like this.
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
d7df56b6cb
|
gsk: Make GskColorStop.offset a float
Doesn't make sense for this to be double if everything else is float.
Also makes it possible to 'easily' pass this to the GPU.
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
6a9bc5daef
|
Avoid a few state changes
We can't optimize the save/restore calls away in the snapshot code, so
do it from the caller side.
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
b8aa51d522
|
gl renderer: Move more work to the vertex shaders
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
f79c807645
|
gl renderer: Don't invert offset value twice
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
d0d2ad9f5b
|
gl renderer: Remove unused variable from shader
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
0b8298038a
|
gl renderer: Move color computation to vertex shader
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
6ef0bb8bea
|
gl renderer: Move final color computation to vertex shader
.. of the coloring program, which is used all the time for text.
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
91472b2ecd
|
gl renderer: Compute final color in vertex shader
This is a very often used shader. No need to to do this for every
fragment.
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
80ddcf38d4
|
supp: Ignore calloc in the AMD driver
What'cha gonna do
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
1477882b31
|
testentryicons: Fix a memory leak
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
73f2167fe4
|
gl renderer: Avoid an invalid read
We need to copy the color here, since the program state can live across
frame boundaries.
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
2079c898e7
|
gl renderer: Remove some unneeded calculations from shaders
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
c79c18f39c
|
gl renderer: Shuffle things around a bit
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
cef7f7f87d
|
gl renderer: Move work to the gradient vertex shader
No need to do this stuff once per fragment.
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
fdce30d3f8
|
gl renderer: Add some in/out compat glue to the shaders
so we can use _IN_ and _OUT_ and get the right things for
desktop/es/legacy GL.
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
f07397f4dd
|
gl renderer: Upload GL_RGBA texture data in GLES
Colored icons are still broken this way, but at least they show up and
text works.
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
f1751f514c
|
gltextureatlas: Use more correct debug name for texture
These aren't all glyph atlases anymore.
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
2cbfb0e980
|
GdkGLContext: check for GL_KHR_debug for GL debug output
This is available in GLES.
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
8dd7f5aefe
|
gl renderer: Mark beginning of frame if DEBUG_OPS is set
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
398f49ad31
|
gl renderer: Trivial declaration reorder
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
3d260a950e
|
gl renderer: Remove a few outdated comments
|
2020-01-07 17:27:16 +01:00 |
|
Timm Bäder
|
f31667f437
|
gl renderer: Remove unused translation handling
|
2020-01-07 17:27:15 +01:00 |
|
Timm Bäder
|
219493c818
|
gl renderer: Don't copy matrix/offset of color matrix nodes into ops
|
2020-01-07 17:27:15 +01:00 |
|
Timm Bäder
|
06f63764fb
|
gl renderer: Initialize alpha uniform to 1.0
This makes gl-legacy work and gl-gles work except for text and icons.
|
2020-01-07 17:27:15 +01:00 |
|
Timm Bäder
|
1243174e53
|
gl renderer: Make RoundedRect work in gles
Which can't return struct types containing arrays. So let's revert to
the previous version but still send the rect along as a vec4[3];
|
2020-01-07 17:27:15 +01:00 |
|
Timm Bäder
|
cc909b160f
|
gl renderer: Rewrite shader builder
Use a unified approach to write both vertex and fragment shader in the
same file.
|
2020-01-07 17:27:15 +01:00 |
|
Timm Bäder
|
d12dde07c3
|
gl renderer: Fix program uniform updating code
This breaks the initial uniform value, but we will fix that in a later
commit in a different way.
|
2020-01-07 17:27:15 +01:00 |
|
Timm Bäder
|
5191b6fccd
|
gl renderer: Only send clip corners if we need to
We change the clip bounds a lot more ofthen than the clip corners and
they are already split up in the shader, so only send the corners if we
need to.
|
2020-01-07 17:27:15 +01:00 |
|
Timm Bäder
|
2e6e6c1779
|
gl renderer: Fix color comparison
|
2020-01-07 17:27:15 +01:00 |
|