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

Issue 7838008: Revert 99648 - Reland 98392 - Split WebGraphicsContext3DCommandBufferImpl::initialize() into two ... (Closed)

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

Description

Revert 99648 - Reland 98392 - Split WebGraphicsContext3DCommandBufferImpl::initialize() into two stages. After the context is created, the remaining calls should be done on the compositor thread. This CL adds a MaybeInitializeGL() method, which we run on each call to makeContextCurrent(). Added asserts to RendererGLContext to check that it's always used on the same thread. Original review URL: http://codereview.chromium.org/7713015 Reverted due to buildbot errors: http://codereview.chromium.org/7745042 Review URL: http://codereview.chromium.org/7828046 TBR=husky@google.com Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99825

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -103 lines) Patch
M content/renderer/gpu/renderer_gl_context.cc View 3 chunks +0 lines, -3 lines 0 comments Download
M content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h View 4 chunks +0 lines, -17 lines 0 comments Download
M content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc View 7 chunks +58 lines, -83 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
jamesr
9 years, 3 months ago (2011-09-06 21:26:31 UTC) #1
lain Merrick
9 years, 3 months ago (2011-09-07 10:18:55 UTC) #2
LGTM

Just initializing in isContextLost would work around this, I guess. Or returning
false if we're not initialized yet.

If we try this approach yet again, how can we prevent similar problems in
future? Would we need to MaybeInitializeGL in *all* the WebGraphicsContext3D
entrypoints?

Powered by Google App Engine
This is Rietveld 408576698