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

Issue 2147513002: Fix context creation problems in dm (Closed)

Created:
4 years, 5 months ago by mkollaro
Modified:
4 years, 5 months ago
Reviewers:
bsalomon, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Fix context creation problems in dm Fixes these issues: 1. The glXCreateContextAttribsARB call seems to modify the context_attrib parameter upon failure. Since context_attrib was static, if it first tried to create an OpenGL 4.4 context and it failed, further attempts to create a context with lower versions would also fail. 2. Getting an OpenGL 3.0 context was never tried. 3. Context creation for ES 3.0 was failing on my machine. Since ES 2.0 looks like the intended version from the surrounding code, I set it to that. It could be rewritten to use a similar loop as standard OpenGL and try from the highest version to the lowest. BUG=skia:5403 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2147513002 Committed: https://skia.googlesource.com/skia/+/7b70156334629c083040f4d175e23b8743f53153

Patch Set 1 #

Patch Set 2 : fix space #

Patch Set 3 : add comment about static #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -5 lines) Patch
M tools/gpu/gl/glx/CreatePlatformGLTestContext_glx.cpp View 1 2 3 chunks +8 lines, -5 lines 0 comments Download

Messages

Total messages: 18 (13 generated)
mkollaro
I'm thinking about rewriting it into a single loop that would try creating the highest ...
4 years, 5 months ago (2016-07-12 14:08:31 UTC) #3
bsalomon
On 2016/07/12 14:08:31, mkollaro wrote: > I'm thinking about rewriting it into a single loop ...
4 years, 5 months ago (2016-07-12 15:22:05 UTC) #8
mkollaro
On 2016/07/12 15:22:05, bsalomon wrote: > On 2016/07/12 14:08:31, mkollaro wrote: > > I'm thinking ...
4 years, 5 months ago (2016-07-20 08:32:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2147513002/40001
4 years, 5 months ago (2016-07-20 13:47:53 UTC) #16
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 14:01:49 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/7b70156334629c083040f4d175e23b8743f53153

Powered by Google App Engine
This is Rietveld 408576698