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

Issue 7685001: Don't call RenderView directly if USE_THREADED_COMPOSITOR is set. (Closed)

Created:
9 years, 4 months ago by lain Merrick
Modified:
9 years, 4 months ago
Reviewers:
jamesr, nduca
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium
Visibility:
Public.

Description

Don't call RenderView directly if USE_THREADED_COMPOSITOR is set. These calls won't be thread-safe in the new compositor model, and they shouldn't be needed as the compositor will manage its own SwapBuffer calls. (Currently WebKit can do it at arbitrary times, so we need callbacks to keep track). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97534

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : Updated description, no code change #

Total comments: 2

Patch Set 4 : Added missing #ifdef #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -3 lines) Patch
M content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc View 1 2 3 7 chunks +14 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
nduca
LGTM
9 years, 4 months ago (2011-08-19 18:25:17 UTC) #1
lain Merrick
Hi James, could you please do an OWNERS review of this CL?
9 years, 4 months ago (2011-08-19 20:50:13 UTC) #2
jamesr
LGTM, although you missed on guard so this won't compile if WTF_USE_THREADED_COMPOSITING is true. http://codereview.chromium.org/7685001/diff/5002/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc ...
9 years, 4 months ago (2011-08-19 21:31:10 UTC) #3
lain Merrick
9 years, 4 months ago (2011-08-19 21:33:26 UTC) #4
http://codereview.chromium.org/7685001/diff/5002/content/renderer/gpu/webgrap...
File content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc (right):

http://codereview.chromium.org/7685001/diff/5002/content/renderer/gpu/webgrap...
content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc:41:
web_view_(NULL),
On 2011/08/19 21:31:10, jamesr wrote:
> You need to guard this reference to web_view_ as well, don't you?

Oops, good catch. I tried compiling with use_threaded_compositor=1, but I
thought the error I hit was in another file. I'll check again more carefully.

Powered by Google App Engine
This is Rietveld 408576698