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

Issue 4233041: add SkAutoTUnref (Closed)

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

Patch Set 1 #

Total comments: 4

Patch Set 2 : combine SkAutoUnref and SkAutoTUnref #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -75 lines) Patch
M include/core/SkRefCnt.h View 1 1 chunk +24 lines, -25 lines 0 comments Download
D src/core/SkRefCnt.cpp View 1 1 chunk +0 lines, -48 lines 0 comments Download
M src/core/core_files.mk View 1 1 chunk +0 lines, -1 line 0 comments Download
M tests/UtilsTest.cpp View 1 2 chunks +23 lines, -1 line 0 comments Download

Messages

Total messages: 4
reed1
13 years, 8 months ago (2011-02-24 22:50:28 UTC) #1
Steve VanDeBogart
LGTM, with the suggestions below. http://codereview.appspot.com/4233041/diff/1/include/core/SkRefCnt.h File include/core/SkRefCnt.h (right): http://codereview.appspot.com/4233041/diff/1/include/core/SkRefCnt.h#newcode76 include/core/SkRefCnt.h:76: class SkAutoUnref : SkNoncopyable ...
13 years, 8 months ago (2011-02-24 23:04:54 UTC) #2
reed1
Combined the two classes now. Removed the ref/unref apis, as they were a little confusing ...
13 years, 8 months ago (2011-02-25 13:34:05 UTC) #3
Steve VanDeBogart
13 years, 8 months ago (2011-02-25 18:06:37 UTC) #4
LGTM.

You made me dig up why I suggested keeping the implementation in the .cpp file:
https://sites.google.com/a/chromium.org/dev/developers/coding-style/cpp-dos-a...
The biggest point being that the compiler is probably including a non-inlined
version of those methods in many .o files, which slows link time.
Sign in to reply to this message.

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