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

Issue 1251693003: cc: Fix the format of GpuMemoryBuffer for SurfaceTexture (Closed)

Created:
5 years, 5 months ago by jchen10
Modified:
5 years, 4 months ago
Reviewers:
reveman, sky, piman
CC:
Daniele Castagna
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change switches::kContentImageTextureTarget to a list of image texture targets Not knowing the GpuMemoryBuffer format that the compostor will use, the host is hard to determine the image texture target properly. This CL changes switches::kContentImageTextureTarget to a list of targets for each format, so that the compositor can decide what format it wants to use without having to worry about the target being wrong. BUG=490362, 512665 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/0ffadce32916c6c4d7343b2d263d8e75606b7311 Cr-Commit-Position: refs/heads/master@{#342339}

Patch Set 1 #

Patch Set 2 : cc: Fix the format of GpuMemoryBuffer for SurfaceTexture #

Total comments: 1

Patch Set 3 : Change switches::kContentImageTextureTarget to a list of image texture targets #

Total comments: 7

Patch Set 4 : Move the targets to ResourceProvider and fix the nits #

Total comments: 12

Patch Set 5 : Fix nits #

Patch Set 6 : Fix tests #

Patch Set 7 : Fix content tests #

Patch Set 8 : Fix a type mismatch on Win #

Patch Set 9 : Fix html_viewer #

Patch Set 10 : Fix aligment #

Patch Set 11 : Fix kVideoImageTextureTarget #

Total comments: 4

Patch Set 12 : Fix the global variables #

Patch Set 13 : rebase #

Patch Set 14 : Fix the public data member #

Patch Set 15 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -97 lines) Patch
M cc/resources/resource_pool.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -0 lines 0 comments Download
M cc/resources/resource_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +16 lines, -1 line 0 comments Download
M cc/resources/resource_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +7 lines, -2 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +14 lines, -4 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 28 chunks +59 lines, -26 lines 0 comments Download
M cc/surfaces/display.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -1 line 0 comments Download
M cc/test/fake_resource_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +13 lines, -6 lines 0 comments Download
M cc/test/pixel_test.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +4 lines, -11 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -1 line 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -1 line 0 comments Download
M components/html_viewer/web_layer_tree_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +23 lines, -15 lines 0 comments Download
M content/renderer/gpu/compositor_dependencies.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +17 lines, -6 lines 0 comments Download
M content/renderer/render_thread_impl_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -2 lines 0 comments Download
M content/test/fake_compositor_dependencies.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/test/fake_compositor_dependencies.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -3 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +7 lines, -10 lines 0 comments Download

Messages

