Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(18)

Issue 1918047: code review 1918047: image: replace Width and Height by Bounds, and introduc... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 12 months ago by nigeltao
Modified:
14 years, 12 months ago
Reviewers:
rog
CC:
r, rsc, golang-dev
Visibility:
Public.

Description

image: replace Width and Height by Bounds, and introduce the Point and Rect types. The actual image representation is unchanged. A future change will replace the {[][]color} with {[]color, stride int, r Rectangle} and possibly a clip region. The draw.Color, draw.Point and draw.Rect types will be removed in a future change. Trying to do it in this one polluted the diff with trivia.

Patch Set 1 #

Patch Set 2 : code review 1918047: image: replace Width and Height by Bounds, and introduc... #

Total comments: 2

Patch Set 3 : code review 1918047: image: replace Width and Height by Bounds, and introduc... #

Patch Set 4 : code review 1918047: image: replace Width and Height by Bounds, and introduc... #

Total comments: 25

Patch Set 5 : code review 1918047: image: replace Width and Height by Bounds, and introduc... #

Patch Set 6 : code review 1918047: image: replace Width and Height by Bounds, and introduc... #

Total comments: 1

Patch Set 7 : code review 1918047: image: replace Width and Height by Bounds, and introduc... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -105 lines) Patch
M src/pkg/exp/4s/xs.go View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/exp/draw/color.go View 1 chunk +1 line, -3 lines 0 comments Download
M src/pkg/exp/draw/draw.go View 1 chunk +7 lines, -5 lines 0 comments Download
M src/pkg/exp/draw/draw_test.go View 3 chunks +12 lines, -6 lines 0 comments Download
M src/pkg/exp/draw/x11/conn.go View 1 2 3 3 chunks +10 lines, -7 lines 0 comments Download
M src/pkg/exp/nacl/av/image.go View 1 2 3 4 5 1 chunk +3 lines, -5 lines 0 comments Download
M src/pkg/exp/spacewar/spacewar.go View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/image/Makefile View 1 chunk +1 line, -0 lines 0 comments Download
A src/pkg/image/geom.go View 1 2 3 4 5 6 1 chunk +125 lines, -0 lines 0 comments Download
M src/pkg/image/image.go View 1 2 3 4 5 10 chunks +45 lines, -52 lines 0 comments Download
M src/pkg/image/names.go View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M src/pkg/image/png/reader_test.go View 2 chunks +6 lines, -5 lines 0 comments Download
M src/pkg/image/png/writer.go View 1 2 3 4 5 chunks +14 lines, -11 lines 0 comments Download
M src/pkg/image/png/writer_test.go View 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 12
nigeltao
Hello r, rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 12 months ago (2010-08-09 12:08:05 UTC) #1
nigeltao
http://codereview.appspot.com/1918047/diff/2001/3011 File src/pkg/image/names.go (right): http://codereview.appspot.com/1918047/diff/2001/3011#newcode28 src/pkg/image/names.go:28: func (c ColorImage) Bounds() Rectangle { return Rectangle{Point{0, 0}, ...
14 years, 12 months ago (2010-08-09 12:09:34 UTC) #2
r
http://codereview.appspot.com/1918047/diff/11001/12006 File src/pkg/exp/nacl/av/image.go (right): http://codereview.appspot.com/1918047/diff/11001/12006#newcode29 src/pkg/exp/nacl/av/image.go:29: return image.Rectangle{image.Point{0, 0}, image.Point{0, 0}} ZR http://codereview.appspot.com/1918047/diff/11001/12006#newcode31 src/pkg/exp/nacl/av/image.go:31: return ...
14 years, 12 months ago (2010-08-09 23:32:56 UTC) #3
nigeltao
http://codereview.appspot.com/1918047/diff/11001/12006 File src/pkg/exp/nacl/av/image.go (right): http://codereview.appspot.com/1918047/diff/11001/12006#newcode29 src/pkg/exp/nacl/av/image.go:29: return image.Rectangle{image.Point{0, 0}, image.Point{0, 0}} On 2010/08/09 23:32:56, r ...
14 years, 12 months ago (2010-08-10 00:43:52 UTC) #4
r
LGTM http://codereview.appspot.com/1918047/diff/21001/22009 File src/pkg/image/geom.go (right): http://codereview.appspot.com/1918047/diff/21001/22009#newcode101 src/pkg/image/geom.go:101: // Min.X <= Max.X and Min.Y <= Max.Y. ...
14 years, 12 months ago (2010-08-10 01:55:48 UTC) #5
nigeltao
*** Submitted as http://code.google.com/p/go/source/detail?r=7dcf7ae083c1 *** image: replace Width and Height by Bounds, and introduce the ...
14 years, 12 months ago (2010-08-10 02:09:02 UTC) #6
rog
http://codereview.appspot.com/1918047/diff/2001/3011 File src/pkg/image/names.go (right): http://codereview.appspot.com/1918047/diff/2001/3011#newcode28 src/pkg/image/names.go:28: func (c ColorImage) Bounds() Rectangle { return Rectangle{Point{0, 0}, ...
14 years, 12 months ago (2010-08-10 07:41:02 UTC) #7
nigeltao_gnome
On 10 August 2010 17:41, <rogpeppe@gmail.com> wrote: > http://codereview.appspot.com/1918047/diff/2001/3011 > File src/pkg/image/names.go (right): > > ...
14 years, 12 months ago (2010-08-11 04:38:51 UTC) #8
r
On Wed, Aug 11, 2010 at 2:38 PM, Nigel Tao <nigel.tao.gnome@gmail.com> wrote: > On 10 ...
14 years, 12 months ago (2010-08-11 04:56:51 UTC) #9
rsc
You really don't want -50 to mean Dx-50 (or Dy-50). I know it's the X ...
14 years, 12 months ago (2010-08-11 06:09:31 UTC) #10
nigeltao_gnome
On 11 August 2010 16:09, Russ Cox <rsc@golang.org> wrote: > You really don't want -50 ...
14 years, 11 months ago (2010-08-11 08:33:28 UTC) #11
nigeltao_gnome
14 years, 11 months ago (2010-08-11 12:18:32 UTC) #12
On 11 August 2010 14:56, Rob 'Commander' Pike <r@golang.org> wrote:
> that would prevent a window being moved left or up off the screen.

I'll start a new golang-dev thread.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b