DescriptionCollapse the initialize methods in WebGraphicsContext3DCommandBufferImpl
There are many such methods that we call through when initializing a
WebGraphicsContext3DCommandBufferImpl, which means when moving things
out of the class I have to add plumbing through all these methods. I
don't intend to replicate this method structure in when moving init
out to ContextProviderCommandBuffer either really.
So collapse all the initialization down to a single helper method
MaybeInitializeGL.
Also remove the "if initialized" check, as BindToCurrentThread()
already does that in ContextProviderCommandBuffer.
Also also make ContextProviderCommandBuffer destroy the
WebGraphicsContext3DCommandBufferImpl if initialization fails in
BindToCurrentThread(). This means we don't need the "Destroy()"
step in WebGraphicsContext3DCommandBufferImpl when it fails to
initialize since it's just going to be deleted anyways. And lets
us move the "if initialize failed" check out to BindToCurrentThread().
R=piman@chromium.org, sievers
BUG=584497
Committed: https://crrev.com/ea18f360da40ebcd2ec516d49e9b0918123eee1b
Cr-Commit-Position: refs/heads/master@{#391125}
Patch Set 1 : collapse: . #
Total comments: 6
Patch Set 2 : collapse: . #
Total comments: 2
Patch Set 3 : collapse: lock #Patch Set 4 : collapse: rebase #
Depends on Patchset: Messages
Total messages: 21 (10 generated)
|