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

Issue 7669072: Use 3D graphics context shareResources flag to decide whether a context should share resources. (Closed)

Created:
9 years, 4 months ago by apatrick_chromium
Modified:
9 years, 4 months ago
Reviewers:
jbates, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium
Visibility:
Public.

Description

Use 3D graphics context shareResources flag to decide whether a context should share resources. Before, it abused the noExtensions flag to determine to disable share groups for WebGL, which was awful. This patch is dependent on https://bugs.webkit.org/show_bug.cgi?id=66516. See also http://codereview.chromium.org/7669072 where I perpetrated the aforementioned hack. BUG=92356 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98527

Patch Set 1 #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -57 lines) Patch
M content/renderer/gpu/renderer_gl_context.h View 4 chunks +21 lines, -22 lines 0 comments Download
M content/renderer/gpu/renderer_gl_context.cc View 8 chunks +9 lines, -9 lines 6 comments Download
M content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc View 7 chunks +9 lines, -13 lines 0 comments Download
M content/renderer/render_widget_fullscreen_pepper.cc View 1 chunk +2 lines, -1 line 3 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc View 4 chunks +8 lines, -12 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
apatrick_chromium
This is for your reference for now so you can see the other side of ...
9 years, 4 months ago (2011-08-19 01:18:17 UTC) #1
apatrick_chromium
Ready for review. PTAL.
9 years, 4 months ago (2011-08-25 22:53:21 UTC) #2
apatrick_chromium
+jbates jamesr is unavailable. Please review, thanks.
9 years, 4 months ago (2011-08-26 18:25:19 UTC) #3
jbates
http://codereview.chromium.org/7669072/diff/1/content/renderer/gpu/renderer_gl_context.cc File content/renderer/gpu/renderer_gl_context.cc (right): http://codereview.chromium.org/7669072/diff/1/content/renderer/gpu/renderer_gl_context.cc#newcode334 content/renderer/gpu/renderer_gl_context.cc:334: attribs.push_back(*attrib_list++); I know this was already here, but should ...
9 years, 4 months ago (2011-08-26 19:04:35 UTC) #4
apatrick_chromium
http://codereview.chromium.org/7669072/diff/1/content/renderer/gpu/renderer_gl_context.cc File content/renderer/gpu/renderer_gl_context.cc (right): http://codereview.chromium.org/7669072/diff/1/content/renderer/gpu/renderer_gl_context.cc#newcode321 content/renderer/gpu/renderer_gl_context.cc:321: while (attrib_list) { If attrib_list is null then it ...
9 years, 4 months ago (2011-08-26 19:21:13 UTC) #5
jbates
LGTM
9 years, 4 months ago (2011-08-26 21:31:39 UTC) #6
apatrick_chromium
+piman for owners for render_widget_fullscreen_pepper.cc.
9 years, 4 months ago (2011-08-26 22:51:21 UTC) #7
piman
http://codereview.chromium.org/7669072/diff/1/content/renderer/gpu/renderer_gl_context.cc File content/renderer/gpu/renderer_gl_context.cc (right): http://codereview.chromium.org/7669072/diff/1/content/renderer/gpu/renderer_gl_context.cc#newcode319 content/renderer/gpu/renderer_gl_context.cc:319: bool bind_generates_resources = true; The default was false before ...
9 years, 4 months ago (2011-08-26 23:18:57 UTC) #8
apatrick_chromium
http://codereview.chromium.org/7669072/diff/1/content/renderer/gpu/renderer_gl_context.cc File content/renderer/gpu/renderer_gl_context.cc (right): http://codereview.chromium.org/7669072/diff/1/content/renderer/gpu/renderer_gl_context.cc#newcode319 content/renderer/gpu/renderer_gl_context.cc:319: bool bind_generates_resources = true; I was deliberate. I want ...
9 years, 4 months ago (2011-08-26 23:40:01 UTC) #9
piman
9 years, 4 months ago (2011-08-27 00:40:42 UTC) #10
LGTM

http://codereview.chromium.org/7669072/diff/1/content/renderer/render_widget_...
File content/renderer/render_widget_fullscreen_pepper.cc (right):

http://codereview.chromium.org/7669072/diff/1/content/renderer/render_widget_...
content/renderer/render_widget_fullscreen_pepper.cc:352:
RendererGLContext::BIND_GENERATES_RESOURCES, 1,
On 2011/08/26 23:40:01, apatrick_chromium wrote:
> False referred to whether resource sharing was enabled. It is still false. See
> SHARE_RESOURCES above. BIND_GENERATES_RESOURCES is a new option and is true
for
> Pepper, and corresponds to regular GLES2 semantics, which I think is what you
> want.

This is for the full-screen "compositor" (which scales and draws the Pepper
content which has its own separate context). So it's actually ok to not have the
GLES2 semantics here, if it's more efficient. But it's not necessarily
important.

Powered by Google App Engine
This is Rietveld 408576698