From a1d7652674e8f269b17d9be90d3c4c1d0e8830e8 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Wed, 6 Mar 2019 09:46:45 +0100 Subject: [PATCH] shiny/driver/gldriver: skip on GOOS=android gldriver doesn't build on android. Change-Id: Ifc5d9e54b196e82cd958e773b93ad01a38f028e4 Reviewed-on: https://go-review.googlesource.com/c/exp/+/165658 Run-TryBot: Elias Naur Reviewed-by: Brad Fitzpatrick --- shiny/driver/gldriver/context.go | 2 ++ shiny/driver/gldriver/other.go | 3 +++ shiny/widget/glwidget/glwidget.go | 2 ++ 3 files changed, 7 insertions(+) diff --git a/shiny/driver/gldriver/context.go b/shiny/driver/gldriver/context.go index 63fb17065..197be350a 100644 --- a/shiny/driver/gldriver/context.go +++ b/shiny/driver/gldriver/context.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build !android + package gldriver import ( diff --git a/shiny/driver/gldriver/other.go b/shiny/driver/gldriver/other.go index 6da51331e..bbfc03418 100644 --- a/shiny/driver/gldriver/other.go +++ b/shiny/driver/gldriver/other.go @@ -16,6 +16,9 @@ import ( "golang.org/x/exp/shiny/screen" ) +const useLifecycler = true +const handleSizeEventsAtChannelReceive = true + func newWindow(opts *screen.NewWindowOptions) (uintptr, error) { return 0, nil } func initWindow(id *windowImpl) {} diff --git a/shiny/widget/glwidget/glwidget.go b/shiny/widget/glwidget/glwidget.go index b63677b26..cfbacbed7 100644 --- a/shiny/widget/glwidget/glwidget.go +++ b/shiny/widget/glwidget/glwidget.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build !android + // Package glwidget provides a widget containing a GL ES framebuffer. package glwidget