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
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
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.
On 2012/04/03 18:10:24, robertphillips wrote: > I guess my question was: should I be doing ...
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.
Issue 5984043: Fix GL attach/detach in Mac SampleApp
(Closed)
Created 12 years, 8 months ago by bsalomon
Modified 12 years, 8 months ago
Reviewers: robertphillips
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 2