Total messages: 93 (45 generated)
jchen10
Could you please have a look! Thanks!
5 years, 5 months ago (2015-07-22 07:40:42 UTC) #2
reveman
https://code.google.com/p/chromium/codesearch#chromium/src/content/browser/renderer_host/render_process_host_impl.cc&rcl=1437535773&l=1138 is supposed to handle this already for the renderer. Is that not working?
5 years, 5 months ago (2015-07-22 13:43:39 UTC) #3
jchen10
On 2015/07/22 13:43:39, reveman wrote: > https://code.google.com/p/chromium/codesearch#chromium/src/content/browser/renderer_host/render_process_host_impl.cc&rcl=1437535773&l=1138 > is supposed to handle this already for ...
5 years, 5 months ago (2015-07-23 06:48:24 UTC) #4
reveman
https://codereview.chromium.org/1251693003/diff/20001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/1251693003/diff/20001/content/browser/renderer_host/render_process_host_impl.cc#newcode1151 content/browser/renderer_host/render_process_host_impl.cc:1151: #else Let's get this fixed properly instead. The problem ...
5 years, 5 months ago (2015-07-23 07:48:39 UTC) #5
jchen10
On 2015/07/23 07:48:39, reveman wrote: > https://codereview.chromium.org/1251693003/diff/20001/content/browser/renderer_host/render_process_host_impl.cc > File content/browser/renderer_host/render_process_host_impl.cc (right): > > https://codereview.chromium.org/1251693003/diff/20001/content/browser/renderer_host/render_process_host_impl.cc#newcode1151 > ...
5 years, 4 months ago (2015-07-27 12:38:43 UTC) #6
reveman
This looks great. Some nits below. https://codereview.chromium.org/1251693003/diff/40001/cc/resources/resource_pool.h File cc/resources/resource_pool.h (right): https://codereview.chromium.org/1251693003/diff/40001/cc/resources/resource_pool.h#newcode22 cc/resources/resource_pool.h:22: std::vector<uint> targets) { ...
5 years, 4 months ago (2015-07-27 17:07:16 UTC) #7
jchen10
On 2015/07/27 17:07:16, reveman wrote: > This looks great. Some nits below. > > https://codereview.chromium.org/1251693003/diff/40001/cc/resources/resource_pool.h ...
5 years, 4 months ago (2015-07-28 07:01:03 UTC) #8
reveman
thanks! lgtm with nits +piman for ui/compositor/ and content/ https://codereview.chromium.org/1251693003/diff/60001/cc/resources/resource_pool.h File cc/resources/resource_pool.h (right): https://codereview.chromium.org/1251693003/diff/60001/cc/resources/resource_pool.h#newcode59 cc/resources/resource_pool.h:59: ...
5 years, 4 months ago (2015-07-28 08:58:26 UTC) #10
piman
https://codereview.chromium.org/1251693003/diff/60001/cc/trees/layer_tree_settings.h File cc/trees/layer_tree_settings.h (right): https://codereview.chromium.org/1251693003/diff/60001/cc/trees/layer_tree_settings.h#newcode83 cc/trees/layer_tree_settings.h:83: std::vector<unsigned> use_image_texture_targets; Why not an array? The size is ...
5 years, 4 months ago (2015-07-28 16:33:22 UTC) #11
jchen10
https://codereview.chromium.org/1251693003/diff/60001/cc/resources/resource_pool.h File cc/resources/resource_pool.h (right): https://codereview.chromium.org/1251693003/diff/60001/cc/resources/resource_pool.h#newcode60 cc/resources/resource_pool.h:60: ResourcePool(ResourceProvider* resource_provider, GLenum target); On 2015/07/28 08:58:25, reveman wrote: ...
5 years, 4 months ago (2015-07-29 04:33:48 UTC) #12
piman
lgtm
5 years, 4 months ago (2015-07-29 05:24:41 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251693003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251693003/80001
5 years, 4 months ago (2015-07-30 02:36:52 UTC) #17
reveman
https://codereview.chromium.org/1251693003/diff/60001/cc/resources/resource_pool.h File cc/resources/resource_pool.h (right): https://codereview.chromium.org/1251693003/diff/60001/cc/resources/resource_pool.h#newcode60 cc/resources/resource_pool.h:60: ResourcePool(ResourceProvider* resource_provider, GLenum target); On 2015/07/29 at 04:33:47, jchen10 ...
5 years, 4 months ago (2015-07-30 02:41:43 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/73113)
5 years, 4 months ago (2015-07-30 02:47:38 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251693003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251693003/100001
5 years, 4 months ago (2015-07-30 05:16:04 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/36345) linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 4 months ago (2015-07-30 05:26:00 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251693003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251693003/120001
5 years, 4 months ago (2015-07-30 06:09:14 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/86331)
5 years, 4 months ago (2015-07-30 06:25:52 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251693003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251693003/140001
5 years, 4 months ago (2015-07-30 06:48:30 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/114119)
5 years, 4 months ago (2015-07-30 07:07:40 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251693003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251693003/180001
5 years, 4 months ago (2015-07-30 08:06:01 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/83363)
5 years, 4 months ago (2015-07-30 08:14:15 UTC) #40
jchen10
On 2015/07/30 08:14:15, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 4 months ago (2015-07-30 08:45:20 UTC) #42
jchen10
I have made a few new changes since your "LGTM". Please take a look! Thanks ...
5 years, 4 months ago (2015-07-31 05:26:34 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251693003/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251693003/190001
5 years, 4 months ago (2015-07-31 05:27:42 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/83720)
5 years, 4 months ago (2015-07-31 05:36:57 UTC) #50
reveman
lgtm + some minor suggestions that you can ignore if you like https://codereview.chromium.org/1251693003/diff/190001/cc/resources/resource_provider_unittest.cc File cc/resources/resource_provider_unittest.cc ...
5 years, 4 months ago (2015-07-31 16:05:43 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251693003/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251693003/210001
5 years, 4 months ago (2015-08-01 08:47:17 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/84128)
5 years, 4 months ago (2015-08-01 08:55:00 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251693003/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251693003/210001
5 years, 4 months ago (2015-08-02 07:49:31 UTC) #58
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/84153)
5 years, 4 months ago (2015-08-02 07:56:37 UTC) #60
jchen10
On 2015/08/02 07:56:37, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 4 months ago (2015-08-04 05:27:50 UTC) #61
sky
LGTM
5 years, 4 months ago (2015-08-04 13:22:01 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251693003/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251693003/210001
5 years, 4 months ago (2015-08-04 13:38:01 UTC) #64
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/86011)
5 years, 4 months ago (2015-08-04 14:38:25 UTC) #66
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251693003/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251693003/210001
5 years, 4 months ago (2015-08-04 16:59:13 UTC) #68
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/88290)
5 years, 4 months ago (2015-08-04 18:46:08 UTC) #70
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251693003/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251693003/210001
5 years, 4 months ago (2015-08-04 23:59:27 UTC) #72
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/85005) win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, ...
5 years, 4 months ago (2015-08-05 00:09:53 UTC) #74
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251693003/250001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251693003/250001
5 years, 4 months ago (2015-08-06 13:17:07 UTC) #77
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/87346)
5 years, 4 months ago (2015-08-06 14:54:02 UTC) #79
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251693003/250001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251693003/250001
5 years, 4 months ago (2015-08-06 17:01:49 UTC) #81
commit-bot: I haz the power
Failed to apply patch for cc/resources/resource_pool.cc: While running git apply --index -3 -p1; error: patch ...
5 years, 4 months ago (2015-08-06 18:47:31 UTC) #83
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251693003/250001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251693003/250001
5 years, 4 months ago (2015-08-07 08:46:39 UTC) #86
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/86150)
5 years, 4 months ago (2015-08-07 08:51:34 UTC) #88
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251693003/270001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251693003/270001
5 years, 4 months ago (2015-08-07 11:46:03 UTC) #91
commit-bot: I haz the power
Committed patchset #15 (id:270001)
5 years, 4 months ago (2015-08-07 12:59:33 UTC) #92
commit-bot: I haz the power
5 years, 4 months ago (2015-08-07 13:00:16 UTC) #93
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/0ffadce32916c6c4d7343b2d263d8e75606b7311
Cr-Commit-Position: refs/heads/master@{#342339}

Powered by Google App Engine
This is Rietveld 408576698