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

Issue 5984043: Fix GL attach/detach in Mac SampleApp (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by bsalomon
Modified:
12 years, 8 months ago
Reviewers:
robertphillips
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : asdflk #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -3 lines) Patch
M src/views/mac/SkNSView.mm View 1 4 chunks +11 lines, -3 lines 2 comments Download

Messages

Total messages: 6
bsalomon
12 years, 8 months ago (2012-04-03 15:22:24 UTC) #1
robertphillips
LGTM but I did have two questions. http://codereview.appspot.com/5984043/diff/2001/src/views/mac/SkNSView.mm File src/views/mac/SkNSView.mm (right): http://codereview.appspot.com/5984043/diff/2001/src/views/mac/SkNSView.mm#newcode228 src/views/mac/SkNSView.mm:228: namespace { ...
12 years, 8 months ago (2012-04-03 15:46:27 UTC) #2
bsalomon
On 2012/04/03 15:46:27, robertphillips wrote: > LGTM but I did have two questions. > > ...
12 years, 8 months ago (2012-04-03 17:55:04 UTC) #3
bsalomon
Closed with r3589
12 years, 8 months ago (2012-04-03 18:10:17 UTC) #4
robertphillips
I guess my question was: should I be doing this everywhere since I don't remember ...
12 years, 8 months ago (2012-04-03 18:10:24 UTC) #5
bsalomon
12 years, 8 months ago (2012-04-03 18:28:03 UTC) #6
On 2012/04/03 18:10:24, robertphillips wrote:
> I guess my question was: should I be doing this everywhere since I don't
> remember it from the coding standard? In past places I have worked we made
such
> functions static members of the related class. This did gunk up the class a
bit
> but captured the relationship.

In Skia helper functions that don't need to be visible to the clients of the
class (or access to protected/private area of a class) are usually written as
non-members and not declared in the header. There is inconsistency in whether we
declare them as static or put them in an unnamed namespace. Skia uses static a
lot and Mike is partial to it. WebKit and Chrome use unnamed namespaces. Ganesh
initially used static but newer code uses unnamed namespaces and whenever I
touch a static function in Ganesh I convert it to unnamed namespace.
Sign in to reply to this message.

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