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

Issue 1129943006: Implement StreamTexture::BindTexImage. (Closed)

Created:
5 years, 7 months ago by sivag
Modified:
4 years, 1 month ago
Reviewers:
reveman, no sievers, piman
CC:
avayvod+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement StreamTexture::BindTexImage. Implement StreamTexture::BindTexImage. Currently StreamTexture takes the textureid as parameter and binds it while creation. Ideally a valid image id can be returned to the client so that it could then call glBindTexImage2D() BUG=339191 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel

Patch Set 1 #

Patch Set 2 : WebMediaPlayerAndroid: Remove StreamTexture EstablishPeer. #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : Createstreamtxture through gpu client. #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : Implement StreamTexture::BindTexImage. #

Patch Set 12 : [WIP]StreamTextureMap maintaince (has one compilation issue). #

Patch Set 13 : CreateStreamTexture Flow Change. #

Total comments: 6

Patch Set 14 : #

Total comments: 3

Patch Set 15 : #

Patch Set 16 : #

Total comments: 4

Patch Set 17 : Implement CreateStreamTextureImage #

Patch Set 18 : #

Patch Set 19 : #

Patch Set 20 : Upload gles2 autogenerated files. #

Patch Set 21 : Rebasing TOT! #

Patch Set 22 : #

Patch Set 23 : #

Total comments: 2

Patch Set 24 : Implement StreamTexture::BindTexImage. #

Patch Set 25 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -40 lines) Patch
M content/renderer/media/android/stream_texture_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +5 lines, -1 line 0 comments Download
M gpu/ipc/client/command_buffer_proxy_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -1 line 0 comments Download
M gpu/ipc/client/command_buffer_proxy_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/ipc/common/gpu_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/ipc/service/gpu_command_buffer_stub.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -1 line 0 comments Download
M gpu/ipc/service/gpu_command_buffer_stub.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/ipc/service/stream_texture_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +3 lines, -3 lines 0 comments Download
M gpu/ipc/service/stream_texture_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 4 chunks +54 lines, -28 lines 0 comments Download

Messages

