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

Issue 22529002: [cc] Allow resources and ui resources to specify wrap mode (Closed)

Created:
7 years, 4 months ago by ccameron
Modified:
7 years, 3 months ago
Reviewers:
enne (OOO), piman
CC:
chromium-reviews, cc-bugs_chromium.org, powei, piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[cc] Allow resources and ui resources to specify wrap mode All textures are currently GL_CLAMP_TO_EDGE. This is good for tiles, but not good for the background linen texture, which needs to be repeated. Add a mechanism to specify the texture wrap mode. BUG=133097 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221433

Patch Set 1 #

Patch Set 2 : Add unit test #

Patch Set 3 : Fix typo and add asserts #

Total comments: 6

Patch Set 4 : Incorporate review feedback #

Total comments: 2

Patch Set 5 : Incorporate review feedback #

Total comments: 4

Patch Set 6 : Incorporate review feedback #

Patch Set 7 : Rebase #

Patch Set 8 : Re-resolve #

Patch Set 9 : Fix botched resolve #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -59 lines) Patch
M cc/layers/painted_scrollbar_layer.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M cc/output/renderer_pixeltest.cc View 1 2 3 4 5 6 2 chunks +6 lines, -1 line 0 comments Download
M cc/output/software_renderer_unittest.cc View 1 2 3 4 5 6 2 chunks +6 lines, -3 lines 0 comments Download
M cc/resources/prioritized_resource_manager.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/resource_pool.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/resource_provider.h View 1 2 3 4 4 chunks +12 lines, -1 line 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 5 14 chunks +54 lines, -32 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 3 4 17 chunks +67 lines, -17 lines 0 comments Download
M cc/resources/scoped_resource.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/ui_resource_bitmap.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M cc/resources/ui_resource_bitmap.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/resources/video_resource_updater.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/fake_scoped_ui_resource.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M cc/test/render_pass_test_common.cc View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 2 chunks +11 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +10 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
ccameron
This builds on the UI resource manager added in https://chromiumcodereview.appspot.com/18191020 The idea is to use ...
7 years, 4 months ago (2013-08-07 20:39:10 UTC) #1
enne (OOO)
+piman, powei, aelias FYI
7 years, 4 months ago (2013-08-07 20:43:27 UTC) #2
ccameron
On 2013/08/07 20:43:27, enne wrote: > +piman, powei, aelias FYI While I have an audience ...
7 years, 4 months ago (2013-08-07 20:50:08 UTC) #3
jamesr
On 2013/08/07 20:50:08, ccameron1 wrote: > On 2013/08/07 20:43:27, enne wrote: > > +piman, powei, ...
7 years, 4 months ago (2013-08-07 20:53:04 UTC) #4
piman
https://codereview.chromium.org/22529002/diff/6001/cc/resources/ui_resource_bitmap.h File cc/resources/ui_resource_bitmap.h (right): https://codereview.chromium.org/22529002/diff/6001/cc/resources/ui_resource_bitmap.h#newcode26 cc/resources/ui_resource_bitmap.h:26: ClampToEdge, nit: chrome style = uppercase for enum values.
7 years, 4 months ago (2013-08-07 20:55:05 UTC) #5
enne (OOO)
https://codereview.chromium.org/22529002/diff/6001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/22529002/diff/6001/cc/resources/resource_provider.cc#newcode56 cc/resources/resource_provider.cc:56: GLC(context3d, context3d->texParameteri( This is just a drive-by nit, but ...
7 years, 4 months ago (2013-08-07 20:57:52 UTC) #6
aelias_OOO_until_Jul13
On 2013/08/07 20:50:08, ccameron1 wrote: > On 2013/08/07 20:43:27, enne wrote: > > +piman, powei, ...
7 years, 4 months ago (2013-08-07 21:20:07 UTC) #7
ccameron
I talked with jamesr about this, and we decided it's better to have the linen ...
7 years, 4 months ago (2013-08-07 21:54:47 UTC) #8
aelias_OOO_until_Jul13
On 2013/08/07 21:54:47, ccameron1 wrote: > I talked with jamesr about this, and we decided ...
7 years, 4 months ago (2013-08-08 02:06:50 UTC) #9
ccameron
Thanks for the feedback!! Ptal. I've resurrected this again because UI resources are going to ...
7 years, 3 months ago (2013-08-31 00:37:57 UTC) #10
ccameron
Pinging this again in case it fell off the bottom of the the long weekend ...
7 years, 3 months ago (2013-09-03 21:46:36 UTC) #11
enne (OOO)
https://codereview.chromium.org/22529002/diff/18001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/22529002/diff/18001/cc/trees/layer_tree_host_impl.cc#newcode2608 cc/trees/layer_tree_host_impl.cc:2608: id = resource_provider_->CreateGLTexture( This seems like an unfortunate restriction ...
7 years, 3 months ago (2013-09-03 22:18:52 UTC) #12
ccameron
Thanks!! https://codereview.chromium.org/22529002/diff/18001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/22529002/diff/18001/cc/trees/layer_tree_host_impl.cc#newcode2608 cc/trees/layer_tree_host_impl.cc:2608: id = resource_provider_->CreateGLTexture( On 2013/09/03 22:18:52, enne wrote: ...
7 years, 3 months ago (2013-09-03 22:52:08 UTC) #13
enne (OOO)
lgtm https://codereview.chromium.org/22529002/diff/25001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/22529002/diff/25001/cc/resources/resource_provider.cc#newcode201 cc/resources/resource_provider.cc:201: return CreateBitmap(size); Can you leave a comment with ...
7 years, 3 months ago (2013-09-04 17:36:56 UTC) #14
ccameron
Thanks!! https://codereview.chromium.org/22529002/diff/25001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/22529002/diff/25001/cc/resources/resource_provider.cc#newcode201 cc/resources/resource_provider.cc:201: return CreateBitmap(size); On 2013/09/04 17:36:56, enne wrote: > ...
7 years, 3 months ago (2013-09-04 20:00:38 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/22529002/36001
7 years, 3 months ago (2013-09-05 00:10:10 UTC) #16
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=23851
7 years, 3 months ago (2013-09-05 01:41:16 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/22529002/22001
7 years, 3 months ago (2013-09-05 08:26:42 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/22529002/66001
7 years, 3 months ago (2013-09-05 08:35:44 UTC) #19
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-05 09:02:58 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/22529002/83001
7 years, 3 months ago (2013-09-05 09:17:18 UTC) #21
commit-bot: I haz the power
7 years, 3 months ago (2013-09-05 15:30:20 UTC) #22
Message was sent while issue was closed.
Change committed as 221433

Powered by Google App Engine
This is Rietveld 408576698