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

Issue 954053002: gpu: Avoid detaching images with glTexSubImage2D (Closed)

Created:
5 years, 10 months ago by boliu
Modified:
5 years, 10 months ago
Reviewers:
reveman, no sievers
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu: Avoid detaching images with glTexSubImage2D Avoid optimization of using glTexImage2D over glTexSubImage2D when there are EGLImages attached to the texture, as glTexImage2D will orphan the EGLImage. Orphaning and reattachment is probably more expensive than the win of using glTexImage2D over glTexSubImage2D. BUG=460344 Committed: https://crrev.com/45dc77a1ea86f69cce11e72bf5782310b5cb084b Cr-Commit-Position: refs/heads/master@{#318141}

Patch Set 1 #

Total comments: 1

Patch Set 2 : review and fix test (no new test yet) #

Patch Set 3 : new tests #

Total comments: 5

Patch Set 4 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -52 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 7 chunks +15 lines, -16 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_mock.h View 1 1 chunk +2 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc View 1 2 3 4 chunks +102 lines, -27 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/texture_manager_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
boliu
ptal
5 years, 10 months ago (2015-02-25 00:18:03 UTC) #2
no sievers
+reveman also I think this might also fix a theoretical bug in 0-copy where we ...
5 years, 10 months ago (2015-02-25 01:23:27 UTC) #4
no sievers
Oh can you add a unit test? GLES2CmdDecoderTest*, something of the sort. I'm pretty sure ...
5 years, 10 months ago (2015-02-25 01:27:14 UTC) #5
boliu
On 2015/02/25 01:27:14, sievers wrote: > Oh can you add a unit test? GLES2CmdDecoderTest*, something ...
5 years, 10 months ago (2015-02-25 02:18:34 UTC) #6
reveman
lgtm % sievers review
5 years, 10 months ago (2015-02-25 03:48:53 UTC) #7
boliu
PS2 address review comments, and fixes the existing orphan unit test. No new tests yet. ...
5 years, 10 months ago (2015-02-25 18:37:32 UTC) #8
boliu
On 2015/02/25 01:27:14, sievers wrote: > Oh can you add a unit test? GLES2CmdDecoderTest*, something ...
5 years, 10 months ago (2015-02-25 19:52:38 UTC) #9
no sievers
On 2015/02/25 19:52:38, boliu wrote: > On 2015/02/25 01:27:14, sievers wrote: > > Oh can ...
5 years, 10 months ago (2015-02-25 20:50:31 UTC) #10
boliu
new tests added in PS3, ptal
5 years, 10 months ago (2015-02-25 21:34:02 UTC) #11
no sievers
lgtm https://codereview.chromium.org/954053002/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc File gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc (right): https://codereview.chromium.org/954053002/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc#newcode2235 gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc:2235: ASSERT_FALSE( nit: put comment "this specifically tests that ...
5 years, 10 months ago (2015-02-25 21:52:49 UTC) #12
boliu
all done Factored out DoBindTexImage2DCHROMIUM and also updated a few other call sites
5 years, 10 months ago (2015-02-25 22:18:50 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/954053002/60001
5 years, 10 months ago (2015-02-25 22:20:41 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 10 months ago (2015-02-25 23:26:48 UTC) #17
commit-bot: I haz the power
5 years, 10 months ago (2015-02-25 23:28:10 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/45dc77a1ea86f69cce11e72bf5782310b5cb084b
Cr-Commit-Position: refs/heads/master@{#318141}

Powered by Google App Engine
This is Rietveld 408576698