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

Issue 10979010: Remove WTF HashMap and PassOwnPtr dependencies for CCRenderPass (Closed)

Created:
8 years, 3 months ago by danakj
Modified:
8 years, 2 months ago
Reviewers:
jamesr, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, piman, backer, aelias_OOO_until_Jul13
Visibility:
Public.

Description

Remove WTF HashMap and PassOwnPtr dependencies for CCRenderPass We add a ScopedPtrHashMap and ScopedPtrVector which preserve the behaviour of HashMap<T, OwnPtr<V> > and Vector<OwnPtr<T>> and use these for CCRenderPass and any code that creates CCRenderPass objects. R=enne,jamesr BUG=152049 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158729 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158837

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : fix-windows #

Patch Set 6 : fix-windows-2 #

Patch Set 7 : fix-windows-3 #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -159 lines) Patch
M cc/CCDelegatedRendererLayerImpl.h View 3 chunks +4 lines, -3 lines 0 comments Download
M cc/CCDelegatedRendererLayerImpl.cpp View 3 chunks +5 lines, -3 lines 0 comments Download
M cc/CCDelegatedRendererLayerImplTest.cpp View 3 chunks +5 lines, -4 lines 0 comments Download
M cc/CCDirectRenderer.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M cc/CCDirectRenderer.cpp View 1 3 chunks +13 lines, -23 lines 0 comments Download
M cc/CCLayerTreeHostImpl.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/CCLayerTreeHostImpl.cpp View 1 2 2 chunks +3 lines, -7 lines 0 comments Download
M cc/CCLayerTreeHostImplTest.cpp View 1 2 3 9 chunks +13 lines, -45 lines 0 comments Download
M cc/CCRenderPass.h View 1 2 3 4 5 6 3 chunks +21 lines, -21 lines 0 comments Download
M cc/CCRenderPass.cpp View 2 chunks +5 lines, -5 lines 0 comments Download
M cc/CCRenderPassSink.h View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/CCRenderPassTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/CCRenderSurface.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/CCRenderSurfaceTest.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M cc/CCRendererGLTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/CCRendererSoftwareTest.cpp View 1 2 6 chunks +5 lines, -15 lines 0 comments Download
M cc/cc.gyp View 1 1 chunk +3 lines, -0 lines 0 comments Download
A cc/scoped_ptr_hash_map.h View 1 2 3 4 5 6 7 8 9 1 chunk +152 lines, -0 lines 0 comments Download
A + cc/scoped_ptr_vector.h View 5 chunks +17 lines, -18 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
danakj
PTAL
8 years, 3 months ago (2012-09-25 01:26:46 UTC) #1
jamesr
https://codereview.chromium.org/10979010/diff/2001/cc/CCLayerTreeHostImplTest.cpp File cc/CCLayerTreeHostImplTest.cpp (right): https://codereview.chromium.org/10979010/diff/2001/cc/CCLayerTreeHostImplTest.cpp#newcode3940 cc/CCLayerTreeHostImplTest.cpp:3940: if (!testData.renderPassCache.get(renderPassId)) .contains(renderPassId) ? https://codereview.chromium.org/10979010/diff/2001/cc/CCLayerTreeHostImplTest.cpp#newcode3943 cc/CCLayerTreeHostImplTest.cpp:3943: scoped_ptr<CCRenderPass> renderPass = ...
8 years, 3 months ago (2012-09-25 03:53:50 UTC) #2
danakj
Thanks, PTAL again. https://codereview.chromium.org/10979010/diff/2001/cc/CCLayerTreeHostImplTest.cpp File cc/CCLayerTreeHostImplTest.cpp (right): https://codereview.chromium.org/10979010/diff/2001/cc/CCLayerTreeHostImplTest.cpp#newcode3940 cc/CCLayerTreeHostImplTest.cpp:3940: if (!testData.renderPassCache.get(renderPassId)) On 2012/09/25 03:53:50, jamesr ...
8 years, 2 months ago (2012-09-25 16:13:51 UTC) #3
jamesr
lgtm https://codereview.chromium.org/10979010/diff/10004/cc/scoped_ptr_hash_map.h File cc/scoped_ptr_hash_map.h (right): https://codereview.chromium.org/10979010/diff/10004/cc/scoped_ptr_hash_map.h#newcode78 cc/scoped_ptr_hash_map.h:78: data_.insert(std::pair<Key, Value*>(key, NULL)); hmm, can we mutate it->second ...
8 years, 2 months ago (2012-09-25 21:37:42 UTC) #4
danakj
https://codereview.chromium.org/10979010/diff/10004/cc/scoped_ptr_hash_map.h File cc/scoped_ptr_hash_map.h (right): https://codereview.chromium.org/10979010/diff/10004/cc/scoped_ptr_hash_map.h#newcode78 cc/scoped_ptr_hash_map.h:78: data_.insert(std::pair<Key, Value*>(key, NULL)); On 2012/09/25 21:37:42, jamesr wrote: > ...
8 years, 2 months ago (2012-09-25 21:42:58 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/10979010/10004
8 years, 2 months ago (2012-09-25 21:48:48 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/10979010/17001
8 years, 2 months ago (2012-09-25 22:02:49 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/10979010/16003
8 years, 2 months ago (2012-09-25 22:22:30 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/10979010/33
8 years, 2 months ago (2012-09-25 22:37:09 UTC) #9
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build. Your ...
8 years, 2 months ago (2012-09-25 23:10:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/10979010/11009
8 years, 2 months ago (2012-09-26 00:02:31 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/10979010/11009
8 years, 2 months ago (2012-09-26 00:14:15 UTC) #12
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build. Your ...
8 years, 2 months ago (2012-09-26 00:52:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/10979010/6009
8 years, 2 months ago (2012-09-26 00:52:55 UTC) #14
commit-bot: I haz the power
Change committed as 158729
8 years, 2 months ago (2012-09-26 02:53:57 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/10979010/19009
8 years, 2 months ago (2012-09-26 04:17:21 UTC) #16
commit-bot: I haz the power
Retried try job too often for step(s) browser_tests
8 years, 2 months ago (2012-09-26 07:04:35 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/10979010/19009
8 years, 2 months ago (2012-09-26 14:06:52 UTC) #18
commit-bot: I haz the power
8 years, 2 months ago (2012-09-26 18:59:59 UTC) #19
Change committed as 158837

Powered by Google App Engine
This is Rietveld 408576698