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

Issue 470973002: gpu: Remove WebGraphicsContext3D::makeContextCurrent() (Closed)

Created:
6 years, 4 months ago by dshwang
Modified:
6 years, 3 months ago
CC:
chromium-reviews, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, danakj+watch_chromium.org, Stephen White
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

gpu: Remove WebGraphicsContext3D::makeContextCurrent() We don't need to call it before using GL context anymore. BUG=404121 Committed: https://crrev.com/3ed758c9a46ec8579cc3a5cb2955161a8a322f0b Cr-Commit-Position: refs/heads/master@{#292592}

Patch Set 1 #

Patch Set 2 : Remove WebGraphicsContext3D::makeContextCurrent() #

Total comments: 9

Patch Set 3 : Use scoped_ptr and remove unrelated changes. #

Total comments: 4

Patch Set 4 : Move GLES2Initializer to GrContextForWebGraphicsContext3D, and rename to InitializeOnCurrentThread() #

Total comments: 1

Patch Set 5 : make the interaction between the if and the #if readable #

Total comments: 1

Patch Set 6 : build fix in unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -109 lines) Patch
M cc/test/test_context_provider.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/android/in_process/synchronous_compositor_factory_impl.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_factory_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/gpu/gpu_ipc_browsertests.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/image_transport_factory_android.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/client/context_provider_command_buffer.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/client/gl_helper_benchmark.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/client/gl_helper_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/client/gpu_in_process_context_tests.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h View 1 2 3 1 chunk +3 lines, -6 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc View 1 2 3 4 chunks +1 line, -28 lines 0 comments Download
M content/renderer/android/synchronous_compositor_factory.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 4 1 chunk +24 lines, -15 lines 0 comments Download
M content/shell/renderer/test_runner/TestPlugin.cpp View 1 1 chunk +0 lines, -4 lines 0 comments Download
M webkit/common/gpu/context_provider_in_process.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M webkit/common/gpu/grcontext_for_webgraphicscontext3d.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc View 1 2 3 1 chunk +28 lines, -6 lines 0 comments Download
M webkit/common/gpu/webgraphicscontext3d_impl.h View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M webkit/common/gpu/webgraphicscontext3d_impl.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc View 1 2 3 4 chunks +2 lines, -29 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
dshwang
Could you review? There are clients of RenderThreadImpl::SharedMainThreadContextProvider() which expect the context 3D already makes ...
6 years, 4 months ago (2014-08-14 12:37:26 UTC) #1
danakj
Hm.. I don't think I agree with the change. My understanding is that our context ...
6 years, 4 months ago (2014-08-14 16:41:24 UTC) #2
danakj
In cc/ when we want to use the GrContext, we use this https://code.google.com/p/chromium/codesearch#chromium/src/cc/output/gl_renderer.cc&rcl=1407928291&l=203 . Perhaps ...
6 years, 4 months ago (2014-08-14 16:44:39 UTC) #3
danakj
Or maybe the skia GrContext needs to make the context current.
6 years, 4 months ago (2014-08-14 16:52:53 UTC) #4
danakj
(You should probably file a bug for this)
6 years, 4 months ago (2014-08-14 16:53:07 UTC) #5
jamesr
lbtm. The C++ bindings do not require setting the context in TLS and everything that ...
6 years, 4 months ago (2014-08-14 18:01:13 UTC) #6
dshwang
On 2014/08/14 18:01:13, jamesr wrote: > lbtm. The C++ bindings do not require setting the ...
6 years, 4 months ago (2014-08-14 18:46:31 UTC) #7
danakj
On Thu, Aug 14, 2014 at 2:46 PM, <dongseong.hwang@intel.com> wrote: > On 2014/08/14 18:01:13, jamesr ...
6 years, 4 months ago (2014-08-14 18:52:37 UTC) #8
dshwang
On 2014/08/14 18:52:37, danakj wrote: > On Thu, Aug 14, 2014 at 2:46 PM, <mailto:dongseong.hwang@intel.com> ...
6 years, 4 months ago (2014-08-14 19:36:06 UTC) #9
jamesr
There's no need to have a make current anywhere unless some system is using the ...
6 years, 4 months ago (2014-08-14 19:36:19 UTC) #10
jamesr
I don't understand why that class is going through the C entry points, it should ...
6 years, 4 months ago (2014-08-14 19:37:36 UTC) #11
dshwang
On 2014/08/14 19:37:36, jamesr wrote: > I don't understand why that class is going through ...
6 years, 4 months ago (2014-08-15 09:18:49 UTC) #12
dshwang
After re-thinking of your good comment, I reach to fact that WebGraphicsContext3D::makeContextCurrent() legacy and not-needed ...
6 years, 4 months ago (2014-08-15 13:47:59 UTC) #13
dshwang
I added some comments to explain the changes. https://codereview.chromium.org/470973002/diff/80001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/470973002/diff/80001/content/renderer/render_thread_impl.cc#newcode1181 content/renderer/render_thread_impl.cc:1181: !shared_main_thread_contexts_->BindToCurrentThread()) ...
6 years, 4 months ago (2014-08-15 14:54:01 UTC) #14
danakj
I think this looks like a good change overall, curious what jamesr thinks. https://codereview.chromium.org/470973002/diff/80001/content/browser/android/in_process/synchronous_compositor_factory_impl.cc File ...
6 years, 4 months ago (2014-08-15 15:28:44 UTC) #15
dshwang
Thank you for fast review. https://codereview.chromium.org/470973002/diff/80001/content/browser/android/in_process/synchronous_compositor_factory_impl.cc File content/browser/android/in_process/synchronous_compositor_factory_impl.cc (right): https://codereview.chromium.org/470973002/diff/80001/content/browser/android/in_process/synchronous_compositor_factory_impl.cc#newcode210 content/browser/android/in_process/synchronous_compositor_factory_impl.cc:210: webkit::gpu::WebGraphicsContext3DImpl* On 2014/08/15 15:28:44, ...
6 years, 4 months ago (2014-08-15 16:02:32 UTC) #16
piman
There's still some explicit makeContextCurrent on the blink side, that are not only for initialization ...
6 years, 4 months ago (2014-08-15 17:47:34 UTC) #17
dshwang
On 2014/08/15 17:47:34, piman (OOO) wrote: > There's still some explicit makeContextCurrent on the blink ...
6 years, 4 months ago (2014-08-15 17:58:13 UTC) #18
piman
On Fri, Aug 15, 2014 at 10:58 AM, <dongseong.hwang@intel.com> wrote: > On 2014/08/15 17:47:34, piman ...
6 years, 4 months ago (2014-08-15 18:14:33 UTC) #19
dshwang
On 2014/08/15 18:14:33, piman (OOO) wrote: > On Fri, Aug 15, 2014 at 10:58 AM, ...
6 years, 4 months ago (2014-08-15 18:51:11 UTC) #20
dshwang
On 2014/08/15 18:51:11, dshwang wrote: > On 2014/08/15 18:14:33, piman (OOO) wrote: > > On ...
6 years, 3 months ago (2014-08-28 13:47:27 UTC) #21
piman
lgtm https://codereview.chromium.org/470973002/diff/120001/content/renderer/renderer_webkitplatformsupport_impl.cc File content/renderer/renderer_webkitplatformsupport_impl.cc (right): https://codereview.chromium.org/470973002/diff/120001/content/renderer/renderer_webkitplatformsupport_impl.cc#newcode962 content/renderer/renderer_webkitplatformsupport_impl.cc:962: #endif nit: this is a little hard to ...
6 years, 3 months ago (2014-08-28 18:13:02 UTC) #22
dshwang
Thank you for review. https://codereview.chromium.org/470973002/diff/140001/content/renderer/renderer_webkitplatformsupport_impl.cc File content/renderer/renderer_webkitplatformsupport_impl.cc (right): https://codereview.chromium.org/470973002/diff/140001/content/renderer/renderer_webkitplatformsupport_impl.cc#newcode957 content/renderer/renderer_webkitplatformsupport_impl.cc:957: bool must_use_synchronous_factory = false; Introduce ...
6 years, 3 months ago (2014-08-29 07:06:35 UTC) #23
dshwang
The CQ bit was checked by dongseong.hwang@intel.com
6 years, 3 months ago (2014-08-29 07:07:04 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/470973002/140001
6 years, 3 months ago (2014-08-29 07:07:22 UTC) #25
dshwang
The CQ bit was unchecked by dongseong.hwang@intel.com
6 years, 3 months ago (2014-08-29 07:40:36 UTC) #26
dshwang
The CQ bit was checked by dongseong.hwang@intel.com
6 years, 3 months ago (2014-08-29 08:01:52 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/470973002/160001
6 years, 3 months ago (2014-08-29 08:02:26 UTC) #28
commit-bot: I haz the power
Committed patchset #6 (id:160001) as c26ab7d39c0ba0792e1656f8918c625b3260273a
6 years, 3 months ago (2014-08-29 08:47:25 UTC) #29
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:07:04 UTC) #30
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3ed758c9a46ec8579cc3a5cb2955161a8a322f0b
Cr-Commit-Position: refs/heads/master@{#292592}

Powered by Google App Engine
This is Rietveld 408576698