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

Issue 18796008: Implement shareResources==true in TestWebGraphicsContext3D (Closed)

Created:
7 years, 5 months ago by piman
Modified:
7 years, 5 months ago
Reviewers:
danakj
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Implement shareResources==true in TestWebGraphicsContext3D This moves the id namespace (for textures/buffers/images) in a separate struct, that can be shared across instance. Similarly to the other WGC3D implementations, there is only one global share group, that instances can opt into or be completely segregated (based on whether shareResources==true or not) BUG=None R=danakj@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=211886

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 2

Patch Set 3 : remove CreateShared: it's redundant #

Patch Set 4 : Also make TestWebGraphicsContext3D default constructor share resources #

Total comments: 20

Patch Set 5 : review nits #

Patch Set 6 : missed nit #

Patch Set 7 : fix destruction race #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -87 lines) Patch
M cc/layers/texture_layer_unittest.cc View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M cc/test/fake_layer_tree_host_client.cc View 1 1 chunk +3 lines, -11 lines 0 comments Download
M cc/test/fake_output_surface.h View 1 2 3 chunks +3 lines, -8 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.h View 1 2 3 4 4 chunks +46 lines, -25 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.cc View 1 2 3 4 5 6 11 chunks +105 lines, -39 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
piman
This is needed so for a susequent CL, so that TextureLayerClient can create textures that ...
7 years, 5 months ago (2013-07-15 23:06:50 UTC) #1
danakj
https://codereview.chromium.org/18796008/diff/4001/cc/test/test_web_graphics_context_3d.h File cc/test/test_web_graphics_context_3d.h (right): https://codereview.chromium.org/18796008/diff/4001/cc/test/test_web_graphics_context_3d.h#newcode36 cc/test/test_web_graphics_context_3d.h:36: attrs.shareResources = true; this defaults true, right? so won't ...
7 years, 5 months ago (2013-07-15 23:15:41 UTC) #2
piman
On 2013/07/15 23:15:41, danakj wrote: > https://codereview.chromium.org/18796008/diff/4001/cc/test/test_web_graphics_context_3d.h > File cc/test/test_web_graphics_context_3d.h (right): > > https://codereview.chromium.org/18796008/diff/4001/cc/test/test_web_graphics_context_3d.h#newcode36 > ...
7 years, 5 months ago (2013-07-15 23:17:55 UTC) #3
piman
https://codereview.chromium.org/18796008/diff/4001/cc/test/test_web_graphics_context_3d.h File cc/test/test_web_graphics_context_3d.h (right): https://codereview.chromium.org/18796008/diff/4001/cc/test/test_web_graphics_context_3d.h#newcode36 cc/test/test_web_graphics_context_3d.h:36: attrs.shareResources = true; On 2013/07/15 23:15:41, danakj wrote: > ...
7 years, 5 months ago (2013-07-16 00:45:33 UTC) #4
piman
On 2013/07/16 00:45:33, piman wrote: > https://codereview.chromium.org/18796008/diff/4001/cc/test/test_web_graphics_context_3d.h > File cc/test/test_web_graphics_context_3d.h (right): > > https://codereview.chromium.org/18796008/diff/4001/cc/test/test_web_graphics_context_3d.h#newcode36 > ...
7 years, 5 months ago (2013-07-16 00:46:26 UTC) #5
danakj
Can you update the description to say what this is doing now?
7 years, 5 months ago (2013-07-16 02:55:50 UTC) #6
danakj
https://codereview.chromium.org/18796008/diff/5013/cc/test/test_web_graphics_context_3d.cc File cc/test/test_web_graphics_context_3d.cc (right): https://codereview.chromium.org/18796008/diff/5013/cc/test/test_web_graphics_context_3d.cc#newcode39 cc/test/test_web_graphics_context_3d.cc:39: TestWebGraphicsContext3D::shared_namespace_ = NULL; This will be a leak. Should ...
7 years, 5 months ago (2013-07-16 02:57:02 UTC) #7
piman
On 2013/07/16 02:55:50, danakj wrote: > Can you update the description to say what this ...
7 years, 5 months ago (2013-07-16 03:06:33 UTC) #8
piman
https://codereview.chromium.org/18796008/diff/5013/cc/test/test_web_graphics_context_3d.cc File cc/test/test_web_graphics_context_3d.cc (right): https://codereview.chromium.org/18796008/diff/5013/cc/test/test_web_graphics_context_3d.cc#newcode39 cc/test/test_web_graphics_context_3d.cc:39: TestWebGraphicsContext3D::shared_namespace_ = NULL; On 2013/07/16 02:57:02, danakj wrote: > ...
7 years, 5 months ago (2013-07-16 03:06:38 UTC) #9
danakj
LGTM w nits https://codereview.chromium.org/18796008/diff/5013/cc/test/test_web_graphics_context_3d.cc File cc/test/test_web_graphics_context_3d.cc (right): https://codereview.chromium.org/18796008/diff/5013/cc/test/test_web_graphics_context_3d.cc#newcode39 cc/test/test_web_graphics_context_3d.cc:39: TestWebGraphicsContext3D::shared_namespace_ = NULL; On 2013/07/16 03:06:39, ...
7 years, 5 months ago (2013-07-16 03:26:10 UTC) #10
piman
https://codereview.chromium.org/18796008/diff/5013/cc/test/test_web_graphics_context_3d.cc File cc/test/test_web_graphics_context_3d.cc (right): https://codereview.chromium.org/18796008/diff/5013/cc/test/test_web_graphics_context_3d.cc#newcode48 cc/test/test_web_graphics_context_3d.cc:48: if (shared_namespace_ == this) On 2013/07/16 03:26:11, danakj wrote: ...
7 years, 5 months ago (2013-07-16 04:50:55 UTC) #11
piman
(PTAL for the lock logic)
7 years, 5 months ago (2013-07-16 04:51:19 UTC) #12
danakj
LGTM https://codereview.chromium.org/18796008/diff/5013/cc/test/test_web_graphics_context_3d.cc File cc/test/test_web_graphics_context_3d.cc (right): https://codereview.chromium.org/18796008/diff/5013/cc/test/test_web_graphics_context_3d.cc#newcode105 cc/test/test_web_graphics_context_3d.cc:105: namespace_ = shared_namespace_; On 2013/07/16 04:50:55, piman wrote: ...
7 years, 5 months ago (2013-07-16 05:39:00 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/18796008/37006
7 years, 5 months ago (2013-07-16 18:04:12 UTC) #14
piman
On Mon, Jul 15, 2013 at 10:39 PM, <danakj@chromium.org> wrote: > LGTM > > > ...
7 years, 5 months ago (2013-07-16 18:58:28 UTC) #15
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-07-16 20:13:46 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/18796008/37006
7 years, 5 months ago (2013-07-16 20:22:32 UTC) #17
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=59964
7 years, 5 months ago (2013-07-17 00:53:34 UTC) #18
piman
7 years, 5 months ago (2013-07-17 01:03:30 UTC) #19
Message was sent while issue was closed.
Committed patchset #7 manually as r211886 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698