Total messages: 38 (9 generated)
sivag
Hi Sievers, Please take a look at the flow This is what i am planning ...
5 years, 7 months ago (2015-05-12 15:30:39 UTC) #2
no sievers
Sorry, I missed this. On 2015/05/12 15:30:39, Siva Gunturi wrote: > 1.Pass stream_id, frame_id, player_id,(surface_texture_id?) ...
5 years, 6 months ago (2015-05-28 21:33:35 UTC) #3
sivag
On 2015/05/28 21:33:35, sievers wrote: > Sorry, I missed this. > > On 2015/05/12 15:30:39, ...
5 years, 6 months ago (2015-05-29 09:42:01 UTC) #4
sivag
@sievers , Ptal.. 1.i routed the ipc to browser via mediaplayer (please suggest if we ...
5 years, 6 months ago (2015-06-11 16:05:01 UTC) #5
no sievers
It should use the original client context to do things. I think it should work ...
5 years, 6 months ago (2015-06-11 20:23:43 UTC) #6
sivag
On 2015/06/11 20:23:43, sievers wrote: > It should use the original client context to do ...
5 years, 6 months ago (2015-06-22 16:02:54 UTC) #7
sivag
https://code.google.com/p/chromium/codesearch#chromium/src/content/common/gpu/stream_texture_android.cc&l=33 When i am trying to access TextureRef* texture for the created texture id , ...
5 years, 6 months ago (2015-06-23 15:39:59 UTC) #8
no sievers
On 2015/06/23 15:39:59, sivag wrote: > https://code.google.com/p/chromium/codesearch#chromium/src/content/common/gpu/stream_texture_android.cc&l=33 > When i am trying to access TextureRef* ...
5 years, 6 months ago (2015-06-25 00:19:51 UTC) #9
sivag
On 2015/06/25 00:19:51, sievers wrote: > On 2015/06/23 15:39:59, sivag wrote: > > > https://code.google.com/p/chromium/codesearch#chromium/src/content/common/gpu/stream_texture_android.cc&l=33 ...
5 years, 5 months ago (2015-06-25 16:01:43 UTC) #10
sivag
@Sievers, The StreamTextureCreation flow is completed as discussed. I tested it with html5 video, it ...
5 years, 5 months ago (2015-06-26 17:52:36 UTC) #11
no sievers
+reveman to take over since i'll be OOO for two weeks You can also consider ...
5 years, 5 months ago (2015-06-26 20:03:51 UTC) #13
sivag
@reveman, ptal..
5 years, 5 months ago (2015-06-29 13:39:26 UTC) #16
reveman
https://codereview.chromium.org/1129943006/diff/240001/content/browser/gpu/browser_gpu_channel_host_factory.h File content/browser/gpu/browser_gpu_channel_host_factory.h (right): https://codereview.chromium.org/1129943006/diff/240001/content/browser/gpu/browser_gpu_channel_host_factory.h#newcode65 content/browser/gpu/browser_gpu_channel_host_factory.h:65: why blank line here but not below? https://codereview.chromium.org/1129943006/diff/240001/content/common/gpu/gpu_messages.h File ...
5 years, 5 months ago (2015-06-29 16:02:01 UTC) #17
sivag
ptal.. https://codereview.chromium.org/1129943006/diff/240001/content/browser/gpu/browser_gpu_channel_host_factory.h File content/browser/gpu/browser_gpu_channel_host_factory.h (right): https://codereview.chromium.org/1129943006/diff/240001/content/browser/gpu/browser_gpu_channel_host_factory.h#newcode65 content/browser/gpu/browser_gpu_channel_host_factory.h:65: On 2015/06/29 16:02:00, reveman wrote: > why blank ...
5 years, 5 months ago (2015-06-30 11:17:18 UTC) #19
piman
So, I don't see how the browser UI thread is involved. The renderer message is ...
5 years, 5 months ago (2015-06-30 23:04:20 UTC) #20
sivag
On 2015/06/30 23:04:20, piman (Very slow to review) wrote: > So, I don't see how ...
5 years, 5 months ago (2015-07-01 17:05:13 UTC) #21
piman
On Wed, Jul 1, 2015 at 10:05 AM, <siva.gunturi@samsung.com> wrote: > On 2015/06/30 23:04:20, piman ...
5 years, 5 months ago (2015-07-01 20:22:43 UTC) #22
sivag
> I see, I guess there's a follow-up to that, not clear from this CL. ...
5 years, 5 months ago (2015-07-02 10:18:43 UTC) #23
piman
On 2015/07/02 10:18:43, sivag wrote: > > I see, I guess there's a follow-up to ...
5 years, 5 months ago (2015-07-08 23:30:11 UTC) #24
sivag
On 2015/07/08 23:30:11, piman (Very slow to review) wrote: > On 2015/07/02 10:18:43, sivag wrote: ...
5 years, 5 months ago (2015-07-09 14:10:50 UTC) #25
no sievers
I think eventually we want to end up with something like this (without saying anything ...
5 years, 5 months ago (2015-07-13 22:04:56 UTC) #26
sivag
ptal.. https://codereview.chromium.org/1129943006/diff/260001/content/common/gpu/client/gpu_channel_host.h File content/common/gpu/client/gpu_channel_host.h (right): https://codereview.chromium.org/1129943006/diff/260001/content/common/gpu/client/gpu_channel_host.h#newcode95 content/common/gpu/client/gpu_channel_host.h:95: int32 stream_id) = 0; On 2015/06/29 16:02:01, reveman ...
5 years, 5 months ago (2015-07-16 14:24:58 UTC) #27
sivag
Apologies, this is having some autogen issue, I will fix it and let you know.
5 years, 5 months ago (2015-07-16 15:06:48 UTC) #28
sivag
ptal.. Some autogen files are heavily formatted after running the script.This is probably due to ...
5 years, 5 months ago (2015-07-17 14:01:26 UTC) #29
no sievers
https://codereview.chromium.org/1129943006/diff/440001/content/common/gpu/client/command_buffer_proxy_impl.cc File content/common/gpu/client/command_buffer_proxy_impl.cc (right): https://codereview.chromium.org/1129943006/diff/440001/content/common/gpu/client/command_buffer_proxy_impl.cc#newcode439 content/common/gpu/client/command_buffer_proxy_impl.cc:439: uint32 CommandBufferProxyImpl::CreateStreamTexture(uint32 texture_id) { Do we need to keep ...
5 years, 5 months ago (2015-07-20 23:33:08 UTC) #30
sivag
On 2015/07/20 23:33:08, sievers wrote: > https://codereview.chromium.org/1129943006/diff/440001/content/common/gpu/client/command_buffer_proxy_impl.cc > File content/common/gpu/client/command_buffer_proxy_impl.cc (right): > > https://codereview.chromium.org/1129943006/diff/440001/content/common/gpu/client/command_buffer_proxy_impl.cc#newcode439 > ...
5 years, 5 months ago (2015-07-23 14:36:32 UTC) #31
sivag
On 2015/07/20 23:33:08, sievers wrote: > https://codereview.chromium.org/1129943006/diff/440001/content/common/gpu/client/command_buffer_proxy_impl.cc > File content/common/gpu/client/command_buffer_proxy_impl.cc (right): > > https://codereview.chromium.org/1129943006/diff/440001/content/common/gpu/client/command_buffer_proxy_impl.cc#newcode439 > ...
5 years, 4 months ago (2015-08-03 15:13:41 UTC) #32
no sievers
On 2015/08/03 15:13:41, sivag wrote: > On 2015/07/20 23:33:08, sievers wrote: > > > https://codereview.chromium.org/1129943006/diff/440001/content/common/gpu/client/command_buffer_proxy_impl.cc ...
5 years, 4 months ago (2015-08-03 19:18:50 UTC) #33
sivag
5 years, 4 months ago (2015-08-04 07:17:40 UTC) #34
On 2015/08/03 19:18:50, sievers wrote:
> On 2015/08/03 15:13:41, sivag wrote:
> > On 2015/07/20 23:33:08, sievers wrote:
> > >
> >
>
https://codereview.chromium.org/1129943006/diff/440001/content/common/gpu/cli...
> > > File content/common/gpu/client/command_buffer_proxy_impl.cc (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/1129943006/diff/440001/content/common/gpu/cli...
> > > content/common/gpu/client/command_buffer_proxy_impl.cc:439: uint32
> > > CommandBufferProxyImpl::CreateStreamTexture(uint32 texture_id) {
> > > Do we need to keep around the old version or can it all go away now?
> > > 
> > >
> >
>
https://codereview.chromium.org/1129943006/diff/440001/content/common/gpu/cli...
> > > content/common/gpu/client/command_buffer_proxy_impl.cc:455: uint32
> > > CommandBufferProxyImpl::CreateStreamTextureImage(int32 image_id) {
> > > It would be nice if we could return the image_id here instead of passing
it
> > in,
> > > so that it works the same as CreateImage().
> > > 
> > > Maybe we can make |stream_id| internal to StreamTextureHost somehow,
> otherwise
> > > it's confusing to have two ids in the API.
> > > 
> > > We can probably do it by just shuffling code around a bit in between
> > > StreamTextureFactory/Proxy and StreamTextureHost (EstablishPeer and
SetSize
> > > would go through StreamTextureProxy instead, so outside of proxy/host
nobody
> > > needs to know the stream/route id).
> > 
> > hi sievers, any views on how to go about this?
> > please see my comments in #31.
> 
> Agreed with all the comments. The direction of API-1 seems easiest.
> I was mainly worried about the two ids leaking into the caller (as in
> WebMediaPlayer or so), but actually WMP might not have to know about either
> image_ or stream_id - it really only needs the texture_id (we might have to
> slightly reroute some calls through factory or proxy).
> I think we should also rename stream_id to route_id.

I will take this up in a seperate patch. Logged a new issue for the same
http://code.google.com/p/chromium/issues/detail?id=516585.

Powered by Google App Engine
This is Rietveld 408576698