Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Issue 17448009: Use skia::RefPtr to avoid having to manually refcount GraphicsContextState::m_looper. (Closed)

Created:
7 years, 6 months ago by jbroman
Modified:
7 years, 5 months ago
CC:
blink-reviews, jamesr, eae+blinkwatch, danakj, Rik, jeez, pdr.
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Use skia::RefPtr to avoid having to manually refcount GraphicsContextState::m_looper. BUG=251744, 254509 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154263

Patch Set 1 #

Total comments: 1

Patch Set 2 : switch to skia::RefPtr, remove superfluous copy of m_imageBufferClip #

Total comments: 1

Patch Set 3 : use WTF::RefPtr, since it's compatible with SkRefCnt #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -26 lines) Patch
M Source/core/platform/graphics/GraphicsContext.h View 1 2 3 chunks +5 lines, -6 lines 0 comments Download
M Source/core/platform/graphics/GraphicsContext.cpp View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/platform/graphics/GraphicsContextState.h View 1 2 3 3 chunks +2 lines, -17 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
jbroman
7 years, 6 months ago (2013-06-19 15:45:08 UTC) #1
danakj
https://codereview.chromium.org/17448009/diff/1/Source/core/platform/graphics/GraphicsContextState.h File Source/core/platform/graphics/GraphicsContextState.h (right): https://codereview.chromium.org/17448009/diff/1/Source/core/platform/graphics/GraphicsContextState.h#newcode130 Source/core/platform/graphics/GraphicsContextState.h:130: SkRefPtr<SkDrawLooper> m_looper; I believe you want to use SKAutoTUnref ...
7 years, 6 months ago (2013-06-19 15:47:13 UTC) #2
jbroman
On 2013/06/19 15:47:13, danakj wrote: > https://codereview.chromium.org/17448009/diff/1/Source/core/platform/graphics/GraphicsContextState.h > File Source/core/platform/graphics/GraphicsContextState.h (right): > > https://codereview.chromium.org/17448009/diff/1/Source/core/platform/graphics/GraphicsContextState.h#newcode130 > ...
7 years, 6 months ago (2013-06-19 15:50:11 UTC) #3
danakj
On Wed, Jun 19, 2013 at 11:50 AM, <jbroman@chromium.org> wrote: > On 2013/06/19 15:47:13, danakj ...
7 years, 6 months ago (2013-06-19 15:53:50 UTC) #4
jbroman
Hmm, OK. Switched to skia::RefPtr.
7 years, 6 months ago (2013-06-19 17:43:12 UTC) #5
jamesr
https://codereview.chromium.org/17448009/diff/6001/Source/core/platform/graphics/GraphicsContext.h File Source/core/platform/graphics/GraphicsContext.h (right): https://codereview.chromium.org/17448009/diff/6001/Source/core/platform/graphics/GraphicsContext.h#newcode41 Source/core/platform/graphics/GraphicsContext.h:41: #include "skia/ext/refptr.h" this creates a cycle between the chromium ...
7 years, 6 months ago (2013-06-19 17:45:25 UTC) #6
jbroman
On 2013/06/19 17:45:25, jamesr wrote: > https://codereview.chromium.org/17448009/diff/6001/Source/core/platform/graphics/GraphicsContext.h > File Source/core/platform/graphics/GraphicsContext.h (right): > > https://codereview.chromium.org/17448009/diff/6001/Source/core/platform/graphics/GraphicsContext.h#newcode41 > ...
7 years, 6 months ago (2013-06-19 18:12:09 UTC) #7
danakj
On Wed, Jun 19, 2013 at 2:12 PM, <jbroman@chromium.org> wrote: > On 2013/06/19 17:45:25, jamesr ...
7 years, 6 months ago (2013-06-19 18:17:42 UTC) #8
Stephen Chennney
I would support (3), although I would create a new file instead of adding it ...
7 years, 6 months ago (2013-06-20 17:03:39 UTC) #9
danakj
On Thu, Jun 20, 2013 at 1:03 PM, <schenney@chromium.org> wrote: > I would support (3), ...
7 years, 6 months ago (2013-06-20 17:08:27 UTC) #10
danakj
On Thu, Jun 20, 2013 at 1:08 PM, Dana Jansens <danakj@chromium.org> wrote: > On Thu, ...
7 years, 6 months ago (2013-06-20 17:09:40 UTC) #11
jbroman
Just to provide one more option: 4. In https://codereview.appspot.com/6844116, reed@ added aliases for Skia's ref/unref ...
7 years, 6 months ago (2013-06-21 19:14:58 UTC) #12
danakj
On Fri, Jun 21, 2013 at 3:14 PM, <jbroman@chromium.org> wrote: > Just to provide one ...
7 years, 6 months ago (2013-06-24 15:23:46 UTC) #13
jbroman
PTAL.
7 years, 5 months ago (2013-07-04 15:37:12 UTC) #14
Stephen Chennney
Shouldn't this be OwnPtr? Or can Skia hold a ref count on it and keep ...
7 years, 5 months ago (2013-07-08 14:51:58 UTC) #15
jbroman
On 2013/07/08 14:51:58, Stephen Chenney wrote: > Shouldn't this be OwnPtr? Or can Skia hold ...
7 years, 5 months ago (2013-07-08 14:57:07 UTC) #16
jbroman
On 2013/07/08 14:57:07, jbroman wrote: > On 2013/07/08 14:51:58, Stephen Chenney wrote: > > Shouldn't ...
7 years, 5 months ago (2013-07-15 20:07:46 UTC) #17
Stephen Chennney
On 2013/07/15 20:07:46, jbroman wrote: > On 2013/07/08 14:57:07, jbroman wrote: > > On 2013/07/08 ...
7 years, 5 months ago (2013-07-15 21:13:47 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbroman@chromium.org/17448009/24001
7 years, 5 months ago (2013-07-15 21:14:06 UTC) #19
commit-bot: I haz the power
Retried try job too often on win_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout_rel&number=13394
7 years, 5 months ago (2013-07-16 00:44:51 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbroman@chromium.org/17448009/24001
7 years, 5 months ago (2013-07-16 02:45:29 UTC) #21
commit-bot: I haz the power
7 years, 5 months ago (2013-07-16 03:19:04 UTC) #22
Message was sent while issue was closed.
Change committed as 154263

Powered by Google App Engine
This is Rietveld 408576698