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

Issue 148243013: Add shared bitmap managers for browser and renderer processes. (Closed)

Created:
6 years, 10 months ago by jbauman
Modified:
6 years, 9 months ago
Reviewers:
danakj, jschuh, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Add shared bitmap managers for browser and renderer processes. The shared bitmap managers will allow software tiles to be allocated in shared memory, so delegated rendering could be used with them. BUG=327220 R=danakj@chromium.org, jschuh@chromium.org, piman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256955

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 15

Patch Set 4 : #

Total comments: 12

Patch Set 5 : #

Patch Set 6 : #

Total comments: 9

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Total comments: 1

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+669 lines, -7 lines) Patch
M cc/output/delegating_renderer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/shared_bitmap.h View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M cc/resources/shared_bitmap.cc View 1 2 3 4 5 6 7 8 9 2 chunks +25 lines, -0 lines 0 comments Download
M content/browser/compositor/image_transport_factory.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +28 lines, -0 lines 0 comments Download
A content/child/child_shared_bitmap_manager.h View 1 2 3 4 5 6 1 chunk +40 lines, -0 lines 0 comments Download
A content/child/child_shared_bitmap_manager.cc View 1 2 3 4 5 6 1 chunk +92 lines, -0 lines 0 comments Download
M content/child/child_thread.h View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
M content/child/child_thread.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M content/common/child_process_messages.h View 1 2 3 4 5 2 chunks +18 lines, -0 lines 0 comments Download
A content/common/host_shared_bitmap_manager.h View 1 2 3 4 5 6 1 chunk +82 lines, -0 lines 0 comments Download
A content/common/host_shared_bitmap_manager.cc View 1 2 3 4 5 6 1 chunk +168 lines, -0 lines 0 comments Download
A content/common/host_shared_bitmap_manager_unittest.cc View 1 2 3 4 5 6 1 chunk +160 lines, -0 lines 0 comments Download
M content/content_child.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 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 10 2 chunks +6 lines, -2 lines 0 comments Download
M ui/compositor/compositor.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +12 lines, -2 lines 0 comments Download

Messages

