2
0
mirror of synced 2025-02-23 23:08:14 +00:00

6 Commits

Author SHA1 Message Date
David Crawshaw
5cddc1460e app: introduce Config and start registration
Config provides a way to concurrently access Width and Height.

Register provides a way for packages to run code on app state change
without plumbing changes all the way to the process main function.
This is motivated by gl/glutil.Image which needs to rebuild its
textures on start/stop and can be deeply nested.
(See golang.org/cl/9707 for the followup.)

Tested manually on android and darwin/amd64. Doing this kind makes it
clear any CL modifying this code needs a lot of manual testing right
now, so some kind of trybot support is something I'm going to
prioritise.

Fixes golang/go#10686
Fixes golang/go#10461
Fixes golang/go#10442
Fixes golang/go#10226
Updates golang/go#10327

Change-Id: I2882ebf3995b6ed857cda823e94fbb17c54b43a8
Reviewed-on: https://go-review.googlesource.com/9708
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2015-05-06 17:32:53 +00:00
David Symonds
7b659348a5 mobile: add import comments.
Change-Id: I0ff6d42a8e11f49df6fc3066e86be75015b93631
Reviewed-on: https://go-review.googlesource.com/1238
Reviewed-by: Andrew Gerrand <adg@golang.org>
2014-12-10 01:59:04 +00:00
Nigel Tao
34a31a192f go.mobile/geom: consolidate two small files into one.
Also fix a typo in "Pacakge geom".

LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/159630043
2014-10-29 09:18:41 +11:00
Nigel Tao
fab1e51609 go.mobile/geom: rename Scale to PixelsPerPt.
LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/160160043
2014-10-22 13:50:04 +11:00
David Crawshaw
39b42192b2 go.mobile/geom: introduce Rectangle
LGTM=adg
R=adg, nigeltao
CC=golang-codereviews
https://golang.org/cl/151820043
2014-09-29 05:13:18 +10:00
David Crawshaw
0a1cd6409e go.mobile/geom: coordinate system and unit of length
LGTM=nigeltao
R=nigeltao, ruiu
CC=adg, davidday, golang-codereviews
https://golang.org/cl/140940044
2014-09-04 09:02:06 -04:00