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

Issue 1469773002: sync compositor: Software draw (Closed)

Created:
5 years, 1 month ago by boliu
Modified:
5 years ago
Reviewers:
no sievers, dcheng
CC:
android-webview-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

sync compositor: Software draw Minimal change to implement software draw in ipc-based synchronous compositor. Changes are all internal to sync compositor. Allocate a new shared memory the size of the canvas in ARGB_8888 format, share it to renderer to draw, and then draw the memory into the canvas passed in. BUG=545611 Committed: https://crrev.com/f6d263e9b4a207273d81f25c33bf62330287693a Cr-Commit-Position: refs/heads/master@{#361564}

Patch Set 1 #

Patch Set 2 : works #

Patch Set 3 : traces #

Patch Set 4 : remove zero #

Total comments: 6

Patch Set 5 : safe_math #

Total comments: 7

Patch Set 6 : review #

Total comments: 8

Patch Set 7 : dcheng review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -2 lines) Patch
M content/browser/android/synchronous_compositor_host.cc View 1 2 3 4 5 6 3 chunks +65 lines, -2 lines 0 comments Download
M content/common/android/sync_compositor_messages.h View 1 2 3 4 5 chunks +30 lines, -0 lines 0 comments Download
M content/common/android/sync_compositor_messages.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/android/synchronous_compositor_proxy.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/android/synchronous_compositor_proxy.cc View 1 2 3 4 5 6 3 chunks +47 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
boliu
wdyt?
5 years, 1 month ago (2015-11-23 17:23:11 UTC) #3
boliu
+dcheng for security review So tomorrow is my last day before a 1.5 week long ...
5 years ago (2015-11-23 23:04:20 UTC) #7
dcheng
Just an initial glance. https://codereview.chromium.org/1469773002/diff/60001/content/common/android/sync_compositor_messages.h File content/common/android/sync_compositor_messages.h (right): https://codereview.chromium.org/1469773002/diff/60001/content/common/android/sync_compositor_messages.h#newcode145 content/common/android/sync_compositor_messages.h:145: IPC_SYNC_MESSAGE_ROUTED2_3(SyncCompositorMsg_DemandDrawSw, Can we add section ...
5 years ago (2015-11-23 23:26:36 UTC) #8
boliu
https://codereview.chromium.org/1469773002/diff/60001/content/common/android/sync_compositor_messages.h File content/common/android/sync_compositor_messages.h (right): https://codereview.chromium.org/1469773002/diff/60001/content/common/android/sync_compositor_messages.h#newcode145 content/common/android/sync_compositor_messages.h:145: IPC_SYNC_MESSAGE_ROUTED2_3(SyncCompositorMsg_DemandDrawSw, On 2015/11/23 23:26:35, dcheng wrote: > Can we ...
5 years ago (2015-11-24 00:16:34 UTC) #9
boliu
sievers: half-day-left kind of ping? :p
5 years ago (2015-11-24 20:36:12 UTC) #10
no sievers
lgtm https://codereview.chromium.org/1469773002/diff/80001/content/browser/android/synchronous_compositor_host.cc File content/browser/android/synchronous_compositor_host.cc (right): https://codereview.chromium.org/1469773002/diff/80001/content/browser/android/synchronous_compositor_host.cc#newcode97 content/browser/android/synchronous_compositor_host.cc:97: canvas->getDeviceSize().height()); nit: indent https://codereview.chromium.org/1469773002/diff/80001/content/browser/android/synchronous_compositor_host.cc#newcode103 content/browser/android/synchronous_compositor_host.cc:103: size_t buffer_size = ...
5 years ago (2015-11-24 23:38:40 UTC) #11
boliu
https://codereview.chromium.org/1469773002/diff/80001/content/browser/android/synchronous_compositor_host.cc File content/browser/android/synchronous_compositor_host.cc (right): https://codereview.chromium.org/1469773002/diff/80001/content/browser/android/synchronous_compositor_host.cc#newcode97 content/browser/android/synchronous_compositor_host.cc:97: canvas->getDeviceSize().height()); On 2015/11/24 23:38:40, sievers wrote: > nit: indent ...
5 years ago (2015-11-25 00:00:14 UTC) #12
boliu
dcheng: ping? now I'm excited if I can get this in today, maybe... :)
5 years ago (2015-11-25 00:27:37 UTC) #13
dcheng
https://codereview.chromium.org/1469773002/diff/100001/content/browser/android/synchronous_compositor_host.cc File content/browser/android/synchronous_compositor_host.cc (right): https://codereview.chromium.org/1469773002/diff/100001/content/browser/android/synchronous_compositor_host.cc#newcode107 content/browser/android/synchronous_compositor_host.cc:107: size_t buffer_size = params.size.width() * params.size.height() * 4; info.getSafeSize()? ...
5 years ago (2015-11-25 00:55:17 UTC) #14
dcheng
https://codereview.chromium.org/1469773002/diff/100001/content/renderer/android/synchronous_compositor_proxy.cc File content/renderer/android/synchronous_compositor_proxy.cc (right): https://codereview.chromium.org/1469773002/diff/100001/content/renderer/android/synchronous_compositor_proxy.cc#newcode234 content/renderer/android/synchronous_compositor_proxy.cc:234: SkImageInfo::MakeN32Premul(params.size.width(), params.size.height()); Similarly, if you calculate this first, you ...
5 years ago (2015-11-25 00:56:18 UTC) #15
boliu
https://codereview.chromium.org/1469773002/diff/100001/content/browser/android/synchronous_compositor_host.cc File content/browser/android/synchronous_compositor_host.cc (right): https://codereview.chromium.org/1469773002/diff/100001/content/browser/android/synchronous_compositor_host.cc#newcode107 content/browser/android/synchronous_compositor_host.cc:107: size_t buffer_size = params.size.width() * params.size.height() * 4; On ...
5 years ago (2015-11-25 01:13:41 UTC) #16
dcheng
lgtm
5 years ago (2015-11-25 01:43:45 UTC) #17
boliu
Thanks both :)
5 years ago (2015-11-25 01:44:49 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1469773002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1469773002/120001
5 years ago (2015-11-25 01:45:35 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years ago (2015-11-25 03:54:06 UTC) #22
commit-bot: I haz the power
5 years ago (2015-11-25 03:55:22 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/f6d263e9b4a207273d81f25c33bf62330287693a
Cr-Commit-Position: refs/heads/master@{#361564}

Powered by Google App Engine
This is Rietveld 408576698