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

Issue 1885463003: Remove WebGraphicsContext3DCommandBufferImpl::IsCommandBufferContextLost (Closed)

Created:
4 years, 8 months ago by danakj
Modified:
4 years, 8 months ago
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, chrishtr, dcheng, Ken Russell (switch to Gerrit), piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove WebGraphicsContext3DCommandBufferImpl::IsCommandBufferContextLost This methods does the same things as GetGraphicsResetStatusKHR() on the GLES2Implementation. The first thing it does is: if (host_.get() && host_->IsLost()) return true; Here the |host_| is a GpuChannelHost. GLES2Implementation will call GpuControl::IsGpuChannelLost(), where the GpuControl is given to GLES2Implementation from WebGraphicsContext3DCommandBufferImpl as the command_buffer_, which is a CommandBufferProxyImpl. The CommandBufferProxyImpl::IsGpuChannelLost() method calls IsLost() on its |channel_| which is the same pointer as the |host_| above. The second thing it does is: gpu::CommandBuffer::State state = command_buffer_->GetLastState(); return gpu::error::IsError(state.error); Here the |command_buffer_| is the CommandBufferProxyImpl. GLES2Implementation will call CmdBufferHelper::IsContextLost(). The CmdBufferHelper is a GLES2CmdHelper created by WebGraphicsContext3DCommandBufferImpl that points to the same |command_buffer_|. The CmdBufferHelper::IsContextLost() method returns "error::IsError(command_buffer()->GetLastError())" which is similar to the original code. The GetLastError() methed is used instead of "GetLastState().error". Fortunately that method is implemented as "return last_state_.error" making it the exact same. R=piman@chromium.org BUG=584497 Committed: https://crrev.com/b9e68d8e121d5d4c5b93777919c767aa13da7256 Cr-Commit-Position: refs/heads/master@{#387502}

Patch Set 1 #

Patch Set 2 : sharelost: move #

Patch Set 3 : sharelost: include #

Patch Set 4 : sharelost: woops #

Patch Set 5 : sharelost: useinterface #

Patch Set 6 : sharelost: blinklife #

Patch Set 7 : sharelost: adderrors #

Patch Set 8 : sharelost: moreerror #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -50 lines) Patch
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc View 1 2 chunks +1 line, -15 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 3 4 5 6 7 3 chunks +41 lines, -30 lines 0 comments Download

Messages

Total messages: 39 (20 generated)
danakj
4 years, 8 months ago (2016-04-12 22:38:25 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1885463003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1885463003/1
4 years, 8 months ago (2016-04-12 22:39:33 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-13 00:02:25 UTC) #8
piman
lgtm++
4 years, 8 months ago (2016-04-14 01:35:10 UTC) #9
Ken Russell (switch to Gerrit)
Thanks for your continued cleanups in this area. LGTM
4 years, 8 months ago (2016-04-14 01:43:27 UTC) #11
danakj
PTAL I've moved the check for lost context to RendererBlinkPlatformImpl. And I've moved the null ...
4 years, 8 months ago (2016-04-14 20:22:13 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1885463003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1885463003/20001
4 years, 8 months ago (2016-04-14 20:22:42 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/50712) cast_shell_linux on ...
4 years, 8 months ago (2016-04-14 20:32:54 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1885463003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1885463003/40001
4 years, 8 months ago (2016-04-14 20:35:10 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1885463003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1885463003/60001
4 years, 8 months ago (2016-04-14 20:36:27 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_dbg/builds/51041) android_chromium_gn_compile_rel on ...
4 years, 8 months ago (2016-04-14 20:40:00 UTC) #23
danakj
On 2016/04/14 20:22:13, danakj wrote: > PTAL > > I've moved the check for lost ...
4 years, 8 months ago (2016-04-14 20:50:53 UTC) #24
piman
lgtm
4 years, 8 months ago (2016-04-14 22:07:50 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1885463003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1885463003/140001
4 years, 8 months ago (2016-04-14 22:48:30 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1885463003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1885463003/140001
4 years, 8 months ago (2016-04-14 22:48:41 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_optional_gpu_tests_rel on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) win_optional_gpu_tests_rel on ...
4 years, 8 months ago (2016-04-15 00:50:18 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1885463003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1885463003/140001
4 years, 8 months ago (2016-04-15 00:54:57 UTC) #35
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 8 months ago (2016-04-15 01:00:41 UTC) #37
commit-bot: I haz the power
4 years, 8 months ago (2016-04-15 01:02:22 UTC) #39
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b9e68d8e121d5d4c5b93777919c767aa13da7256
Cr-Commit-Position: refs/heads/master@{#387502}

Powered by Google App Engine
This is Rietveld 408576698