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

Issue 2857363004: Add buffer_to_texture_target_map to LayerTreeSettings (Closed)

Created:
3 years, 7 months ago by Alex Z.
Modified:
3 years, 7 months ago
Reviewers:
danakj, boliu, piman
CC:
chromium-reviews, rjkroege, mlamouri+watch-content_chromium.org, sadrul, Ian Vollick, jam, jbauman+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, kalyank, cc-bugs_chromium.org, danakj+watch_chromium.org, Fady Samuel
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move RendererSettings:buffer_to_texture_target_map to LayerTreeSettings ContextFactory populates and stores the buffer to OpenGL texture target map. ui::Compositor copies it into LayerTreeSettings before using it to create a LayerTreeHost. The map is used by both LayerTreeHost and cc::Display to create ResourceProviders but it doesn't go into DirectRenderer or its subclasses. Letting ContextFactory populate the map centralize the logic compared to the current state (ui::Compositor populates the map by calling ContextFactory::GetImageTextureTarget). BUG=711146 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2857363004 Cr-Commit-Position: refs/heads/master@{#474999} Committed: https://chromium.googlesource.com/chromium/src/+/88677427eb90210e1f60202602a3dc1eace69da5

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : layouttets_support.cc #

Patch Set 4 : perftests #

Patch Set 5 : android #

Patch Set 6 : surfaces_instance #

Patch Set 7 : Rebase #

Patch Set 8 : rebase #

Patch Set 9 : Cleanup #

Total comments: 4

Patch Set 10 : Address comments #

Total comments: 2

Patch Set 11 : perftests #

Patch Set 12 : Revert changes in MusContextFactory #

Total comments: 2

Patch Set 13 : Address comments in CompositorImpl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -32 lines) Patch
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/texture_layer_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M cc/test/layer_tree_pixel_test.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/layer_tree_pixel_test.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -3 lines 0 comments Download
M cc/test/layer_tree_test.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -6 lines 0 comments Download
M cc/test/pixel_test.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M cc/tiles/tile_manager_unittest.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_perftest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 7 8 9 9 chunks +12 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_copyrequest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 86 (68 generated)
Alex Z.
danakj@: PTAL. You also own cc, gpu_process_transport_factory* and ui/compositor. Thanks!
3 years, 7 months ago (2017-05-04 20:27:02 UTC) #5
danakj
Did you wanna do the ResourceSettings thing first then, or should I review this as ...
3 years, 7 months ago (2017-05-05 17:55:24 UTC) #28
Alex Z.
On 2017/05/05 17:55:24, danakj wrote: > Did you wanna do the ResourceSettings thing first then, ...
3 years, 7 months ago (2017-05-05 18:11:10 UTC) #29
Alex Z.
On 2017/05/05 17:55:24, danakj wrote: > Did you wanna do the ResourceSettings thing first then, ...
3 years, 7 months ago (2017-05-08 19:21:57 UTC) #31
danakj
> Move RendererSettings:buffer_to_texture_target_map to LayerTreeSettings This is going to sound a bit weird but bear ...
3 years, 7 months ago (2017-05-09 22:41:32 UTC) #43
Alex Z.
On 2017/05/09 22:41:32, danakj wrote: > > Move RendererSettings:buffer_to_texture_target_map to LayerTreeSettings > > This is ...
3 years, 7 months ago (2017-05-10 15:01:59 UTC) #44
Alex Z.
danakj@: I'm resurrecting this CL since RendererSettings are initialized in a centralized place now. Bots ...
3 years, 7 months ago (2017-05-25 15:12:14 UTC) #51
danakj
https://codereview.chromium.org/2857363004/diff/200001/cc/test/layer_tree_test.cc File cc/test/layer_tree_test.cc (right): https://codereview.chromium.org/2857363004/diff/200001/cc/test/layer_tree_test.cc#newcode881 cc/test/layer_tree_test.cc:881: InitializeRendererSettings(&renderer_settings); It feels a bit too easy for a ...
3 years, 7 months ago (2017-05-25 15:27:18 UTC) #54
Alex Z.
https://codereview.chromium.org/2857363004/diff/200001/cc/test/layer_tree_test.cc File cc/test/layer_tree_test.cc (right): https://codereview.chromium.org/2857363004/diff/200001/cc/test/layer_tree_test.cc#newcode881 cc/test/layer_tree_test.cc:881: InitializeRendererSettings(&renderer_settings); On 2017/05/25 15:27:18, danakj wrote: > It feels ...
3 years, 7 months ago (2017-05-25 17:39:15 UTC) #57
danakj
LGTM https://codereview.chromium.org/2857363004/diff/220001/cc/test/layer_tree_pixel_test.cc File cc/test/layer_tree_pixel_test.cc (right): https://codereview.chromium.org/2857363004/diff/220001/cc/test/layer_tree_pixel_test.cc#newcode59 cc/test/layer_tree_pixel_test.cc:59: shared_bitmap_manager(), gpu_memory_buffer_manager(), RendererSettings(), I forget, do tests fail ...
3 years, 7 months ago (2017-05-25 17:42:19 UTC) #58
Alex Z.
https://codereview.chromium.org/2857363004/diff/220001/cc/test/layer_tree_pixel_test.cc File cc/test/layer_tree_pixel_test.cc (right): https://codereview.chromium.org/2857363004/diff/220001/cc/test/layer_tree_pixel_test.cc#newcode59 cc/test/layer_tree_pixel_test.cc:59: shared_bitmap_manager(), gpu_memory_buffer_manager(), RendererSettings(), On 2017/05/25 17:42:19, danakj wrote: > ...
3 years, 7 months ago (2017-05-25 18:27:56 UTC) #63
danakj
Ok thanks :) On Thu, May 25, 2017 at 2:27 PM, <staraz@chromium.org> wrote: > > ...
3 years, 7 months ago (2017-05-25 18:29:04 UTC) #64
Alex Z.
boliu@chromium.org: Please review changes in compositor_impl_android.cc. sadrul@chromium.org: Please review changes in mus_context_factory.h piman@chromium.org: Please review ...
3 years, 7 months ago (2017-05-25 18:34:24 UTC) #66
piman
lgtm
3 years, 7 months ago (2017-05-25 18:39:40 UTC) #67
boliu
https://codereview.chromium.org/2857363004/diff/260001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/2857363004/diff/260001/content/browser/renderer_host/compositor_impl_android.cc#newcode772 content/browser/renderer_host/compositor_impl_android.cc:772: cc::RendererSettings renderer_settings; it's not clear to me why this ...
3 years, 7 months ago (2017-05-25 23:44:44 UTC) #76
Alex Z.
https://codereview.chromium.org/2857363004/diff/260001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/2857363004/diff/260001/content/browser/renderer_host/compositor_impl_android.cc#newcode772 content/browser/renderer_host/compositor_impl_android.cc:772: cc::RendererSettings renderer_settings; On 2017/05/25 23:44:44, boliu wrote: > it's ...
3 years, 7 months ago (2017-05-26 12:48:58 UTC) #82
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2857363004/300001
3 years, 7 months ago (2017-05-26 12:49:00 UTC) #83
commit-bot: I haz the power
3 years, 7 months ago (2017-05-26 13:53:22 UTC) #86
Message was sent while issue was closed.
Committed patchset #13 (id:300001) as
https://chromium.googlesource.com/chromium/src/+/88677427eb90210e1f60202602a3...

Powered by Google App Engine
This is Rietveld 408576698