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

Issue 486853002: cc: Use a normal texture for background texture. (Closed)

Created:
6 years, 4 months ago by dshwang
Modified:
6 years, 4 months ago
Reviewers:
danakj, Shannon Woods
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: Use a normal texture for background texture. We prefer immutable texture to mutable texture and normal texture to framebuffer target texture. There are 3 changes; 1. Introduce TextureHint enum to clarify immutable and framebuffer target. 2. The texture for render pass and background filter target is changed from mutable framebuffer texture to immutable framebuffer texture. 3. The texture for background filter source is changed from mutable framebuffer texture to mutable texture. TEST=ResourceProviderTest.TextureHint, ResourceProviderTest.TextureAllocationHint BUG=404986 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291223

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add TextureHintImmutableFramebuffer because fbo binding immutable texture is efficient. #

Total comments: 8

Patch Set 3 : Address nits in unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -193 lines) Patch
M cc/layers/heads_up_display_layer_impl.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M cc/layers/texture_layer_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/output/direct_renderer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/output/gl_renderer.cc View 1 3 chunks +12 lines, -12 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/output/renderer_pixeltest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M cc/output/software_renderer_unittest.cc View 2 chunks +15 lines, -12 lines 0 comments Download
M cc/resources/prioritized_resource_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/raster_worker_pool_perftest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/raster_worker_pool_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/resources/resource_provider.h View 1 6 chunks +11 lines, -8 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 12 chunks +12 lines, -12 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 37 chunks +140 lines, -96 lines 0 comments Download
M cc/resources/scoped_resource.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/scoped_resource.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/resources/scoped_resource_unittest.cc View 4 chunks +8 lines, -12 lines 0 comments Download
M cc/resources/video_resource_updater.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M cc/test/render_pass_test_common.cc View 2 chunks +12 lines, -13 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.h View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
dshwang
Could you review? I clean-up piggy-back code of ResourceProvider::TextureUsageFramebuffer to avoid mutable texture. and increase ...
6 years, 4 months ago (2014-08-18 19:00:56 UTC) #1
dshwang
https://codereview.chromium.org/486853002/diff/1/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/486853002/diff/1/cc/output/gl_renderer.cc#newcode904 cc/output/gl_renderer.cc:904: window_rect.size(), ResourceProvider::TextureHintDefault, RGBA_8888); Here is only one logic change. ...
6 years, 4 months ago (2014-08-18 19:28:08 UTC) #2
dshwang
shannonwoods@, this CL makes compositor use normal texture instead of render target texture on D3D9 ...
6 years, 4 months ago (2014-08-19 08:26:00 UTC) #3
danakj
https://codereview.chromium.org/486853002/diff/1/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/486853002/diff/1/cc/output/gl_renderer.cc#newcode904 cc/output/gl_renderer.cc:904: window_rect.size(), ResourceProvider::TextureHintDefault, RGBA_8888); On 2014/08/18 19:28:08, dshwang wrote: > ...
6 years, 4 months ago (2014-08-20 14:46:17 UTC) #4
dshwang
https://codereview.chromium.org/486853002/diff/1/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/486853002/diff/1/cc/output/gl_renderer.cc#newcode904 cc/output/gl_renderer.cc:904: window_rect.size(), ResourceProvider::TextureHintDefault, RGBA_8888); On 2014/08/20 14:46:17, danakj wrote: > ...
6 years, 4 months ago (2014-08-20 15:08:35 UTC) #5
danakj
On Wed, Aug 20, 2014 at 11:08 AM, <dongseong.hwang@intel.com> wrote: > > https://codereview.chromium.org/486853002/diff/1/cc/output/gl_renderer.cc > File ...
6 years, 4 months ago (2014-08-20 15:19:28 UTC) #6
dshwang
On 2014/08/20 15:19:28, danakj wrote: > On Wed, Aug 20, 2014 at 11:08 AM, <mailto:dongseong.hwang@intel.com> ...
6 years, 4 months ago (2014-08-20 15:38:45 UTC) #7
danakj
ok cool LGTM thanks for the tests. We can do the framebuffer/immutable thing separate or ...
6 years, 4 months ago (2014-08-20 15:58:02 UTC) #8
Shannon Woods
On 2014/08/19 08:26:00, dshwang wrote: > shannonwoods@, this CL makes compositor use normal texture instead ...
6 years, 4 months ago (2014-08-20 16:19:03 UTC) #9
dshwang
On 2014/08/20 15:58:02, danakj wrote: > ok cool LGTM thanks for the tests. Thank you ...
6 years, 4 months ago (2014-08-20 16:33:32 UTC) #10
danakj
For the future, please try avoiding uploading a patchset that contains both your own changes ...
6 years, 4 months ago (2014-08-21 14:37:09 UTC) #11
danakj
LGTM w/ comments https://codereview.chromium.org/486853002/diff/20001/cc/resources/resource_provider_unittest.cc File cc/resources/resource_provider_unittest.cc (right): https://codereview.chromium.org/486853002/diff/20001/cc/resources/resource_provider_unittest.cc#newcode2484 cc/resources/resource_provider_unittest.cc:2484: for (int texture_id = 1; texture_id ...
6 years, 4 months ago (2014-08-21 14:41:45 UTC) #12
dshwang
On 2014/08/21 14:37:09, danakj wrote: > For the future, please try avoiding uploading a patchset ...
6 years, 4 months ago (2014-08-21 16:30:00 UTC) #13
dshwang
The CQ bit was checked by dongseong.hwang@intel.com
6 years, 4 months ago (2014-08-21 16:30:37 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/486853002/40001
6 years, 4 months ago (2014-08-21 16:33:58 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-21 22:07:29 UTC) #16
commit-bot: I haz the power
6 years, 4 months ago (2014-08-21 22:59:06 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (40001) as 291223

Powered by Google App Engine
This is Rietveld 408576698