diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2011-05-12 08:05:27 -0700 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2011-05-12 08:05:27 -0700 |
commit | 555569c59ced09743507966f73d2d500c6deccec (patch) | |
tree | 4bca3a3bcdd565b833c84eb3896f280dd50e9dda /WebKit/android/nav/FindCanvas.cpp | |
parent | 80aad5eedfe9e84cabb8540f818f7d1971ecadc3 (diff) | |
parent | eac91fe693799401095de9338c877d188e8cb8ae (diff) | |
download | external_webkit-555569c59ced09743507966f73d2d500c6deccec.zip external_webkit-555569c59ced09743507966f73d2d500c6deccec.tar.gz external_webkit-555569c59ced09743507966f73d2d500c6deccec.tar.bz2 |
Merge "Switch to SkSafeUnref for better portability"
Diffstat (limited to 'WebKit/android/nav/FindCanvas.cpp')
-rw-r--r-- | WebKit/android/nav/FindCanvas.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/WebKit/android/nav/FindCanvas.cpp b/WebKit/android/nav/FindCanvas.cpp index 15cce43..ac3deef 100644 --- a/WebKit/android/nav/FindCanvas.cpp +++ b/WebKit/android/nav/FindCanvas.cpp @@ -47,7 +47,7 @@ MatchInfo::MatchInfo() { } MatchInfo::~MatchInfo() { - m_picture->safeUnref(); + SkSafeUnref(m_picture); } MatchInfo::MatchInfo(const MatchInfo& src) { @@ -58,7 +58,7 @@ MatchInfo::MatchInfo(const MatchInfo& src) { } void MatchInfo::set(const SkRegion& region, SkPicture* pic, int layerId) { - m_picture->safeUnref(); + SkSafeUnref(m_picture); m_layerId = layerId; m_location = region; m_picture = pic; @@ -138,7 +138,7 @@ FindCanvas::~FindCanvas() { setBounder(NULL); /* Just in case getAndClear was not called. */ delete mMatches; - mWorkingPicture->safeUnref(); + SkSafeUnref(mWorkingPicture); } // Each version of addMatch returns a rectangle for a match. |