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

Issue 10984004: Use a singleton 1x1 offscreen surface for all TextureImageTransportSurface instances. (Closed)

Created:
8 years, 3 months ago by hshi1
Modified:
8 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, jonathan.backer
Visibility:
Public.

Description

Use a singleton 1x1 offscreen surface for all TextureImageTransportSurface instances. This is to reduce the number of dummy offscreen surfaces created for the purpose of making TextureImageTransportSurface current. BUG=NONE TEST=manually on daisy; verified that the dummy surface only gets allocated when first needed and destroyed when the last instance of TextureImageTrasnportSurface is destroyed. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158512

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add the 1x1 surface into GpuChannelManager. #

Total comments: 4

Patch Set 3 : Address Antoine's comments. #

Patch Set 4 : Minor polish - consistently use the get() accessor. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -8 lines) Patch
M content/common/gpu/gpu_channel_manager.h View 1 2 3 chunks +4 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.cc View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/gpu/texture_image_transport_surface.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/texture_image_transport_surface.cc View 1 2 3 3 chunks +3 lines, -5 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
hshi1
Please take a look. I'm not sure if it is the most elegant way to ...
8 years, 3 months ago (2012-09-24 21:10:55 UTC) #1
piman
The way I would approach the problem is by adding a 1x1 offscreen surface into ...
8 years, 3 months ago (2012-09-24 21:18:35 UTC) #2
apatrick_chromium
When I last tried something like this, I ran into an issue where, once a ...
8 years, 3 months ago (2012-09-24 21:26:42 UTC) #3
hshi1
http://codereview.chromium.org/10984004/diff/1/content/common/gpu/texture_image_transport_surface.cc File content/common/gpu/texture_image_transport_surface.cc (right): http://codereview.chromium.org/10984004/diff/1/content/common/gpu/texture_image_transport_surface.cc#newcode25 content/common/gpu/texture_image_transport_surface.cc:25: scoped_refptr<gfx::GLSurface> TextureImageTransportSurface::surface_; On 2012/09/24 21:18:36, piman wrote: > We ...
8 years, 3 months ago (2012-09-24 21:38:40 UTC) #4
hshi1
On 2012/09/24 21:26:42, apatrick_chromium wrote: > When I last tried something like this, I ran ...
8 years, 3 months ago (2012-09-24 21:44:16 UTC) #5
apatrick_chromium
You could test to see if it is still the case. This was over a ...
8 years, 3 months ago (2012-09-24 21:51:22 UTC) #6
hshi1
How frequently (or rarely) did you run into the original problem? I'm not seeing any ...
8 years, 3 months ago (2012-09-24 22:14:08 UTC) #7
apatrick_chromium
It happened 100% for the affected driver. I don't remember the version. I only saw ...
8 years, 3 months ago (2012-09-24 22:29:10 UTC) #8
hshi1
On 2012/09/24 22:29:10, apatrick_chromium wrote: > It happened 100% for the affected driver. I don't ...
8 years, 3 months ago (2012-09-24 23:45:19 UTC) #9
apatrick_chromium
Those 4 tests were failing before. Without any evidence that there is still an issue, ...
8 years, 3 months ago (2012-09-25 00:04:06 UTC) #10
hshi1
Thanks. Piman@ - I'm still not sure how to handle the GpuCommandBufferStub::OnInitialize() as you mentioned ...
8 years, 3 months ago (2012-09-25 00:06:27 UTC) #11
hshi1
Thanks. Piman@ - I'm still not sure how to handle the GpuCommandBufferStub::OnInitialize() as you mentioned ...
8 years, 3 months ago (2012-09-25 00:06:27 UTC) #12
piman
Also, because you haven't changed GpuCommandBufferStub to use this too, the gpu bots don't give ...
8 years, 3 months ago (2012-09-25 00:12:18 UTC) #13
hshi1
http://codereview.chromium.org/10984004/diff/11001/content/common/gpu/gpu_channel_manager.cc File content/common/gpu/gpu_channel_manager.cc (right): http://codereview.chromium.org/10984004/diff/11001/content/common/gpu/gpu_channel_manager.cc#newcode191 content/common/gpu/gpu_channel_manager.cc:191: if (make_current_surface_->HasOneRef()) { On 2012/09/25 00:12:18, piman wrote: > ...
8 years, 3 months ago (2012-09-25 00:26:33 UTC) #14
piman
LGTM, assuming it passes the gpu bots. Thanks!
8 years, 3 months ago (2012-09-25 00:33:07 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/10984004/10005
8 years, 3 months ago (2012-09-25 01:13:39 UTC) #16
commit-bot: I haz the power
8 years, 3 months ago (2012-09-25 03:15:04 UTC) #17
Change committed as 158512

Powered by Google App Engine
This is Rietveld 408576698