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

Issue 1595773002: Added ImagePipe (Closed)

Created:
4 years, 11 months ago by Forrest Reiling
Modified:
4 years, 9 months ago
Reviewers:
jamesr, cdotstout, jeffbrown
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, darin (slow to review), gregsimon, mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org
Base URL:
https://github.com/domokit/mojo.git@submit-2
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Added ImagePipe ImagePipe is a Mojo interface designed to provide synchronized transport of graphics buffers residing on the GPU (though in principle it could be used for the transport of any type media buffer that can be accessed via a mojo handle). The semantics of this interface are designed mainly to support the creation of accelerated rendering contexts (e.g. OpenGL contexts) whose output is consumed by a different Mojo application than the one doing the rendering. This interface can be used directly, but we also provide endpoint classes which provide state tracking and state validation functionality, which should generally be used unless there is a compeeling reason not to. Change-Id: I389ec3519314da2623a65051ef9786282a28e3ac BUG= R=jeffbrown@google.com Committed: https://chromium.googlesource.com/external/mojo/+/c905841e49ec58a05806eaf5294c942f151a574f

Patch Set 1 #

Patch Set 2 : minor changes to make it build with GCC on fnl #

Total comments: 6

Patch Set 3 : made @jamesr's suggested changes #

Patch Set 4 : Expose InterfacePtr::encountered_error() through ImagePipeProducerEndpoint so the GL on ImagePipe i… #

Total comments: 66

Patch Set 5 : Made @jamesr 's most recent suggested changes #

Patch Set 6 : rebased. the ImagePipe interface doesnt pass interfaces anyway so it didnt really change anything #

Total comments: 42

Patch Set 7 : Made Jeff's suggested changes #

