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

Issue 12212100: Provide shared context to Platform API in renderer. (Closed)

Created:
7 years, 10 months ago by danakj
Modified:
7 years, 9 months ago
Reviewers:
jamesr, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, darin-cc_chromium.org, apatrick_chromium, backer
Visibility:
Public.

Description

Provide shared context to Platform API in renderer. Implements the WebKit::Platform::sharedOffscreenGraphicsContext3D API in the renderer, and provide the same shared context to WebKit and the compositor when the compositor is not threaded. RenderWidgetCompositor and RendererWebKitPlatformSupport both access the shared context through RenderThreadImpl who creates them. R=piman,jamesr BUG=177768 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186342

Patch Set 1 #

Patch Set 2 : no ifdefs #

Total comments: 4

Patch Set 3 : CreateOffscreenContext() #

Total comments: 2

Patch Set 4 : Reworked without OffscreenContext class. #

Patch Set 5 : nits #

Patch Set 6 : Loss recovery #

Patch Set 7 : nits #

Patch Set 8 : ContextProvider refresh #

Patch Set 9 : virtual #

Patch Set 10 : #

Patch Set 11 : android #

Total comments: 2

Patch Set 12 : remove notreacheds #

Patch Set 13 : #

Total comments: 2

Patch Set 14 : nit #

Patch Set 15 : rebaseforreals #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -155 lines) Patch
M cc/context_provider.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M cc/test/fake_context_provider.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/in_process_webkit/browser_webkitplatformsupport_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +7 lines, -5 lines 0 comments Download
M content/browser/renderer_host/image_transport_factory.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -5 lines 0 comments Download
M content/common/gpu/client/context_provider_command_buffer.h View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M content/common/webkitplatformsupport_impl.h View 1 2 3 4 5 6 7 2 chunks +0 lines, -9 lines 0 comments Download
M content/common/webkitplatformsupport_impl.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -36 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -5 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -72 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +24 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +48 lines, -0 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +10 lines, -3 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +47 lines, -5 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M webkit/gpu/context_provider_in_process.h View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
danakj
Here's the renderer follow up for https://codereview.chromium.org/12212007/. It is built on top of that as ...
7 years, 10 months ago (2013-02-09 06:16:57 UTC) #1
danakj
7 years, 10 months ago (2013-02-09 06:17:09 UTC) #2
piman
https://codereview.chromium.org/12212100/diff/4001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/12212100/diff/4001/content/renderer/render_thread_impl.cc#newcode287 content/renderer/render_thread_impl.cc:287: : shared_context_main_thread_(this), nit: you'll need the ALLOW_THIS_IN_INITIALIZER_LIST wrapper for ...
7 years, 10 months ago (2013-02-11 19:15:30 UTC) #3
danakj
https://codereview.chromium.org/12212100/diff/4001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/12212100/diff/4001/content/renderer/render_thread_impl.cc#newcode287 content/renderer/render_thread_impl.cc:287: : shared_context_main_thread_(this), On 2013/02/11 19:15:30, piman wrote: > nit: ...
7 years, 10 months ago (2013-02-11 20:53:36 UTC) #4
piman
lgtm
7 years, 10 months ago (2013-02-11 21:03:24 UTC) #5
jamesr
lgtm2 https://codereview.chromium.org/12212100/diff/5010/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc File content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc (right): https://codereview.chromium.org/12212100/diff/5010/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc#newcode127 content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc:127: NOTREACHED(); do you need to override these? Why ...
7 years, 10 months ago (2013-02-12 03:10:58 UTC) #6
danakj
https://codereview.chromium.org/12212100/diff/5010/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc File content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc (right): https://codereview.chromium.org/12212100/diff/5010/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc#newcode127 content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc:127: NOTREACHED(); On 2013/02/12 03:10:59, jamesr wrote: > do you ...
7 years, 10 months ago (2013-02-12 03:15:46 UTC) #7
danakj
I've reworked the RenderThreadImpl class without the use of the OffscreenContext class, to match what ...
7 years, 10 months ago (2013-02-13 08:28:28 UTC) #8
danakj
PTAL. This implements the cc::ContextProvider interface stuff for the renderer process in RenderThreadImpl. With this, ...
7 years, 9 months ago (2013-03-05 21:15:52 UTC) #9
jamesr
lgtm https://codereview.chromium.org/12212100/diff/33002/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc File content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc (right): https://codereview.chromium.org/12212100/diff/33002/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc#newcode127 content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc:127: return NULL; Why bother overriding this? Isn't there ...
7 years, 9 months ago (2013-03-06 00:26:10 UTC) #10
danakj
https://codereview.chromium.org/12212100/diff/33002/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc File content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc (right): https://codereview.chromium.org/12212100/diff/33002/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc#newcode127 content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc:127: return NULL; On 2013/03/06 00:26:10, jamesr wrote: > Why ...
7 years, 9 months ago (2013-03-06 00:27:10 UTC) #11
jamesr
On 2013/03/06 00:27:10, danakj wrote: > https://codereview.chromium.org/12212100/diff/33002/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc > File content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc > (right): > > https://codereview.chromium.org/12212100/diff/33002/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc#newcode127 ...
7 years, 9 months ago (2013-03-06 00:30:40 UTC) #12
danakj
On Tue, Mar 5, 2013 at 7:30 PM, <jamesr@chromium.org> wrote: > On 2013/03/06 00:27:10, danakj ...
7 years, 9 months ago (2013-03-06 00:32:24 UTC) #13
piman
lgtm https://codereview.chromium.org/12212100/diff/49001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/12212100/diff/49001/content/browser/renderer_host/compositor_impl_android.cc#newcode337 content/browser/renderer_host/compositor_impl_android.cc:337: protected: nit: blank line before 'protected:'
7 years, 9 months ago (2013-03-06 01:08:59 UTC) #14
danakj
Thanks! https://codereview.chromium.org/12212100/diff/49001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/12212100/diff/49001/content/browser/renderer_host/compositor_impl_android.cc#newcode337 content/browser/renderer_host/compositor_impl_android.cc:337: protected: On 2013/03/06 01:08:59, piman wrote: > nit: ...
7 years, 9 months ago (2013-03-06 01:41:32 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12212100/55001
7 years, 9 months ago (2013-03-06 01:44:36 UTC) #16
commit-bot: I haz the power
Failed to apply patch for content/renderer/renderer_webkitplatformsupport_impl.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-06 01:44:44 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12212100/58001
7 years, 9 months ago (2013-03-06 01:48:18 UTC) #18
commit-bot: I haz the power
Failed to apply patch for content/renderer/renderer_webkitplatformsupport_impl.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-06 01:48:22 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12212100/59001
7 years, 9 months ago (2013-03-06 01:54:33 UTC) #20
commit-bot: I haz the power
7 years, 9 months ago (2013-03-06 03:51:07 UTC) #21
Message was sent while issue was closed.
Change committed as 186342

Powered by Google App Engine
This is Rietveld 408576698