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

Issue 1936503003: Collapse the initialize methods in WebGraphicsContext3DCommandBufferImpl (Closed)

Created:
4 years, 7 months ago by danakj
Modified:
4 years, 7 months ago
Reviewers:
no sievers, piman
CC:
chromium-reviews, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, dcheng, Ken Russell (switch to Gerrit)
Base URL:
https://chromium.googlesource.com/chromium/src.git@attributes
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Collapse 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -135 lines) Patch
M content/browser/compositor/gpu_process_transport_factory.cc View 4 chunks +21 lines, -0 lines 0 comments Download
M content/common/gpu/client/context_provider_command_buffer.h View 2 chunks +1 line, -2 lines 0 comments Download
M content/common/gpu/client/context_provider_command_buffer.cc View 1 2 6 chunks +15 lines, -10 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h View 1 2 3 3 chunks +1 line, -30 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc View 1 2 3 6 chunks +17 lines, -93 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 21 (10 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936503003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936503003/40001
4 years, 7 months ago (2016-04-30 01:48:28 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936503003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936503003/60001
4 years, 7 months ago (2016-04-30 01:49:57 UTC) #7
danakj
https://codereview.chromium.org/1936503003/diff/60001/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc File content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc (left): https://codereview.chromium.org/1936503003/diff/60001/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc#oldcode79 content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc:79: // TODO(vadimt): Remove ScopedTracker below once crbug.com/125248 is fixed. ...
4 years, 7 months ago (2016-04-30 01:56:40 UTC) #8
piman
LGTM except for 1 thing https://codereview.chromium.org/1936503003/diff/80001/content/common/gpu/client/context_provider_command_buffer.cc File content/common/gpu/client/context_provider_command_buffer.cc (left): https://codereview.chromium.org/1936503003/diff/80001/content/common/gpu/client/context_provider_command_buffer.cc#oldcode82 content/common/gpu/client/context_provider_command_buffer.cc:82: context3d_->GetCommandBufferProxy()->SetLock(nullptr); See buildbots. If ...
4 years, 7 months ago (2016-05-02 20:45:17 UTC) #9
danakj
https://codereview.chromium.org/1936503003/diff/80001/content/common/gpu/client/context_provider_command_buffer.cc File content/common/gpu/client/context_provider_command_buffer.cc (left): https://codereview.chromium.org/1936503003/diff/80001/content/common/gpu/client/context_provider_command_buffer.cc#oldcode82 content/common/gpu/client/context_provider_command_buffer.cc:82: context3d_->GetCommandBufferProxy()->SetLock(nullptr); On 2016/05/02 20:45:17, piman wrote: > See buildbots. ...
4 years, 7 months ago (2016-05-02 21:11:36 UTC) #10
piman
lgtm
4 years, 7 months ago (2016-05-02 22:08:11 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936503003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936503003/120001
4 years, 7 months ago (2016-05-02 23:11:21 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-03 00:20:13 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936503003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936503003/120001
4 years, 7 months ago (2016-05-03 00:34:13 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:120001)
4 years, 7 months ago (2016-05-03 00:40:39 UTC) #19
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 00:42:45 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ea18f360da40ebcd2ec516d49e9b0918123eee1b
Cr-Commit-Position: refs/heads/master@{#391125}

Powered by Google App Engine
This is Rietveld 408576698