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

Issue 1139903005: Add PERSISTENT_MAP usage for GpuMemoryBuffers. (Closed)

Created:
5 years, 7 months ago by danakj
Modified:
5 years, 7 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, creis+watch_chromium.org, danakj+watch_chromium.org, darin-cc_chromium.org, enne (OOO), jam, jbauman+watch_chromium.org, kalyank, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, piman+watch_chromium.org, piman, sadrul, sievers+watch_chromium.org, sky, Ian Vollick
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add PERSISTENT_MAP usage for GpuMemoryBuffers. A GpuMemoryBuffer with this usage flag will always point at the same memory contents each time it is mapped. This will enable partial tile updates by avoiding rastering content from the previous frame again in the compositor. R=reveman,piman BUG=489447 Committed: https://crrev.com/77180b4434d93f45022b8c65110344cdced4b19d Cr-Commit-Position: refs/heads/master@{#330987} Committed: https://crrev.com/9966900efc1025704645b673fdd63dbf1f2ad189 Cr-Commit-Position: refs/heads/master@{#331416}

Patch Set 1 : persistentmap: . #

Total comments: 18

Patch Set 2 : persistentmap: reviewed #

Patch Set 3 : persistentmap: fixtests #

Patch Set 4 : persistentmap: fixmandolinebetter #

Total comments: 28

Patch Set 5 : persistentmap: . #

Patch Set 6 : persistentmap: onevar #

Patch Set 7 : persistentmap: . #

Total comments: 6

Patch Set 8 : persistentmap: nits #

Patch Set 9 : persistentmap: typo #

Total comments: 2

Patch Set 10 : persistentmap: . #

Patch Set 11 : persistentmap: unmap #

