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

Issue 536353002: gpu: Add CopyTexImage function to GLImage API. (Closed)

Created:
6 years, 3 months ago by reveman
Modified:
6 years, 3 months ago
Reviewers:
no sievers, piman
CC:
chromium-reviews, rjkroege, ozone-reviews_chromium.org, jam, darin-cc_chromium.org, piman+watch_chromium.org, kalyank
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

gpu: Add CopyTexImage function to GLImage API. This provides a mechanism for GLImage implementations to optimize blit image to texture. In the case of GLImageMemory, this allows us to upload directly to the destination texture instead of first uploading to a temporary texture copying pixels from this texture to the destination texture. BUG=374962 Committed: https://crrev.com/ce8fbe800ffe1478c43459e2e9341ceb4b7a7001 Cr-Commit-Position: refs/heads/master@{#293404}

Patch Set 1 #

Total comments: 4

Patch Set 2 : address review feedback #

Total comments: 3

Patch Set 3 : keep support for binding images to multiple textures #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -25 lines) Patch
M content/common/gpu/stream_texture_android.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/stream_texture_android.cc View 1 chunk +5 lines, -0 lines 2 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 chunk +11 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/stream_texture_manager_in_process_android.cc View 2 chunks +6 lines, -0 lines 1 comment Download
M gpu/command_buffer/service/texture_definition.cc View 2 chunks +6 lines, -0 lines 1 comment Download
M ui/gl/gl_image.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/gl/gl_image.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gl/gl_image_egl.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_image_egl.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gl/gl_image_glx.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_image_glx.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gl/gl_image_io_surface.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_image_io_surface.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gl/gl_image_memory.h View 2 2 chunks +8 lines, -2 lines 0 comments Download
M ui/gl/gl_image_memory.cc View 1 2 4 chunks +79 lines, -22 lines 0 comments Download
M ui/gl/gl_image_stub.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_image_stub.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gl/gl_image_surface_texture.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_image_surface_texture.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
reveman
6 years, 3 months ago (2014-09-04 17:05:39 UTC) #2
piman
https://codereview.chromium.org/536353002/diff/1/ui/gl/gl_image_memory.cc File ui/gl/gl_image_memory.cc (right): https://codereview.chromium.org/536353002/diff/1/ui/gl/gl_image_memory.cc#newcode137 ui/gl/gl_image_memory.cc:137: need_do_bind_tex_image_ = false; nit: move this to DoBindTexImage and ...
6 years, 3 months ago (2014-09-04 17:32:54 UTC) #3
reveman
FYI, my plan is to make some minor modifications to the one-copy rasterizer in cc ...
6 years, 3 months ago (2014-09-04 18:57:43 UTC) #4
piman
https://codereview.chromium.org/536353002/diff/20001/ui/gl/gl_image_memory.cc File ui/gl/gl_image_memory.cc (right): https://codereview.chromium.org/536353002/diff/20001/ui/gl/gl_image_memory.cc#newcode128 ui/gl/gl_image_memory.cc:128: DCHECK(!target_); I don't think we (currently) raise an error ...
6 years, 3 months ago (2014-09-04 19:11:10 UTC) #5
reveman
PTAL https://codereview.chromium.org/536353002/diff/20001/ui/gl/gl_image_memory.cc File ui/gl/gl_image_memory.cc (right): https://codereview.chromium.org/536353002/diff/20001/ui/gl/gl_image_memory.cc#newcode128 ui/gl/gl_image_memory.cc:128: DCHECK(!target_); On 2014/09/04 19:11:10, piman (OOO) wrote: > ...
6 years, 3 months ago (2014-09-04 20:12:44 UTC) #6
piman
OK, LGTM
6 years, 3 months ago (2014-09-04 20:58:05 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/536353002/40001
6 years, 3 months ago (2014-09-04 21:07:16 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 6c6b5970fa2d19b7a7d10e0f2586ce75c1ecd78a
6 years, 3 months ago (2014-09-05 02:21:06 UTC) #10
no sievers
https://codereview.chromium.org/536353002/diff/40001/content/common/gpu/stream_texture_android.cc File content/common/gpu/stream_texture_android.cc (right): https://codereview.chromium.org/536353002/diff/40001/content/common/gpu/stream_texture_android.cc#newcode206 content/common/gpu/stream_texture_android.cc:206: NOTREACHED(); Don't we trigger this from WebMediaPlayerAndroid::copyVideoTextureToPlatformTexture()? https://codereview.chromium.org/536353002/diff/40001/gpu/command_buffer/service/stream_texture_manager_in_process_android.cc File ...
6 years, 3 months ago (2014-09-05 21:06:09 UTC) #12
reveman
https://codereview.chromium.org/536353002/diff/40001/content/common/gpu/stream_texture_android.cc File content/common/gpu/stream_texture_android.cc (right): https://codereview.chromium.org/536353002/diff/40001/content/common/gpu/stream_texture_android.cc#newcode206 content/common/gpu/stream_texture_android.cc:206: NOTREACHED(); On 2014/09/05 21:06:09, sievers wrote: > Don't we ...
6 years, 3 months ago (2014-09-06 04:02:57 UTC) #13
no sievers
https://codereview.chromium.org/536353002/diff/40001/gpu/command_buffer/service/texture_definition.cc File gpu/command_buffer/service/texture_definition.cc (right): https://codereview.chromium.org/536353002/diff/40001/gpu/command_buffer/service/texture_definition.cc#newcode88 gpu/command_buffer/service/texture_definition.cc:88: NOTREACHED(); This one is called too since it's used ...
6 years, 3 months ago (2014-09-08 17:19:01 UTC) #14
no sievers
On 2014/09/06 04:02:57, reveman wrote: > https://codereview.chromium.org/536353002/diff/40001/content/common/gpu/stream_texture_android.cc > File content/common/gpu/stream_texture_android.cc (right): > > https://codereview.chromium.org/536353002/diff/40001/content/common/gpu/stream_texture_android.cc#newcode206 > ...
6 years, 3 months ago (2014-09-08 17:22:44 UTC) #15
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:35:42 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ce8fbe800ffe1478c43459e2e9341ceb4b7a7001
Cr-Commit-Position: refs/heads/master@{#293404}

Powered by Google App Engine
This is Rietveld 408576698