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

Issue 1537783002: Improve GL helpers. (Closed)

Created:
5 years ago by jeffbrown
Modified:
5 years ago
Reviewers:
vtl, abarth, jamesr
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Improve GL helpers. Use ApplicationConnector instead of Shell to obtain an offscreen GL context. This makes it easier to create GL contexts from separate threads since the Shell interface is usually owned by the main thread. Eagerly unbind GL textures from the context after creation to prevent spurious circularity warnings from the GPU Service caused by textures being bound while not actually in use. BUG= Committed: https://chromium.googlesource.com/external/mojo/+/0d386d89f313c941182389ddb3c773dd937fa240

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -9 lines) Patch
M mojo/gpu/gl_context.h View 2 chunks +6 lines, -1 line 0 comments Download
M mojo/gpu/gl_context.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M mojo/gpu/gl_context_owner.h View 1 chunk +3 lines, -1 line 2 comments Download
M mojo/gpu/gl_context_owner.cc View 1 chunk +2 lines, -3 lines 2 comments Download
M mojo/gpu/gl_texture.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
jeffbrown
TBR
5 years ago (2015-12-17 20:46:17 UTC) #2
jeffbrown
Committed patchset #1 (id:1) manually as 0d386d89f313c941182389ddb3c773dd937fa240.
5 years ago (2015-12-17 20:50:08 UTC) #4
vtl
LGTM w/very minor nits. (I'm not the expert on the unbinding part, but it seems ...
5 years ago (2015-12-17 22:30:35 UTC) #6
jeffbrown
5 years ago (2015-12-17 22:33:23 UTC) #7
Message was sent while issue was closed.
Done.  FWIW, I'm thinking about moving all of this stuff into the mojo::gfx
namespace later on.

https://codereview.chromium.org/1537783002/diff/1/mojo/gpu/gl_context_owner.cc
File mojo/gpu/gl_context_owner.cc (right):

https://codereview.chromium.org/1537783002/diff/1/mojo/gpu/gl_context_owner.c...
mojo/gpu/gl_context_owner.cc:11:
GLContextOwner::GLContextOwner(mojo::ApplicationConnector* connector)
On 2015/12/17 22:30:35, vtl wrote:
> Ditto (here and below).

Done.

https://codereview.chromium.org/1537783002/diff/1/mojo/gpu/gl_context_owner.h
File mojo/gpu/gl_context_owner.h (right):

https://codereview.chromium.org/1537783002/diff/1/mojo/gpu/gl_context_owner.h...
mojo/gpu/gl_context_owner.h:17: explicit
GLContextOwner(mojo::ApplicationConnector* connector);
On 2015/12/17 22:30:35, vtl wrote:
> nit (pre-existing condition): "mojo::" not necessary
> 
> (whether this should just be in the mojo namespace is another question
<shrug>)

Done.

Powered by Google App Engine
This is Rietveld 408576698