Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/gioui/gio
Mirror of the Gio main repository (https://git.sr.ht/~eliasnaur/gio)
https://github.com/gioui/gio
Pointer hit areas and paint clip areas are separate concepts, but
similar enough to warrant merg...
Converted with
gofmt -w -r 'pointer.Rect(r) -> clip.Rect(r)' .
gofmt -w -r 'pointer.Ellipse(r) ...
And deprecate (but not yet remove) Circle.
Signed-off-by: Elias Naur <[email protected]>
28fc08a508773bcad74629ff0a1b3e10a4efcf2c authored about 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
1d0769ae89a599560de7777885db15dc10845ac0 authored about 3 years ago by Elias Naur <[email protected]>
This comment and associated code were designed to guard against
the scrollbar failing to anchor ...
Signed-off-by: Pierre Curto <[email protected]>
ef36ce39539eefcab6d63190bbfab088eefa5d54 authored about 3 years ago by Pierre Curto <[email protected]>
We're about to make clip.Ops act as pointer areas, in which case we'd
like to contain the effect...
The Add method was a compatibility stop-gap.
API change. Use clip.Op.Push and Pop the return va...
e14e33b87e434f7752245a937f1fe96641988dda authored about 3 years ago by Elias Naur <[email protected]>op.Save, op.SaveStack were compatibility stop-gaps.
API change. Most op.Save/Loads can safely b...
563eb603823d037115b6cf8be9e4f5e1d40d1e82 authored about 3 years ago by Elias Naur <[email protected]>
We're about to use clip.Ops for pointer areas; this change makes the
decoding accessible from th...
Signed-off-by: Elias Naur <[email protected]>
9548dbe901c132093354652336b510b6e7721c19 authored about 3 years ago by Elias Naur <[email protected]>
Change 936c266b036e24aff7df7437f1b57fc716233b88 converted a
transformation pop incorrectly. This...
Signed-off-by: Elias Naur <[email protected]>
382eabc0a89f948495a467d33ec8291f77195f91 authored about 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
a0c756c5570b64beebf2a97f5d1845ca8a540053 authored about 3 years ago by Elias Naur <[email protected]>This change adds basic support for adaptive icons:
https://developer.android.com/guide/practice...
dd3edf3c23d72bed6ddb0a0966424906cdd77aa9 authored about 3 years ago by Inkeliz <[email protected]>Signed-off-by: Pierre Curto <[email protected]>
241e5660536fdea186ec4e0502673e1693e135c0 authored about 3 years ago by Pierre Curto <[email protected]>Fixes flipped images in the compute renderer on Metal.
Signed-off-by: Elias Naur <mail@eliasnau...
da0e1bd439efd4870078c47ac3d79889d27cb496 authored about 3 years ago by Elias Naur <[email protected]>Fixes the compute renderer on iPhone 6.
Signed-off-by: Elias Naur <[email protected]>
1672c88d9e6b96ca9c19b4a5bcf56d05e7c07f88 authored about 3 years ago by Elias Naur <[email protected]>
Like a previous change for pointer ops, process key ops during the
router decode of ops. This is...
The router package decodes the entire ops list thrice: once for pointer
ops, once for key ops, o...
Signed-off-by: Elias Naur <[email protected]>
a4626d93040d6c0abd4356134799b88b4f543764 authored about 3 years ago by Elias Naur <[email protected]>This is to allow for future new Types.
Signed-off-by: Pierre Curto <[email protected]>
6b0e00b9aa54627351217e1114ae33d2b1114c85 authored about 3 years ago by Pierre Curto <[email protected]>
The default renderer caches pre-processed paths for efficient re-use,
but failed to distinguish ...
Signed-off-by: Pierre Curto <[email protected]>
9c16954bef22aa041e52e31df14ffcd393e5ec1e authored about 3 years ago by Pierre Curto <[email protected]>
When the same handler is added several times
and that handler sets pointer.Grabbed, it gets lost...
This removes the allocation needed to drop all handlers except one.
Signed-off-by: Pierre Curto...
e5d8a4b8d0cee155fc38ce4bd8275a6d1f09fe0a authored about 3 years ago by Pierre Curto <[email protected]>
dropHandlers is mainly used for single tag removal except in one instance.
In that case, simply ...
Signed-off-by: Pierre Curto <[email protected]>
ae5219e4d454f6c883723039e17cad0674f45ff9 authored about 3 years ago by Pierre Curto <[email protected]>Fixes gio#291
Signed-off-by: Dylan Staley <[email protected]>
4d22a926a9dd351279072edea3528dd8f6d968b2 authored about 3 years ago by Dylan Staley <[email protected]>
Ops is in the internal package ops, but external clients can reach its
method through op.Ops.Int...
They're only used internally.
Signed-off-by: Elias Naur <[email protected]>
87d050bcc7145227f08cac864f7e668526e835a4 authored about 3 years ago by Elias Naur <[email protected]>Signed-off-by: Pierre Curto <[email protected]>
05f0f5c20f45a04b28412e1e33f8d6fa1ee99fe2 authored about 3 years ago by Pierre Curto <[email protected]>Fixes gio#286
Signed-off-by: Elias Naur <[email protected]>
a4242d04d1cba3d44b1d9042655e03ca321e1280 authored about 3 years ago by Elias Naur <[email protected]>
A previous change merged PassOp with AreaOp under the assumption that
the pass mode would be set...
It's better to fall back on OpenGL than to accept a software Vulkan
implementation. More importa...
The mapErr helper may map the error to nil, in which case the caller
should continue, not exit.
...
In a discussion with Raph Levien, the author of our compute renderer
implementation, it became c...
The op.Save and Load methods exist to support the need for
transformation, clip, pointer area st...
Merge package opconsts into ops as well; it only existed to break
import cycles.
Signed-off-by:...
391725b9d081c55beb0668521433139d9fd73ee9 authored over 3 years ago by Elias Naur <[email protected]>
We're about to make operation scopes explicit, which would result in
both AreaOp and PassOp be s...
Signed-off-by: Elias Naur <[email protected]>
62daadb37c9d38e3e10170730a24fc0cd6052765 authored over 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
794b7854ea92b4e5e3b98cdda2a6a4f17de67b31 authored over 3 years ago by Elias Naur <[email protected]>
This change avoids a macro wrapping every text shape, and prepares text
shaping for scoped clip ...
Most importantly, return dimensions and transformation instead of adding
operations. Makes the f...
Signed-off-by: Elias Naur <[email protected]>
cccb8d2c2bc2c63ed471d18c10e76a1ff1396b83 authored over 3 years ago by Elias Naur <[email protected]>
We're about to split state into a clip stack and a transform stack. The
intersect fields belongs...
The clip field tracks the intersection of the clip stack, and belongs in
the clip stack entries....
The rect field tracks whether the clip stack can be represented by a
pixel-aligned rectangle. It...
Since the Process* methods on clipboardQueue are called while decoding
the ops, no need to reche...
Signed-off-by: Pierre Curto <[email protected]>
e11ac9784cc841030a9c5a84ab138fa4f1eb9d46 authored over 3 years ago by Pierre Curto <[email protected]>Signed-off-by: Pierre Curto <[email protected]>
c1bd206ece15543567db10277a5ef11ee04b1b65 authored over 3 years ago by Pierre Curto <[email protected]>
Most Gio programs have exlusive access to their OpenGL contexts, where
saving and restoring of t...
Before this change, the sRGB emulation target would always be the
current framebuffer. Now it's ...
Signed-off-by: Pierre Curto <[email protected]>
bfd1e76b78626c5f955296156de853d510a04d1a authored over 3 years ago by Pierre Curto <[email protected]>Signed-off-by: Pierre Curto <[email protected]>
58608185375e472f83232a837ad2a6e345f0fce2 authored over 3 years ago by Pierre Curto <[email protected]>Signed-off-by: Inkeliz <[email protected]>
50476239f6a3634712f1f945245e0d6cbf5bf3bd authored over 3 years ago by Inkeliz <[email protected]>Fixes gio#281
Signed-off-by: Elias Naur <[email protected]>
d6e6ca848aeb4ab546d1c9b250246de959bf0e6d authored over 3 years ago by Elias Naur <[email protected]>While here, add a missing nil check.
Updates gio#280
Signed-off-by: Elias Naur <mail@eliasnaur...
6c1f9c19f5392270ae459719d0b5d4305ab2a9f4 authored over 3 years ago by Elias Naur <[email protected]>
glGetUniformLocation can return -1 (not found) for uniforms that have
been optimized out during ...
Fixes gio#277
Signed-off-by: Elias Naur <[email protected]>
41f3a7e74ee6b2fe379ecee37d2842eb11070967 authored over 3 years ago by Elias Naur <[email protected]>Discovered while debugging #277.
Signed-off-by: Elias Naur <[email protected]>
3434bf8af1826d2153a907cd09a38d7ae5096994 authored over 3 years ago by Elias Naur <[email protected]>For gio#277
Signed-off-by: Elias Naur <[email protected]>
72c67ff180ecbdca03a7868172fee325ddd58e7d authored over 3 years ago by Elias Naur <[email protected]>For gio#277
Signed-off-by: Elias Naur <[email protected]>
8b4758947f601fa23b38cbcb4db21a6cda89af22 authored over 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
868ea76acfddfdc3c9553234f099eea2b58db066 authored over 3 years ago by Elias Naur <[email protected]>
CFTypeRefs may not always contain valid pointers, so they must not be
stored in pointer types le...
There's no need to wait; the Metal backend performs the required
synchronization.
Signed-off-by...
8c6e3c5fdfcdd204742f00de26e18085c161cf58 authored over 3 years ago by Elias Naur <[email protected]>
Before this change, it was unclear who owned the platform specific
VkSurfaceKHR object, leading ...
There are too many driver issues with ES 3.1 compute shaders. Most
devices support Vulkan but so...
To use glCopyTexSubImage2D on the Samsung J2 it's not enough to
set GL_READ_FRAMEBUFFER. This ch...
Fixes gio#270
Signed-off-by: Elias Naur <[email protected]>
6665e0ef0fe6774be2c2c390b04ef8a1b28a786c authored over 3 years ago by Elias Naur <[email protected]>
This change implements a Vulkan port for the two renderers, old and
compute. Run with GIORENDERE...
The Vulkan backend can return device lost error from more than just
Present.
Signed-off-by: Eli...
bdd0893dd099b634363177badcfd6421bf6728d2 authored over 3 years ago by Elias Naur <[email protected]>
driver.Device.NewFramebuffer doesn't provide additional information over
driver.Device.NewTextur...
They can be deferred in the drivers that need them.
Signed-off-by: Elias Naur <[email protected]>
1f0f88dbd38d1a0f729d799f58a5a5d6b65286a3 authored over 3 years ago by Elias Naur <[email protected]>
MemoryBarrier is meant to stand in for OpenGL ES 3.1's glMemoryBarrier.
However, it badly fits w...
Vulkan textures (VkImage) are always in a particular layout, where each
layout is optimized for ...
Vulkan doesn't support it, so move vertex buffer updates outside render
passes. Splitting render...
Vulkan doesn't support changing uniforms during a render pass. However,
push constants *can* be ...
With the use of uniform buffers gone, we don't need the glsl 3.00 es
variant any longer.
We onl...
3a98f004f936055d64f3b92e70035419e6b4d61b authored over 3 years ago by Elias Naur <[email protected]>Vulkan may report VK_ERROR_OUT_OF_DATE_KHR which is not a fatal error.
Signed-off-by: Elias Nau...
af6770de1899196b16d1184b9d2c4ff98004075a authored over 3 years ago by Elias Naur <[email protected]>
Currently, we run kernel4.comp with whatever texture was
bound (or none) when there are no mater...
Signed-off-by: Elias Naur <[email protected]>
da1c4a60e005fd886109588ece61f8620fa9bde2 authored over 3 years ago by Elias Naur <[email protected]>
GPU contexts can hold on to a significant amount of resources. Clean
them up immediately instead...
Don't copy the padding when stride is larger than the width. Applies to
Texture.Upload and Frame...
Modern GPU API such as Metal and Vulkan use explicit render passes
and command buffers for recor...
Vulkan needs the topology stated in its pipeline descriptor, not at
draw time.
Signed-off-by: E...
3d1e9b085649c9e66860cdae2d5a0ef2d8ad7a88 authored over 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
78b6268f9b4acee98e79be4269117858a10cadcf authored over 3 years ago by Elias Naur <[email protected]>
Unlike Raise, Close and other fire-and-forget methods on Window,
Config calls driverRun because ...
Fixes #268
Signed-off-by: Pierre Curto <[email protected]>
64bcb1ccd51e790bcea194fb76a1646c2249624a authored over 3 years ago by Pierre Curto <[email protected]>Signed-off-by: Pierre Curto <[email protected]>
7463910191b27cad6409cc021f2cc704be2787ad authored over 3 years ago by Pierre Curto <[email protected]>
Switching to using a CAMetalLayer as the layer backing our NSView
implementation broke programs ...
This commit is based on a patch by Elias that improved drag scrolling
on the scrollbar by lockin...
Window.driverFunc says it can be run from any context. However, running
it from the Window.run e...
A previous change[0] moved all OpenGL function calls to the internal
opengl package, so that Gio...
RTLD_LOCAL is the default on Linux, whereas RTLD_GLOBAL is default on
macOS. Be explicit.
Signe...
dd6b379c74c801a24390585dc2e5069067ceaef4 authored over 3 years ago by Elias Naur <[email protected]>
This commit fixes a problem that could force the scroll indicator to
lay itself out outside of i...
Previously, it was possible for fromListPosition to return
an end coordinate greater than 1, whi...
Signed-off-by: Elias Naur <[email protected]>
fc5637804f323b4adbb93099d374ab70ee179ae7 authored over 3 years ago by Elias Naur <[email protected]>
d8 doesn't check and fails with an inscrutable error when using
unsupported JDK versions such as...
Signed-off-by: Elias Naur <[email protected]>
c175aaeb7c2be99e81c8ec430cfc75b5e1dfbaba authored over 3 years ago by Elias Naur <[email protected]>