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

Issue 143023005: Support multiple service instances with GLInProcessContext (Closed)

Created:
6 years, 10 months ago by no sievers
Modified:
6 years, 10 months ago
Reviewers:
boliu, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, android-webview-reviews_chromium.org, piman+watch_chromium.org
Visibility:
Public.

Description

Support multiple service instances with GLInProcessContext For example, it supports running two GPU threads. This simplifies the scheduling/queuing logic in InProcessCommandBuffer a bit and moves the non-thread/queue implementation out to WebView by allowing for passing in a InProcessCommandBuffer::Service instance when creating a context. BUG=332146 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250984

Patch Set 1 #

Total comments: 15

Patch Set 2 : #

Total comments: 11

Patch Set 3 : address comments #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -320 lines) Patch
M android_webview/browser/in_process_view_renderer.cc View 1 2 3 6 chunks +87 lines, -10 lines 0 comments Download
M android_webview/lib/main/aw_main_delegate.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/android/in_process/synchronous_compositor_factory_impl.h View 1 2 3 chunks +16 lines, -2 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_factory_impl.cc View 1 2 3 6 chunks +104 lines, -47 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_impl.cc View 1 2 1 chunk +17 lines, -3 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_output_surface.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/android/in_process/synchronous_compositor_output_surface.cc View 1 2 3 chunks +1 line, -35 lines 0 comments Download
M content/public/browser/android/synchronous_compositor.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gl_in_process_context.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M gpu/command_buffer/client/gl_in_process_context.cc View 1 9 chunks +35 lines, -17 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.h View 1 2 5 chunks +19 lines, -22 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 1 2 3 9 chunks +53 lines, -181 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
no sievers
you think this would work?
6 years, 10 months ago (2014-02-08 04:02:54 UTC) #1
no sievers
On 2014/02/08 04:02:54, sievers wrote: > you think this would work? Of course this doesn't ...
6 years, 10 months ago (2014-02-08 04:04:33 UTC) #2
boliu
I think overall it should work. There are a few other contexts not taken care ...
6 years, 10 months ago (2014-02-08 18:55:53 UTC) #3
boliu
Going to try to figure out why threaded init failed, since we'll need it https://codereview.chromium.org/143023005/diff/1/gpu/command_buffer/client/gl_in_process_context.cc ...
6 years, 10 months ago (2014-02-10 18:42:07 UTC) #4
boliu
I think glGetString requires a context current? In the crash, we are not using the ...
6 years, 10 months ago (2014-02-10 19:41:17 UTC) #5
no sievers
On 2014/02/10 19:41:17, boliu wrote: > I think glGetString requires a context current? > > ...
6 years, 10 months ago (2014-02-11 22:56:04 UTC) #6
no sievers
Rebased on top of https://codereview.chromium.org/158133004/ and addressed comments. https://codereview.chromium.org/143023005/diff/1/android_webview/browser/in_process_view_renderer.cc File android_webview/browser/in_process_view_renderer.cc (right): https://codereview.chromium.org/143023005/diff/1/android_webview/browser/in_process_view_renderer.cc#newcode217 android_webview/browser/in_process_view_renderer.cc:217: size_t ...
6 years, 10 months ago (2014-02-12 03:09:15 UTC) #7
no sievers
+piman for gpu/ This abstracts the task queuing/scheduling interface to the GPU thread and moves ...
6 years, 10 months ago (2014-02-12 03:15:25 UTC) #8
no sievers
https://codereview.chromium.org/143023005/diff/160001/gpu/command_buffer/service/in_process_command_buffer.cc File gpu/command_buffer/service/in_process_command_buffer.cc (right): https://codereview.chromium.org/143023005/diff/160001/gpu/command_buffer/service/in_process_command_buffer.cc#newcode111 gpu/command_buffer/service/in_process_command_buffer.cc:111: scoped_refptr<Service> service; Errr, I guess this could just be ...
6 years, 10 months ago (2014-02-12 03:19:36 UTC) #9
piman
https://codereview.chromium.org/143023005/diff/160001/gpu/command_buffer/client/gl_in_process_context.cc File gpu/command_buffer/client/gl_in_process_context.cc (right): https://codereview.chromium.org/143023005/diff/160001/gpu/command_buffer/client/gl_in_process_context.cc#newcode192 gpu/command_buffer/client/gl_in_process_context.cc:192: command_buffer_.reset(new InProcessCommandBuffer(service)); Should we have a check somewhere that ...
6 years, 10 months ago (2014-02-12 04:10:41 UTC) #10
no sievers
https://codereview.chromium.org/143023005/diff/160001/gpu/command_buffer/client/gl_in_process_context.cc File gpu/command_buffer/client/gl_in_process_context.cc (right): https://codereview.chromium.org/143023005/diff/160001/gpu/command_buffer/client/gl_in_process_context.cc#newcode192 gpu/command_buffer/client/gl_in_process_context.cc:192: command_buffer_.reset(new InProcessCommandBuffer(service)); On 2014/02/12 04:10:42, piman wrote: > Should ...
6 years, 10 months ago (2014-02-12 22:31:28 UTC) #11
piman
lgtm
6 years, 10 months ago (2014-02-12 22:52:16 UTC) #12
boliu
lgtm
6 years, 10 months ago (2014-02-13 00:26:45 UTC) #13
no sievers
The CQ bit was checked by sievers@chromium.org
6 years, 10 months ago (2014-02-13 02:55:09 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sievers@chromium.org/143023005/370002
6 years, 10 months ago (2014-02-13 02:57:34 UTC) #15
commit-bot: I haz the power
6 years, 10 months ago (2014-02-13 14:25:28 UTC) #16
Message was sent while issue was closed.
Change committed as 250984

Powered by Google App Engine
This is Rietveld 408576698