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

Issue 9694015: Ensure that PresentThreadPool is initialized on the UI thread. (Closed)

Created:
8 years, 9 months ago by apatrick_chromium
Modified:
8 years, 9 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Ensure that PresentThreadPool is initialized on the UI thread. It was being initialized lazily on the IO thread when the first AsyncPresentAndAcknowledge came in. Also, the AcceleratedSurface::presenter_ variable was mutable, initialized on the IO thread and used on the IO and UI thread with no lock. I think this allowed the UI thread to attempt to use a partially initialized AcceleratedPresenter. I made presenter_ immutable and ensured that the AcceleratedPresenter is instead always created on the UI thread and not visible in partially constructed form on the IO thread. I had to change the timing of the Direct3D device initialization so that it is not created if it is not needed because that can crash windows bots. BUG=117453 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=126741

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -34 lines) Patch
M ui/gfx/surface/accelerated_surface_win.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M ui/gfx/surface/accelerated_surface_win.cc View 1 2 3 10 chunks +39 lines, -33 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
apatrick_chromium
Hi, I would have asked kbr@ to review this but he's OOO. Can you take ...
8 years, 9 months ago (2012-03-12 23:21:15 UTC) #1
stuartmorgan
On 2012/03/12 23:21:15, apatrick_chromium wrote: > Hi, I would have asked kbr@ to review this ...
8 years, 9 months ago (2012-03-13 08:45:57 UTC) #2
apatrick_chromium
+vangelis, can you take a look?
8 years, 9 months ago (2012-03-13 18:05:13 UTC) #3
vangelis
After some offline discussion with apatrick, lgtm https://chromiumcodereview.appspot.com/9694015/diff/3002/ui/gfx/surface/accelerated_surface_win.cc File ui/gfx/surface/accelerated_surface_win.cc (right): https://chromiumcodereview.appspot.com/9694015/diff/3002/ui/gfx/surface/accelerated_surface_win.cc#newcode98 ui/gfx/surface/accelerated_surface_win.cc:98: // Initialize ...
8 years, 9 months ago (2012-03-13 22:09:36 UTC) #4
apatrick_chromium
https://chromiumcodereview.appspot.com/9694015/diff/3002/ui/gfx/surface/accelerated_surface_win.cc File ui/gfx/surface/accelerated_surface_win.cc (right): https://chromiumcodereview.appspot.com/9694015/diff/3002/ui/gfx/surface/accelerated_surface_win.cc#newcode98 ui/gfx/surface/accelerated_surface_win.cc:98: // Initialize the device lazily since calling Direct3D can ...
8 years, 9 months ago (2012-03-13 22:22:02 UTC) #5
apatrick_chromium
stuartmorgan, is it okay if I land this? I need LGTM from an owner.
8 years, 9 months ago (2012-03-13 22:29:21 UTC) #6
stuartmorgan
Rubber-stamp LGTM for OWNERS
8 years, 9 months ago (2012-03-14 05:44:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/apatrick@chromium.org/9694015/7
8 years, 9 months ago (2012-03-14 18:32:25 UTC) #8
commit-bot: I haz the power
8 years, 9 months ago (2012-03-14 21:31:54 UTC) #9
Change committed as 126741

Powered by Google App Engine
This is Rietveld 408576698