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

Issue 1985863002: Incorporate BlobChannel into Blimp image encode/decode pipeline. (Closed)

Created:
4 years, 7 months ago by Kevin M
Modified:
4 years, 6 months ago
Reviewers:
nyquist, Wez
CC:
chromium-reviews, cbentzel+watch_chromium.org, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, nyquist+watch-blimp_chromium.org, Aaron Boodman, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, darin (slow to review), dtrainor+watch-blimp_chromium.org, ben+mojo_chromium.org, qsr+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@blobchannel-helium
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Incorporate BlobChannel into Blimp image encode/decode pipeline. * Add "BlobChannelSenderHost" class which encapsulates calls to Mojo and manages a renderer-resident copy of the cache state. Access to the cache state enables the renderer to avoid performing redundant operations such as resampling/transcoding if the data has previously been processed by another renderer. * Modify Mojo interface to transmit blob payloads as strings, which is consistent with the C++ BlobData typedef. * Remove BlobChannel/BlobCache calls from WebPDecoder (now it only decodes WebP images.) * Make ClientImageSerializationProcessor into a singleton. * Add getter path for BlobChannel sender for Engine browser process. R=wez@chromium.org,nyquist@chromium.org BUG=600719 Committed: https://crrev.com/27ea310df5b26c303575e1c7c401045e3f51f8af Cr-Commit-Position: refs/heads/master@{#399639}

Patch Set 1 #

Patch Set 2 : mojom shared memory comment #

Patch Set 3 : Decoupled BlobChannelSenderHost from mojom::BlobChannel #

Total comments: 89

Patch Set 4 : wez and nyquist feedback #

Total comments: 7

Patch Set 5 : nyquist feedback #

Total comments: 17

Patch Set 6 : wez feedback #

Patch Set 7 : Added BlobImageSerilizationProcessor instance to compositor unittests. #

Patch Set 8 : moved the blob serialization processor to the compositor manager #

Total comments: 14

Patch Set 9 : wez feedback #

Patch Set 10 : wez feedback #

Patch Set 11 : GN dependency fix #