Patch Set 12 : persistentmap: rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -41 lines) Patch
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +13 lines, -1 line 0 comments Download
M content/browser/gpu/browser_gpu_channel_host_factory.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/gpu/browser_gpu_channel_host_factory.cc View 1 2 3 4 5 6 7 3 chunks +45 lines, -27 lines 0 comments Download
M content/browser/gpu/browser_gpu_memory_buffer_manager.cc View 1 2 chunks +5 lines, -4 lines 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 1 chunk +13 lines, -1 line 0 comments Download
M content/common/child_process_host_impl.cc View 1 2 3 4 5 6 1 chunk +2 lines, -4 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +13 lines, -0 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +94 lines, -1 line 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_shared_memory.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -1 line 0 comments Download
M ui/gfx/gpu_memory_buffer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -1 line 0 comments Download
M ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_surface_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M ui/ozone/public/surface_factory_ozone.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 51 (17 generated)
danakj
5 years, 7 months ago (2015-05-19 01:10:20 UTC) #3
reveman
https://codereview.chromium.org/1139903005/diff/20001/cc/trees/layer_tree_settings.h File cc/trees/layer_tree_settings.h (right): https://codereview.chromium.org/1139903005/diff/20001/cc/trees/layer_tree_settings.h#newcode78 cc/trees/layer_tree_settings.h:78: unsigned persistent_map_image_texture_target; How are we going to tell the ...
5 years, 7 months ago (2015-05-19 16:12:12 UTC) #4
danakj
https://codereview.chromium.org/1139903005/diff/20001/cc/trees/layer_tree_settings.h File cc/trees/layer_tree_settings.h (right): https://codereview.chromium.org/1139903005/diff/20001/cc/trees/layer_tree_settings.h#newcode78 cc/trees/layer_tree_settings.h:78: unsigned persistent_map_image_texture_target; On 2015/05/19 16:12:12, reveman wrote: > How ...
5 years, 7 months ago (2015-05-19 20:11:52 UTC) #5
danakj
https://codereview.chromium.org/1139903005/diff/20001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/1139903005/diff/20001/content/browser/browser_main_loop.cc#newcode472 content/browser/browser_main_loop.cc:472: // TODO(reveman): No support for native PERSISTENT_MAP. crbug.com/489438 On ...
5 years, 7 months ago (2015-05-19 22:19:44 UTC) #8
danakj
+alexst for ui/ozone
5 years, 7 months ago (2015-05-19 22:20:14 UTC) #10
danakj
+sky for mandoline/
5 years, 7 months ago (2015-05-19 22:20:40 UTC) #12
sky
mandoline LGTM
5 years, 7 months ago (2015-05-20 00:36:26 UTC) #13
sky
mandoline LGTM
5 years, 7 months ago (2015-05-20 00:36:31 UTC) #14
alexst (slow to review)
https://codereview.chromium.org/1139903005/diff/120001/ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc File ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc (right): https://codereview.chromium.org/1139903005/diff/120001/ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc#newcode119 ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc:119: return SurfaceFactoryOzone::MAP; Add a new enum type to SurfaceFactoryOzone, ...
5 years, 7 months ago (2015-05-20 12:43:37 UTC) #15
reveman
I would like to see this CL split into 3 different patches. 1. GpuMemoryBuffer changes ...
5 years, 7 months ago (2015-05-20 14:26:08 UTC) #16
danakj
https://codereview.chromium.org/1139903005/diff/120001/cc/trees/layer_tree_settings.h File cc/trees/layer_tree_settings.h (right): https://codereview.chromium.org/1139903005/diff/120001/cc/trees/layer_tree_settings.h#newcode78 cc/trees/layer_tree_settings.h:78: unsigned persistent_map_image_texture_target; On 2015/05/20 14:26:07, reveman wrote: > I ...
5 years, 7 months ago (2015-05-20 17:51:14 UTC) #17
danakj
https://codereview.chromium.org/1139903005/diff/120001/cc/trees/layer_tree_settings.h File cc/trees/layer_tree_settings.h (right): https://codereview.chromium.org/1139903005/diff/120001/cc/trees/layer_tree_settings.h#newcode78 cc/trees/layer_tree_settings.h:78: unsigned persistent_map_image_texture_target; On 2015/05/20 14:26:07, reveman wrote: > I ...
5 years, 7 months ago (2015-05-20 17:55:11 UTC) #18
reveman
https://codereview.chromium.org/1139903005/diff/120001/cc/trees/layer_tree_settings.h File cc/trees/layer_tree_settings.h (right): https://codereview.chromium.org/1139903005/diff/120001/cc/trees/layer_tree_settings.h#newcode78 cc/trees/layer_tree_settings.h:78: unsigned persistent_map_image_texture_target; On 2015/05/20 17:55:11, danakj wrote: > On ...
5 years, 7 months ago (2015-05-20 18:58:00 UTC) #19
piman
On Wed, May 20, 2015 at 11:58 AM, <reveman@chromium.org> wrote: > > > https://codereview.chromium.org/1139903005/diff/120001/cc/trees/layer_tree_settings.h > ...
5 years, 7 months ago (2015-05-20 19:00:26 UTC) #20
danakj
On Wed, May 20, 2015 at 12:00 PM, Antoine Labour <piman@chromium.org> wrote: > > > ...
5 years, 7 months ago (2015-05-20 19:05:45 UTC) #21
danakj
PTAL. Depends on https://codereview.chromium.org/1149803002/ now.
5 years, 7 months ago (2015-05-20 19:14:57 UTC) #26
reveman
lgtm with nit https://codereview.chromium.org/1139903005/diff/260001/content/browser/gpu/browser_gpu_channel_host_factory.h File content/browser/gpu/browser_gpu_channel_host_factory.h (right): https://codereview.chromium.org/1139903005/diff/260001/content/browser/gpu/browser_gpu_channel_host_factory.h#newcode80 content/browser/gpu/browser_gpu_channel_host_factory.h:80: static bool IsGpuMemoryBufferConfigurationSupportedInternal( nit: IsGpuMemoryBufferFactoryConfigurationSupported and ...
5 years, 7 months ago (2015-05-20 19:25:59 UTC) #27
alexst (slow to review)
ui/ozone lgtm
5 years, 7 months ago (2015-05-20 19:31:23 UTC) #28
reveman
On 2015/05/20 at 19:05:45, danakj wrote: > On Wed, May 20, 2015 at 12:00 PM, ...
5 years, 7 months ago (2015-05-20 19:43:40 UTC) #29
danakj
On Wed, May 20, 2015 at 12:43 PM, <reveman@chromium.org> wrote: > On 2015/05/20 at 19:05:45, ...
5 years, 7 months ago (2015-05-20 20:25:16 UTC) #30
danakj
piman can you OWNERS review please? https://codereview.chromium.org/1139903005/diff/260001/content/browser/gpu/browser_gpu_channel_host_factory.h File content/browser/gpu/browser_gpu_channel_host_factory.h (right): https://codereview.chromium.org/1139903005/diff/260001/content/browser/gpu/browser_gpu_channel_host_factory.h#newcode80 content/browser/gpu/browser_gpu_channel_host_factory.h:80: static bool IsGpuMemoryBufferConfigurationSupportedInternal( ...
5 years, 7 months ago (2015-05-20 20:50:43 UTC) #31
reveman
https://codereview.chromium.org/1139903005/diff/290001/content/browser/gpu/browser_gpu_channel_host_factory.h File content/browser/gpu/browser_gpu_channel_host_factory.h (right): https://codereview.chromium.org/1139903005/diff/290001/content/browser/gpu/browser_gpu_channel_host_factory.h#newcode83 content/browser/gpu/browser_gpu_channel_host_factory.h:83: gfx::GpuMemoryBufferType type); unused now, please remove it before you ...
5 years, 7 months ago (2015-05-20 21:32:53 UTC) #32
piman
lgtm
5 years, 7 months ago (2015-05-20 21:32:55 UTC) #33
danakj
https://codereview.chromium.org/1139903005/diff/290001/content/browser/gpu/browser_gpu_channel_host_factory.h File content/browser/gpu/browser_gpu_channel_host_factory.h (right): https://codereview.chromium.org/1139903005/diff/290001/content/browser/gpu/browser_gpu_channel_host_factory.h#newcode83 content/browser/gpu/browser_gpu_channel_host_factory.h:83: gfx::GpuMemoryBufferType type); On 2015/05/20 21:32:53, reveman wrote: > unused ...
5 years, 7 months ago (2015-05-20 21:43:08 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1139903005/310001
5 years, 7 months ago (2015-05-21 00:50:56 UTC) #37
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/12799)
5 years, 7 months ago (2015-05-21 01:23:41 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1139903005/330001
5 years, 7 months ago (2015-05-21 19:38:51 UTC) #42
commit-bot: I haz the power
Committed patchset #11 (id:330001)
5 years, 7 months ago (2015-05-21 21:17:42 UTC) #43
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/77180b4434d93f45022b8c65110344cdced4b19d Cr-Commit-Position: refs/heads/master@{#330987}
5 years, 7 months ago (2015-05-21 21:18:37 UTC) #44
Chirantan Ekbote
A revert of this CL (patchset #11 id:330001) has been created in https://codereview.chromium.org/1151943003/ by chirantan@chromium.org. ...
5 years, 7 months ago (2015-05-22 18:12:13 UTC) #45
danakj
Added the gbm fix and rebased. CQing
5 years, 7 months ago (2015-05-26 18:38:48 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1139903005/350001
5 years, 7 months ago (2015-05-26 18:40:18 UTC) #49
commit-bot: I haz the power
Committed patchset #12 (id:350001)
5 years, 7 months ago (2015-05-26 20:08:44 UTC) #50
commit-bot: I haz the power
5 years, 7 months ago (2015-05-26 20:09:41 UTC) #51
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/9966900efc1025704645b673fdd63dbf1f2ad189
Cr-Commit-Position: refs/heads/master@{#331416}

Powered by Google App Engine
This is Rietveld 408576698