Patch Set 8 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1147 lines, -5 lines) Patch
M mojo/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A mojo/services/gfx/images/cpp/BUILD.gn View 1 2 3 4 1 chunk +43 lines, -0 lines 0 comments Download
A mojo/services/gfx/images/cpp/image_pipe_apptest.cc View 1 2 3 4 5 6 1 chunk +353 lines, -0 lines 0 comments Download
A mojo/services/gfx/images/cpp/image_pipe_consumer_delegate.h View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 0 comments Download
A mojo/services/gfx/images/cpp/image_pipe_consumer_endpoint.h View 1 2 3 4 5 6 1 chunk +60 lines, -0 lines 0 comments Download
A mojo/services/gfx/images/cpp/image_pipe_consumer_endpoint.cc View 1 2 3 4 5 6 1 chunk +65 lines, -0 lines 0 comments Download
A mojo/services/gfx/images/cpp/image_pipe_endpoint.h View 1 2 3 4 5 6 1 chunk +81 lines, -0 lines 0 comments Download
A mojo/services/gfx/images/cpp/image_pipe_endpoint.cc View 1 2 3 4 5 6 1 chunk +243 lines, -0 lines 0 comments Download
A mojo/services/gfx/images/cpp/image_pipe_producer_endpoint.h View 1 2 3 4 5 6 1 chunk +70 lines, -0 lines 0 comments Download
A mojo/services/gfx/images/cpp/image_pipe_producer_endpoint.cc View 1 2 3 4 5 6 1 chunk +99 lines, -0 lines 0 comments Download
A + mojo/services/gfx/images/interfaces/BUILD.gn View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
A mojo/services/gfx/images/interfaces/image.mojom View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
A mojo/services/gfx/images/interfaces/image_pipe.mojom View 1 2 3 4 5 6 1 chunk +50 lines, -0 lines 0 comments Download
M mojo/tools/data/apptests View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
Forrest Reiling
4 years, 11 months ago (2016-01-19 21:26:15 UTC) #2
jamesr
https://codereview.chromium.org/1595773002/diff/20001/mojo/services/gfx/images/cpp/image_pipe_producer_endpoint.h File mojo/services/gfx/images/cpp/image_pipe_producer_endpoint.h (right): https://codereview.chromium.org/1595773002/diff/20001/mojo/services/gfx/images/cpp/image_pipe_producer_endpoint.h#newcode20 mojo/services/gfx/images/cpp/image_pipe_producer_endpoint.h:20: class ImagePipeProducerEndpoint : private ImagePipeEndpoint, i strongly recommend against ...
4 years, 10 months ago (2016-02-09 21:07:20 UTC) #3
Forrest Reiling
https://codereview.chromium.org/1595773002/diff/20001/mojo/services/gfx/images/cpp/image_pipe_producer_endpoint.h File mojo/services/gfx/images/cpp/image_pipe_producer_endpoint.h (right): https://codereview.chromium.org/1595773002/diff/20001/mojo/services/gfx/images/cpp/image_pipe_producer_endpoint.h#newcode20 mojo/services/gfx/images/cpp/image_pipe_producer_endpoint.h:20: class ImagePipeProducerEndpoint : private ImagePipeEndpoint, On 2016/02/09 21:07:20, jamesr ...
4 years, 10 months ago (2016-02-10 20:38:42 UTC) #4
jamesr
I haven't looked closely yet at the interface or the test logic, as I don't ...
4 years, 10 months ago (2016-02-18 20:40:59 UTC) #5
Forrest Reiling
On 2016/02/18 20:40:59, jamesr wrote: > I haven't looked closely yet at the interface or ...
4 years, 10 months ago (2016-02-22 19:11:15 UTC) #6
Forrest Reiling
Most recent changes are in, PTAL https://codereview.chromium.org/1595773002/diff/60001/mojo/services/gfx/images/cpp/BUILD.gn File mojo/services/gfx/images/cpp/BUILD.gn (right): https://codereview.chromium.org/1595773002/diff/60001/mojo/services/gfx/images/cpp/BUILD.gn#newcode1 mojo/services/gfx/images/cpp/BUILD.gn:1: # Copyright 2015 ...
4 years, 10 months ago (2016-02-25 00:35:15 UTC) #7
jamesr
I remember the meeting and the doc but I still don't think I understand what ...
4 years, 10 months ago (2016-02-25 23:16:17 UTC) #8
jeffbrown
https://codereview.chromium.org/1595773002/diff/100001/mojo/services/gfx/images/interfaces/image.mojom File mojo/services/gfx/images/interfaces/image.mojom (right): https://codereview.chromium.org/1595773002/diff/100001/mojo/services/gfx/images/interfaces/image.mojom#newcode43 mojo/services/gfx/images/interfaces/image.mojom:43: struct SupportedImageProperties { move to image_pipe.mojom https://codereview.chromium.org/1595773002/diff/100001/mojo/services/gfx/images/interfaces/image_pipe.mojom File mojo/services/gfx/images/interfaces/image_pipe.mojom ...
4 years, 9 months ago (2016-03-03 23:09:58 UTC) #9
jeffbrown
https://codereview.chromium.org/1595773002/diff/100001/mojo/services/gfx/images/interfaces/image.mojom File mojo/services/gfx/images/interfaces/image.mojom (right): https://codereview.chromium.org/1595773002/diff/100001/mojo/services/gfx/images/interfaces/image.mojom#newcode43 mojo/services/gfx/images/interfaces/image.mojom:43: struct SupportedImageProperties { On 2016/03/03 23:09:58, jeffbrown wrote: > ...
4 years, 9 months ago (2016-03-03 23:10:40 UTC) #10
jeffbrown
https://codereview.chromium.org/1595773002/diff/100001/mojo/services/gfx/images/cpp/image_pipe_consumer_delegate.h File mojo/services/gfx/images/cpp/image_pipe_consumer_delegate.h (right): https://codereview.chromium.org/1595773002/diff/100001/mojo/services/gfx/images/cpp/image_pipe_consumer_delegate.h#newcode12 mojo/services/gfx/images/cpp/image_pipe_consumer_delegate.h:12: // pure virtual class for platform dependent handling of ...
4 years, 9 months ago (2016-03-03 23:27:49 UTC) #11
Forrest Reiling
PTAL https://codereview.chromium.org/1595773002/diff/100001/mojo/services/gfx/images/cpp/image_pipe_consumer_delegate.h File mojo/services/gfx/images/cpp/image_pipe_consumer_delegate.h (right): https://codereview.chromium.org/1595773002/diff/100001/mojo/services/gfx/images/cpp/image_pipe_consumer_delegate.h#newcode12 mojo/services/gfx/images/cpp/image_pipe_consumer_delegate.h:12: // pure virtual class for platform dependent handling ...
4 years, 9 months ago (2016-03-04 21:04:28 UTC) #12
jeffbrown
lgtm
4 years, 9 months ago (2016-03-05 00:01:22 UTC) #13
Forrest Reiling
4 years, 9 months ago (2016-03-08 19:36:51 UTC) #15
Message was sent while issue was closed.
Committed patchset #8 (id:140001) manually as
c905841e49ec58a05806eaf5294c942f151a574f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698