Total messages: 49 (0 generated)
jbauman
6 years, 10 months ago (2014-01-28 23:11:18 UTC) #1
danakj
https://codereview.chromium.org/148243013/diff/40001/cc/resources/shared_bitmap.cc File cc/resources/shared_bitmap.cc (right): https://codereview.chromium.org/148243013/diff/40001/cc/resources/shared_bitmap.cc#newcode27 cc/resources/shared_bitmap.cc:27: base::RandBytes(id.name, sizeof id.name); nit: sizeof(id.name) https://codereview.chromium.org/148243013/diff/40001/content/browser/compositor/image_transport_factory.cc File content/browser/compositor/image_transport_factory.cc (right): ...
6 years, 10 months ago (2014-01-30 22:59:01 UTC) #2
danakj
https://codereview.chromium.org/148243013/diff/40001/content/child/child_shared_bitmap_manager.cc File content/child/child_shared_bitmap_manager.cc (right): https://codereview.chromium.org/148243013/diff/40001/content/child/child_shared_bitmap_manager.cc#newcode55 content/child/child_shared_bitmap_manager.cc:55: return scoped_ptr<cc::SharedBitmap>(); On 2014/01/30 22:59:01, danakj wrote: > Future: ...
6 years, 10 months ago (2014-01-31 17:44:22 UTC) #3
jbauman
PTAL. On 2014/01/30 22:59:01, danakj wrote: > https://codereview.chromium.org/148243013/diff/40001/cc/resources/shared_bitmap.cc > File cc/resources/shared_bitmap.cc (right): > > https://codereview.chromium.org/148243013/diff/40001/cc/resources/shared_bitmap.cc#newcode27 ...
6 years, 10 months ago (2014-02-13 02:09:35 UTC) #4
danakj
Ok I'm mostly good with this now. It's making more sense after a couple rounds ...
6 years, 10 months ago (2014-02-14 20:16:47 UTC) #5
jbauman
https://codereview.chromium.org/148243013/diff/160001/cc/cc.gyp File cc/cc.gyp (right): https://codereview.chromium.org/148243013/diff/160001/cc/cc.gyp#newcode16 cc/cc.gyp:16: '<(DEPTH)/crypto/crypto.gyp:crypto', On 2014/02/14 20:16:48, danakj wrote: > This might ...
6 years, 10 months ago (2014-02-18 19:31:35 UTC) #6
danakj
https://codereview.chromium.org/148243013/diff/160001/content/common/host_shared_bitmap_manager_unittest.cc File content/common/host_shared_bitmap_manager_unittest.cc (right): https://codereview.chromium.org/148243013/diff/160001/content/common/host_shared_bitmap_manager_unittest.cc#newcode31 content/common/host_shared_bitmap_manager_unittest.cc:31: large_bitmap = manager_->GetSharedBitmapFromId(gfx::Size(1024, 1024), id); On 2014/02/18 19:31:35, jbauman ...
6 years, 10 months ago (2014-02-18 19:57:28 UTC) #7
jbauman
PTAL. I also discovered that when delegated rendering is disabled (by default still) we still ...
6 years, 10 months ago (2014-02-18 20:39:19 UTC) #8
piman
https://codereview.chromium.org/148243013/diff/280001/content/child/child_shared_bitmap_manager.cc File content/child/child_shared_bitmap_manager.cc (right): https://codereview.chromium.org/148243013/diff/280001/content/child/child_shared_bitmap_manager.cc#newcode27 content/child/child_shared_bitmap_manager.cc:27: size_t memory_size = cc::SharedBitmap::GetSizeInBytes(size); Do we need to protect ...
6 years, 10 months ago (2014-02-18 21:38:20 UTC) #9
jbauman
On 2014/02/18 21:38:20, piman (OOO back 2014-3-4) wrote: > https://codereview.chromium.org/148243013/diff/280001/content/child/child_shared_bitmap_manager.cc > File content/child/child_shared_bitmap_manager.cc (right): > ...
6 years, 10 months ago (2014-02-21 01:45:48 UTC) #10
danakj
On Thu, Feb 20, 2014 at 8:45 PM, <jbauman@chromium.org> wrote: > On 2014/02/18 21:38:20, piman ...
6 years, 10 months ago (2014-02-21 16:24:55 UTC) #11
jbauman
PTAL.
6 years, 10 months ago (2014-02-25 00:46:18 UTC) #12
piman
LGTM, thanks for the extra tests!
6 years, 9 months ago (2014-03-05 22:15:54 UTC) #13
danakj
LGTM2
6 years, 9 months ago (2014-03-05 22:25:18 UTC) #14
jbauman
jschuh@, could I get a security review of the new IPC messages for creating and ...
6 years, 9 months ago (2014-03-05 23:30:40 UTC) #15
jschuh
Sorry for getting to this late. I missed it. https://codereview.chromium.org/148243013/diff/470001/cc/resources/shared_bitmap.cc File cc/resources/shared_bitmap.cc (right): https://codereview.chromium.org/148243013/diff/470001/cc/resources/shared_bitmap.cc#newcode30 cc/resources/shared_bitmap.cc:30: ...
6 years, 9 months ago (2014-03-08 00:58:10 UTC) #16
jbauman
On 2014/03/08 00:58:10, Justin Schuh wrote: > Sorry for getting to this late. I missed ...
6 years, 9 months ago (2014-03-10 20:00:36 UTC) #17
jschuh
https://codereview.chromium.org/148243013/diff/490001/cc/resources/shared_bitmap.cc File cc/resources/shared_bitmap.cc (right): https://codereview.chromium.org/148243013/diff/490001/cc/resources/shared_bitmap.cc#newcode23 cc/resources/shared_bitmap.cc:23: base::CheckedNumeric<int> s = size.width(); Do you still want a ...
6 years, 9 months ago (2014-03-10 22:18:53 UTC) #18
jbauman
On 2014/03/10 22:18:53, Justin Schuh wrote: > https://codereview.chromium.org/148243013/diff/490001/cc/resources/shared_bitmap.cc > File cc/resources/shared_bitmap.cc (right): > > https://codereview.chromium.org/148243013/diff/490001/cc/resources/shared_bitmap.cc#newcode23 ...
6 years, 9 months ago (2014-03-11 21:15:43 UTC) #19
jschuh
On 2014/03/11 21:15:43, jbauman wrote: > On 2014/03/10 22:18:53, Justin Schuh wrote: > > > ...
6 years, 9 months ago (2014-03-11 21:42:33 UTC) #20
jbauman
The CQ bit was checked by jbauman@chromium.org
6 years, 9 months ago (2014-03-11 21:45:57 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbauman@chromium.org/148243013/530001
6 years, 9 months ago (2014-03-11 22:05:46 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-11 23:19:56 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-11 23:19:57 UTC) #24
jbauman
The CQ bit was checked by jbauman@chromium.org
6 years, 9 months ago (2014-03-11 23:21:40 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbauman@chromium.org/148243013/530001
6 years, 9 months ago (2014-03-11 23:26:04 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-12 01:48:25 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_clang_dbg
6 years, 9 months ago (2014-03-12 01:48:26 UTC) #28
jschuh
The CQ bit was checked by jschuh@chromium.org
6 years, 9 months ago (2014-03-12 02:58:18 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbauman@chromium.org/148243013/530001
6 years, 9 months ago (2014-03-12 02:59:57 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-12 06:05:35 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_clang_dbg
6 years, 9 months ago (2014-03-12 06:05:36 UTC) #32
jbauman
The CQ bit was checked by jbauman@chromium.org
6 years, 9 months ago (2014-03-13 19:44:17 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbauman@chromium.org/148243013/550001
6 years, 9 months ago (2014-03-13 19:49:16 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 21:13:31 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 9 months ago (2014-03-13 21:13:32 UTC) #36
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 9 months ago (2014-03-13 21:27:22 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbauman@chromium.org/148243013/550001
6 years, 9 months ago (2014-03-13 21:28:48 UTC) #38
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 22:52:57 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 9 months ago (2014-03-13 22:52:58 UTC) #40
jbauman
The CQ bit was checked by jbauman@chromium.org
6 years, 9 months ago (2014-03-13 23:04:56 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbauman@chromium.org/148243013/570001
6 years, 9 months ago (2014-03-13 23:05:09 UTC) #42
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 23:24:23 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_clang_dbg
6 years, 9 months ago (2014-03-13 23:24:24 UTC) #44
jbauman
The CQ bit was checked by jbauman@chromium.org
6 years, 9 months ago (2014-03-13 23:30:14 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbauman@chromium.org/148243013/570001
6 years, 9 months ago (2014-03-13 23:31:50 UTC) #46
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 23:35:59 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 9 months ago (2014-03-13 23:36:00 UTC) #48
jbauman
6 years, 9 months ago (2014-03-13 23:59:53 UTC) #49
Message was sent while issue was closed.
Committed patchset #12 manually as r256955 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698