Patch Set 12 : fix gn dependency warning & rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+644 lines, -469 lines) Patch
M blimp/client/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +8 lines, -3 lines 0 comments Download
M blimp/client/feature/compositor/blimp_compositor_manager.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -6 lines 0 comments Download
M blimp/client/feature/compositor/blimp_compositor_manager.cc View 1 2 3 4 5 6 7 3 chunks +2 lines, -3 lines 0 comments Download
M blimp/client/feature/compositor/blimp_compositor_unittest.cc View 1 2 3 4 5 6 3 chunks +6 lines, -3 lines 0 comments Download
M blimp/client/feature/compositor/blimp_image_decoder.cc View 3 chunks +2 lines, -55 lines 0 comments Download
A blimp/client/feature/compositor/blob_image_serialization_processor.h View 1 2 3 4 5 6 7 8 1 chunk +83 lines, -0 lines 0 comments Download
A blimp/client/feature/compositor/blob_image_serialization_processor.cc View 1 2 3 4 5 6 7 8 1 chunk +95 lines, -0 lines 0 comments Download
M blimp/client/feature/compositor/client_image_serialization_processor.h View 1 2 3 4 5 1 chunk +0 lines, -38 lines 0 comments Download
M blimp/client/feature/compositor/client_image_serialization_processor.cc View 1 2 3 4 5 1 chunk +0 lines, -31 lines 0 comments Download
M blimp/client/feature/compositor/decoding_image_generator.cc View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download
M blimp/client/session/blimp_client_session.h View 1 2 3 4 5 6 7 4 chunks +19 lines, -1 line 0 comments Download
M blimp/client/session/blimp_client_session.cc View 1 2 3 4 5 6 7 6 chunks +26 lines, -0 lines 0 comments Download
M blimp/common/proto/blob_cache.proto View 1 chunk +0 lines, -2 lines 0 comments Download
M blimp/engine/BUILD.gn View 1 2 3 4 5 6 7 8 9 4 chunks +10 lines, -3 lines 0 comments Download
M blimp/engine/app/blimp_browser_main_parts.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M blimp/engine/app/blimp_browser_main_parts.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M blimp/engine/app/blimp_content_browser_client.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M blimp/engine/mojo/blob_channel.mojom View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M blimp/engine/mojo/blob_channel_service.h View 1 2 3 1 chunk +15 lines, -5 lines 0 comments Download
M blimp/engine/mojo/blob_channel_service.cc View 1 2 3 1 chunk +15 lines, -8 lines 0 comments Download
M blimp/engine/renderer/blimp_content_renderer_client.cc View 1 2 3 2 chunks +4 lines, -15 lines 0 comments Download
A blimp/engine/renderer/blob_channel_sender_proxy.h View 1 2 3 1 chunk +52 lines, -0 lines 0 comments Download
A blimp/engine/renderer/blob_channel_sender_proxy.cc View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
M blimp/engine/renderer/engine_image_serialization_processor.h View 1 2 3 2 chunks +22 lines, -6 lines 0 comments Download
M blimp/engine/renderer/engine_image_serialization_processor.cc View 1 2 3 4 5 6 7 8 5 chunks +131 lines, -160 lines 0 comments Download
M blimp/engine/session/blimp_engine_session.h View 1 2 3 4 5 6 7 8 9 3 chunks +14 lines, -0 lines 0 comments Download
M blimp/engine/session/blimp_engine_session.cc View 1 2 3 4 5 6 7 8 9 5 chunks +18 lines, -4 lines 0 comments Download
M blimp/net/BUILD.gn View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M blimp/net/blimp_connection_unittest.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M blimp/net/blob_channel/blob_channel_integration_test.cc View 1 2 3 4 5 3 chunks +3 lines, -2 lines 0 comments Download
M blimp/net/blob_channel/blob_channel_receiver.cc View 1 2 3 3 chunks +4 lines, -2 lines 0 comments Download
M blimp/net/blob_channel/blob_channel_sender.h View 1 2 3 1 chunk +3 lines, -35 lines 0 comments Download
D blimp/net/blob_channel/blob_channel_sender.cc View 1 2 3 1 chunk +0 lines, -50 lines 0 comments Download
A + blimp/net/blob_channel/blob_channel_sender_impl.h View 1 2 3 4 chunks +12 lines, -16 lines 0 comments Download
A + blimp/net/blob_channel/blob_channel_sender_impl.cc View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M blimp/net/blob_channel/blob_channel_sender_unittest.cc View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M blimp/net/blob_channel/helium_blob_sender_delegate.h View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M blimp/net/browser_connection_handler.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M blimp/net/browser_connection_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 39 (12 generated)
Kevin M
Still working out my approach for testing with this CL.
4 years, 7 months ago (2016-05-16 21:24:54 UTC) #1
Kevin M
Heads up, I'll be uploading a patch that uses shared memory for blob IPCs. Please ...
4 years, 7 months ago (2016-05-17 20:52:17 UTC) #2
Kevin M
Reviewers: please resume. I added shared memory support, but the interface churn blew out the ...
4 years, 7 months ago (2016-05-17 23:14:52 UTC) #3
Kevin M
ping
4 years, 7 months ago (2016-05-20 18:33:10 UTC) #4
Wez
nit: Your description has a duplicate title line.
4 years, 7 months ago (2016-05-20 21:50:37 UTC) #5
Wez
Why do we want a per-renderer model of the cache? Are we then maintaining a ...
4 years, 7 months ago (2016-05-20 21:52:07 UTC) #6
Wez
On 2016/05/20 21:52:07, Wez wrote: > Why do we want a per-renderer model of the ...
4 years, 7 months ago (2016-05-20 21:52:44 UTC) #7
Kevin M
Added clarification to the CL description. "Access to the cache state enables the renderer to ...
4 years, 7 months ago (2016-05-20 23:50:29 UTC) #9
Wez
https://codereview.chromium.org/1985863002/diff/40001/blimp/client/feature/compositor/client_image_serialization_processor.cc File blimp/client/feature/compositor/client_image_serialization_processor.cc (right): https://codereview.chromium.org/1985863002/diff/40001/blimp/client/feature/compositor/client_image_serialization_processor.cc#newcode49 blimp/client/feature/compositor/client_image_serialization_processor.cc:49: LOG(WARNING) << "Couldn't parse blob metadata structure."; This seems ...
4 years, 7 months ago (2016-05-21 01:08:05 UTC) #10
nyquist
https://codereview.chromium.org/1985863002/diff/40001/blimp/engine/BUILD.gn File blimp/engine/BUILD.gn (right): https://codereview.chromium.org/1985863002/diff/40001/blimp/engine/BUILD.gn#newcode255 blimp/engine/BUILD.gn:255: "renderer/blimp_content_renderer_client.h", Nit: I don't think you need to list ...
4 years, 7 months ago (2016-05-24 00:05:41 UTC) #11
Kevin M
https://codereview.chromium.org/1985863002/diff/40001/blimp/client/feature/compositor/client_image_serialization_processor.cc File blimp/client/feature/compositor/client_image_serialization_processor.cc (right): https://codereview.chromium.org/1985863002/diff/40001/blimp/client/feature/compositor/client_image_serialization_processor.cc#newcode49 blimp/client/feature/compositor/client_image_serialization_processor.cc:49: LOG(WARNING) << "Couldn't parse blob metadata structure."; On 2016/05/21 ...
4 years, 6 months ago (2016-05-27 22:35:31 UTC) #12
nyquist
https://codereview.chromium.org/1985863002/diff/60001/blimp/client/feature/compositor/blimp_compositor_manager.h File blimp/client/feature/compositor/blimp_compositor_manager.h (right): https://codereview.chromium.org/1985863002/diff/60001/blimp/client/feature/compositor/blimp_compositor_manager.h#newcode99 blimp/client/feature/compositor/blimp_compositor_manager.h:99: ClientImageSerializationProcessor* image_serialization_processor_; Nit: Do we want to mention any ...
4 years, 6 months ago (2016-06-03 18:30:44 UTC) #13
Kevin M
nyquist: PTAL wez: pingggggg! https://codereview.chromium.org/1985863002/diff/60001/blimp/client/feature/compositor/blimp_compositor_manager.h File blimp/client/feature/compositor/blimp_compositor_manager.h (right): https://codereview.chromium.org/1985863002/diff/60001/blimp/client/feature/compositor/blimp_compositor_manager.h#newcode99 blimp/client/feature/compositor/blimp_compositor_manager.h:99: ClientImageSerializationProcessor* image_serialization_processor_; On 2016/06/03 18:30:44, ...
4 years, 6 months ago (2016-06-06 17:43:38 UTC) #14
nyquist
lgtm! https://codereview.chromium.org/1985863002/diff/60001/blimp/client/feature/compositor/blimp_compositor_manager.h File blimp/client/feature/compositor/blimp_compositor_manager.h (right): https://codereview.chromium.org/1985863002/diff/60001/blimp/client/feature/compositor/blimp_compositor_manager.h#newcode99 blimp/client/feature/compositor/blimp_compositor_manager.h:99: ClientImageSerializationProcessor* image_serialization_processor_; On 2016/06/06 17:43:38, Kevin M wrote: ...
4 years, 6 months ago (2016-06-06 21:10:46 UTC) #15
Wez
https://codereview.chromium.org/1985863002/diff/40001/blimp/client/feature/compositor/client_image_serialization_processor.h File blimp/client/feature/compositor/client_image_serialization_processor.h (right): https://codereview.chromium.org/1985863002/diff/40001/blimp/client/feature/compositor/client_image_serialization_processor.h#newcode24 blimp/client/feature/compositor/client_image_serialization_processor.h:24: class ClientImageSerializationProcessor On 2016/05/27 22:35:29, Kevin M wrote: > ...
4 years, 6 months ago (2016-06-07 01:18:32 UTC) #16
Kevin M
https://codereview.chromium.org/1985863002/diff/40001/blimp/client/feature/compositor/client_image_serialization_processor.h File blimp/client/feature/compositor/client_image_serialization_processor.h (right): https://codereview.chromium.org/1985863002/diff/40001/blimp/client/feature/compositor/client_image_serialization_processor.h#newcode24 blimp/client/feature/compositor/client_image_serialization_processor.h:24: class ClientImageSerializationProcessor On 2016/06/07 01:18:31, Wez wrote: > On ...
4 years, 6 months ago (2016-06-08 00:21:09 UTC) #17
Kevin M
pingggggggg ggg ggg
4 years, 6 months ago (2016-06-10 22:09:48 UTC) #18
Wez
LGTM! https://codereview.chromium.org/1985863002/diff/80001/blimp/client/session/blimp_client_session.cc File blimp/client/session/blimp_client_session.cc (right): https://codereview.chromium.org/1985863002/diff/80001/blimp/client/session/blimp_client_session.cc#newcode297 blimp/client/session/blimp_client_session.cc:297: base::Unretained(net_components_.get()))); On 2016/06/08 00:21:09, Kevin M wrote: > ...
4 years, 6 months ago (2016-06-10 22:29:54 UTC) #19
Kevin M
https://codereview.chromium.org/1985863002/diff/80001/blimp/engine/renderer/engine_image_serialization_processor.cc File blimp/engine/renderer/engine_image_serialization_processor.cc (right): https://codereview.chromium.org/1985863002/diff/80001/blimp/engine/renderer/engine_image_serialization_processor.cc#newcode144 blimp/engine/renderer/engine_image_serialization_processor.cc:144: SkData* sk_data = BlobCacheImageMetadataProtoAsSkData(proto); On 2016/06/10 22:29:54, Wez wrote: ...
4 years, 6 months ago (2016-06-10 23:51:50 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1985863002/180001
4 years, 6 months ago (2016-06-11 00:04:58 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/80197) android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, ...
4 years, 6 months ago (2016-06-11 00:10:02 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1985863002/200001
4 years, 6 months ago (2016-06-11 00:37:43 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/176292) linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 6 months ago (2016-06-11 00:43:30 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1985863002/220001
4 years, 6 months ago (2016-06-14 01:11:59 UTC) #34
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 6 months ago (2016-06-14 02:09:54 UTC) #36
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-14 02:10:05 UTC) #37
commit-bot: I haz the power
4 years, 6 months ago (2016-06-14 03:40:10 UTC) #39
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/27ea310df5b26c303575e1c7c401045e3f51f8af
Cr-Commit-Position: refs/heads/master@{#399639}

Powered by Google App Engine
This is Rietveld 408576698