github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/exp/shiny/driver/gldriver/buffer.go (about) 1 // Copyright 2015 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package gldriver 6 7 import "image" 8 9 type bufferImpl struct { 10 rgba *image.RGBA 11 size image.Point 12 } 13 14 func (b *bufferImpl) Release() {} 15 func (b *bufferImpl) Size() image.Point { return b.size } 16 func (b *bufferImpl) Bounds() image.Rectangle { return image.Rectangle{Max: b.size} } 17 func (b *bufferImpl) RGBA() *image.RGBA { return b.rgba }