forked from eclipse-platform/eclipse.platform.swt
-
Notifications
You must be signed in to change notification settings - Fork 7
Demo: Use GLCanvas for SkijaGC to render button #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
HeikoKlare
wants to merge
200
commits into
master
Choose a base branch
from
button-use-glcanvas
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Denis Ungemach <[email protected]>
Signed-off-by: Denis Ungemach <[email protected]>
Signed-off-by: Denis Ungemach <[email protected]>
Snippet24 didn't compile.
Signed-off-by: Denis Ungemach <[email protected]>
Signed-off-by: Denis Ungemach <[email protected]>
That way it will be rendered in Linux (as a black square so it still doesn't really work)
Signed-off-by: Denis Ungemach <[email protected]>
Signed-off-by: Denis Ungemach <[email protected]>
Signed-off-by: Denis Ungemach <[email protected]>
If you want to use it change super class of `Text` from `CText` to `CSimpleText`.
All 3 classes were copy-pasted from this article: https://www.eclipse.org/articles/Article-Writing%20Your%20Own%20Widget/Writing%20Your%20Own%20Widget.htm Only the absolutely necessary changes were made so the code compiles.
On MacOS, it still uses the own rendering by inheriting from `CCaret`
Signed-off-by: Denis Ungemach <[email protected]>
Signed-off-by: Denis Ungemach <[email protected]>
The implementation is missing though.
Its implementation is empty
ad1efbb to
9f4e525
Compare
Signed-off-by: Denis Ungemach <[email protected]>
This reverts commit 8d6e071.
9f4e525 to
c608fa9
Compare
659fde0 to
75c432c
Compare
a9f24e5 to
d2109d6
Compare
3d97fac to
aa02556
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is currently for demonstration purpose and not to be merged.
With this change, the
SkijaGCis extended by the capability of rendering directly into the buffer of aGLCanvas, and this functionality is applied to theButton.This change drastically improves performance as the bad-performing copy operation between Skia buffer and native buffer is avoided. Initial performance tests show a severe speedup of > 100 (i.e. 10.000%).