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

Issue 2120713002: Fix use_image_texture_target inconsistencies (Closed)

Created:
4 years, 5 months ago by ericrk
Modified:
4 years, 4 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, creis+watch_chromium.org, danakj+watch_chromium.org, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, jbauman+watch_chromium.org, kalyank, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org, sievers+watch_chromium.org, Ian Vollick
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix use_image_texture_target inconsistencies Currently, LayerTreeSettings::use_image_texture_targets is populated in the Browser Process based on it's guess about the BufferUsage of buffers in the Renderer Process. This guess is almost always wrong, as the Renderer uses multiple BufferUsages in many cases, and as we add support for more advanced scenarios, this will be wrong more often. To work around this, this change modifies use_image_texture_targets to be a map from BufferUsage/BufferFormat to texture target, rather than just from BufferFormat. This allows the renderer to query for the correct target for the usage/format combination it is currently using. Additionally, this change moves this map from LayerTreeSettings to RendererSettings, at it is also used in display.cc, which currently just uses a default-initialized list. BUG=590317 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel Committed: https://crrev.com/9151705c225783e878077fdabcee4b513af7f049 Cr-Commit-Position: refs/heads/master@{#407885}

Patch Set 1 #

Patch Set 2 : fixes #

Patch Set 3 : cleanup #

Total comments: 7

Patch Set 4 : feedback #

Total comments: 8

Patch Set 5 : rebase #

Patch Set 6 : feedback + emplace > insert for non-windows compat #

Patch Set 7 : fix content browsertests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -189 lines) Patch
M cc/BUILD.gn View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M cc/cc.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A cc/output/buffer_to_texture_target_map.h View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
A cc/output/buffer_to_texture_target_map.cc View 1 2 3 4 5 1 chunk +72 lines, -0 lines 0 comments Download
A cc/output/buffer_to_texture_target_map_unittest.cc View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
M cc/output/renderer_settings.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M cc/output/renderer_settings.cc View 1 2 3 4 5 3 chunks +19 lines, -1 line 0 comments Download
M cc/output/renderer_settings_unittest.cc View 1 2 3 4 5 2 chunks +20 lines, -0 lines 0 comments Download
M cc/proto/layer_tree_settings.proto View 1 1 chunk +0 lines, -1 line 0 comments Download
M cc/proto/renderer_settings.proto View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M cc/raster/one_copy_raster_buffer_provider.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/raster/one_copy_raster_buffer_provider.cc View 1 2 3 4 3 chunks +9 lines, -6 lines 0 comments Download
M cc/resources/resource_provider.h View 1 2 3 4 chunks +13 lines, -11 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 4 chunks +13 lines, -7 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 3 23 chunks +25 lines, -25 lines 0 comments Download
M cc/surfaces/display.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M cc/test/fake_resource_provider.h View 1 2 3 4 chunks +15 lines, -15 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M cc/test/pixel_test.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/tiles/tile_manager_unittest.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 5 chunks +0 lines, -12 lines 0 comments Download
M cc/trees/layer_tree_settings_unittest.cc View 1 2 chunks +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 3 chunks +18 lines, -40 lines 0 comments Download
M content/renderer/gpu/compositor_dependencies.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/renderer_gpu_video_accelerator_factories.h View 1 2 3 4 chunks +4 lines, -3 lines 0 comments Download
M content/renderer/media/renderer_gpu_video_accelerator_factories.cc View 1 2 3 3 chunks +6 lines, -3 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 chunks +7 lines, -22 lines 0 comments Download
M content/renderer/render_thread_impl_browsertest.cc View 1 2 3 4 5 6 2 chunks +5 lines, -8 lines 0 comments Download
M content/test/fake_compositor_dependencies.h View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M content/test/fake_compositor_dependencies.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 2 chunks +13 lines, -14 lines 0 comments Download

Messages

Total messages: 55 (34 generated)
ericrk
4 years, 5 months ago (2016-07-15 20:52:40 UTC) #6
erikchen
Gracias! lgtm https://codereview.chromium.org/2120713002/diff/80001/cc/proto/renderer_settings.proto File cc/proto/renderer_settings.proto (right): https://codereview.chromium.org/2120713002/diff/80001/cc/proto/renderer_settings.proto#newcode12 cc/proto/renderer_settings.proto:12: optional uint32 buffer_usage = 1; should these ...
4 years, 5 months ago (2016-07-15 21:08:36 UTC) #7
enne (OOO)
(Also can you format your description to wrap at 72 columns <_<) https://codereview.chromium.org/2120713002/diff/80001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc ...
4 years, 5 months ago (2016-07-15 21:39:32 UTC) #8
enne (OOO)
lgtm
4 years, 5 months ago (2016-07-19 17:28:56 UTC) #12
ericrk
forgot to publish :/ https://codereview.chromium.org/2120713002/diff/80001/cc/proto/renderer_settings.proto File cc/proto/renderer_settings.proto (right): https://codereview.chromium.org/2120713002/diff/80001/cc/proto/renderer_settings.proto#newcode12 cc/proto/renderer_settings.proto:12: optional uint32 buffer_usage = 1; ...
4 years, 5 months ago (2016-07-19 20:22:43 UTC) #13
ericrk
+danakj for ui/compositor +sievers for content/ Thanks!
4 years, 5 months ago (2016-07-19 20:24:45 UTC) #15
danakj
https://codereview.chromium.org/2120713002/diff/60002/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/2120713002/diff/60002/ui/compositor/compositor.cc#newcode162 ui/compositor/compositor.cc:162: for (size_t usage_idx = 0; why size_t and not ...
4 years, 5 months ago (2016-07-19 20:37:56 UTC) #16
ericrk
Thanks for the feedback! https://codereview.chromium.org/2120713002/diff/60002/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/2120713002/diff/60002/ui/compositor/compositor.cc#newcode162 ui/compositor/compositor.cc:162: for (size_t usage_idx = 0; ...
4 years, 5 months ago (2016-07-19 21:47:46 UTC) #18
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-19 21:48:43 UTC) #21
danakj
LGTM
4 years, 5 months ago (2016-07-19 22:28:09 UTC) #24
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-20 17:42:19 UTC) #27
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-21 21:27:11 UTC) #32
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-22 00:17:28 UTC) #38
ericrk
ping for content review. Thanks!
4 years, 5 months ago (2016-07-22 17:42:12 UTC) #41
ericrk
+avi for content owners. Thanks!
4 years, 4 months ago (2016-07-26 18:40:35 UTC) #43
Avi (use Gerrit)
LGTM stampity stamp
4 years, 4 months ago (2016-07-26 18:44:47 UTC) #44
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/2120713002/180001
4 years, 4 months ago (2016-07-26 18:51:53 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_gyp_rel on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_gyp_rel/builds/5793)
4 years, 4 months ago (2016-07-26 19:15:57 UTC) #49
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/2120713002/180001
4 years, 4 months ago (2016-07-26 19:19:21 UTC) #51
commit-bot: I haz the power
Committed patchset #7 (id:180001)
4 years, 4 months ago (2016-07-26 19:53:35 UTC) #53
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 19:55:45 UTC) #55
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/9151705c225783e878077fdabcee4b513af7f049
Cr-Commit-Position: refs/heads/master@{#407885}

Powered by Google App Engine
This is Rietveld 408576698