Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Unified Diff: third_party/go/src/golang.org/x/mobile/gl/types_debug.go

Issue 1275153002: Remove third_party/golang.org/x/mobile as it is no longer used with Go 1.5. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove golang.org/x/mobile Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/go/src/golang.org/x/mobile/gl/types_debug.go
diff --git a/third_party/go/src/golang.org/x/mobile/gl/types_debug.go b/third_party/go/src/golang.org/x/mobile/gl/types_debug.go
deleted file mode 100644
index f9c51834d9f4a331dd575112ffdc3a49bb6f5af2..0000000000000000000000000000000000000000
--- a/third_party/go/src/golang.org/x/mobile/gl/types_debug.go
+++ /dev/null
@@ -1,83 +0,0 @@
-// Copyright 2014 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// +build linux darwin
-// +build gldebug
-
-package gl
-
-// Alternate versions of the types defined in types.go with extra
-// debugging information attached. For documentation, see types.go.
-
-/*
-#cgo darwin LDFLAGS: -framework OpenGL
-#cgo linux LDFLAGS: -lGLESv2
-#cgo darwin CFLAGS: -DGOOS_darwin
-#cgo linux CFLAGS: -DGOOS_linux
-
-#ifdef GOOS_linux
-#include <GLES2/gl2.h>
-#endif
-
-#ifdef GOOS_darwin
-#include <OpenGL/gl3.h>
-#endif
-*/
-import "C"
-import "fmt"
-
-type Enum uint32
-
-type Attrib struct {
- Value uint
- name string
-}
-
-type Program struct {
- Value uint32
-}
-
-type Shader struct {
- Value uint32
-}
-
-type Buffer struct {
- Value uint32
-}
-
-type Framebuffer struct {
- Value uint32
-}
-
-type Renderbuffer struct {
- Value uint32
-}
-
-type Texture struct {
- Value uint32
-}
-
-type Uniform struct {
- Value int32
- name string
-}
-
-func (v Attrib) c() C.GLuint { return C.GLuint(v.Value) }
-func (v Enum) c() C.GLenum { return C.GLenum(v) }
-func (v Program) c() C.GLuint { return C.GLuint(v.Value) }
-func (v Shader) c() C.GLuint { return C.GLuint(v.Value) }
-func (v Buffer) c() C.GLuint { return C.GLuint(v.Value) }
-func (v Framebuffer) c() C.GLuint { return C.GLuint(v.Value) }
-func (v Renderbuffer) c() C.GLuint { return C.GLuint(v.Value) }
-func (v Texture) c() C.GLuint { return C.GLuint(v.Value) }
-func (v Uniform) c() C.GLint { return C.GLint(v.Value) }
-
-func (v Attrib) String() string { return fmt.Sprintf("Attrib(%d:%s)", v.Value, v.name) }
-func (v Program) String() string { return fmt.Sprintf("Program(%d)", v.Value) }
-func (v Shader) String() string { return fmt.Sprintf("Shader(%d)", v.Value) }
-func (v Buffer) String() string { return fmt.Sprintf("Buffer(%d)", v.Value) }
-func (v Framebuffer) String() string { return fmt.Sprintf("Framebuffer(%d)", v.Value) }
-func (v Renderbuffer) String() string { return fmt.Sprintf("Renderbuffer(%d)", v.Value) }
-func (v Texture) String() string { return fmt.Sprintf("Texture(%d)", v.Value) }
-func (v Uniform) String() string { return fmt.Sprintf("Uniform(%d:%s)", v.Value, v.name) }
« no previous file with comments | « third_party/go/src/golang.org/x/mobile/gl/types_common.go ('k') | third_party/go/src/golang.org/x/mobile/gl/types_prod.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698