Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
099d7b4d
Commit
099d7b4d
authored
Sep 24, 2010
by
Nigel Tao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exp/draw: remove "this isn't ready yet" comments.
R=rsc, r2 CC=golang-dev
https://golang.org/cl/2248046
parent
bfb12761
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
6 deletions
+0
-6
draw.go
src/pkg/exp/draw/draw.go
+0
-4
conn.go
src/pkg/exp/draw/x11/conn.go
+0
-2
No files found.
src/pkg/exp/draw/draw.go
View file @
099d7b4d
...
@@ -8,8 +8,6 @@
...
@@ -8,8 +8,6 @@
// and the X Render extension.
// and the X Render extension.
package
draw
package
draw
// BUG(rsc): This is a toy library and not ready for production use.
import
"image"
import
"image"
// m is the maximum color value returned by image.Color.RGBA.
// m is the maximum color value returned by image.Color.RGBA.
...
@@ -40,8 +38,6 @@ func Draw(dst Image, r image.Rectangle, src image.Image, sp image.Point) {
...
@@ -40,8 +38,6 @@ func Draw(dst Image, r image.Rectangle, src image.Image, sp image.Point) {
// DrawMask aligns r.Min in dst with sp in src and mp in mask and then replaces the rectangle r
// DrawMask aligns r.Min in dst with sp in src and mp in mask and then replaces the rectangle r
// in dst with the result of a Porter-Duff composition. A nil mask is treated as opaque.
// in dst with the result of a Porter-Duff composition. A nil mask is treated as opaque.
// The implementation is simple and slow.
// TODO(nigeltao): Optimize this.
func
DrawMask
(
dst
Image
,
r
image
.
Rectangle
,
src
image
.
Image
,
sp
image
.
Point
,
mask
image
.
Image
,
mp
image
.
Point
,
op
Op
)
{
func
DrawMask
(
dst
Image
,
r
image
.
Rectangle
,
src
image
.
Image
,
sp
image
.
Point
,
mask
image
.
Image
,
mp
image
.
Point
,
op
Op
)
{
sb
:=
src
.
Bounds
()
sb
:=
src
.
Bounds
()
dx
,
dy
:=
sb
.
Max
.
X
-
sp
.
X
,
sb
.
Max
.
Y
-
sp
.
Y
dx
,
dy
:=
sb
.
Max
.
X
-
sp
.
X
,
sb
.
Max
.
Y
-
sp
.
Y
...
...
src/pkg/exp/draw/x11/conn.go
View file @
099d7b4d
...
@@ -8,8 +8,6 @@
...
@@ -8,8 +8,6 @@
// A summary of the wire format can be found in XCB's xproto.xml.
// A summary of the wire format can be found in XCB's xproto.xml.
package
x11
package
x11
// BUG(nigeltao): This is a toy library and not ready for production use.
import
(
import
(
"bufio"
"bufio"
"exp/draw"
"exp/draw"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment