Skip to content

Commit

Permalink
shiny/driver/gldriver: skip on GOOS=android
Browse files Browse the repository at this point in the history
gldriver doesn't build on android.

Change-Id: Ifc5d9e54b196e82cd958e773b93ad01a38f028e4
Reviewed-on: https://go-review.googlesource.com/c/exp/+/165658
Run-TryBot: Elias Naur <mail@eliasnaur.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
eliasnaur authored and bradfitz committed Mar 6, 2019
1 parent 01c40f5 commit a1d7652
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shiny/driver/gldriver/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
3 changes: 3 additions & 0 deletions shiny/driver/gldriver/other.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
Expand Down
2 changes: 2 additions & 0 deletions shiny/widget/glwidget/glwidget.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a1d7652

Please sign in to comment.