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

Issue 12314003: cc: Use highp precision for texture coordinates if available (Closed)

Created:
7 years, 10 months ago by brianderson
Modified:
7 years, 9 months ago
Reviewers:
Vangelis Kokkevis, Sami
CC:
chromium-reviews, cc-bugs_chromium.org, klobag.chromium, greggman, alokp, google-reveman
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

cc: Use highp precision for texture coordinates if available BUG=173747 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=187481

Patch Set 1 #

Patch Set 2 : Use GL_FRAGMENT_PRECISION_HIGH properly #

Total comments: 4

Patch Set 3 : Use getShaderPrecisionFormat instead of GL_FRAGMENT_PRECISION_HIGH #

Total comments: 2

Patch Set 4 : Address comments, only use highp for pass-through texture coordinates #

Total comments: 7

Patch Set 5 : address comments #

Patch Set 6 : For trybot testing to get more information about failures. #

Patch Set 7 : Remove synchronous startup call. Fix tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -136 lines) Patch
M cc/fake_web_graphics_context_3d.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M cc/fake_web_graphics_context_3d.cc View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M cc/program_binding.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M cc/shader.h View 1 2 3 16 chunks +25 lines, -25 lines 0 comments Download
M cc/shader.cc View 1 2 3 4 5 6 25 chunks +142 lines, -109 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
brianderson
Right now, this arbitrarily uses highp for all calculations involved with texture coordinates if highp ...
7 years, 10 months ago (2013-02-21 02:25:56 UTC) #1
Vangelis Kokkevis
https://codereview.chromium.org/12314003/diff/3/cc/shader.cc File cc/shader.cc (right): https://codereview.chromium.org/12314003/diff/3/cc/shader.cc#newcode33 cc/shader.cc:33: static std::string fixShader(const char* shaderString) { nit: please use ...
7 years, 10 months ago (2013-02-21 07:47:35 UTC) #2
Sami
I like the approach of doing this with a macro at the top of the ...
7 years, 10 months ago (2013-02-21 11:47:38 UTC) #3
brianderson
After further investigation, it looks like GL_FRAGMENT_PRECISION_HIGH is not defined on N4, N7, or N10, ...
7 years, 10 months ago (2013-02-21 23:05:54 UTC) #4
brianderson
Looks like GL_FRAGMENT_PRECISION_HIGH being undefined might be a bug in ANGLE. I have opened a ...
7 years, 10 months ago (2013-02-22 00:50:23 UTC) #5
Vangelis Kokkevis
On 2013/02/22 00:50:23, Brian Anderson wrote: > Looks like GL_FRAGMENT_PRECISION_HIGH being undefined might be a ...
7 years, 10 months ago (2013-02-22 07:13:19 UTC) #6
aelias_OOO_until_Jul13
Note that highp is optional on OpenGL ES and may be interpreted as mediump by ...
7 years, 10 months ago (2013-02-22 07:17:28 UTC) #7
Sami
Good point Alex. Implementations that don't support highp should refuse shaders that require it, but ...
7 years, 10 months ago (2013-02-22 11:52:19 UTC) #8
brianderson
Patch Set 4 depends on: https://codereview.chromium.org/12328092 I've also introduced the concepts of TexCoordPrecisionHigh (highp if ...
7 years, 10 months ago (2013-02-26 00:32:48 UTC) #9
Vangelis Kokkevis
lgtm with comments addressed https://codereview.chromium.org/12314003/diff/10003/cc/shader.cc File cc/shader.cc (right): https://codereview.chromium.org/12314003/diff/10003/cc/shader.cc#newcode37 cc/shader.cc:37: const char* shaderString) { Open ...
7 years, 10 months ago (2013-02-26 01:35:04 UTC) #10
Sami
Looks good, just a question about the naming. https://codereview.chromium.org/12314003/diff/10003/cc/shader.cc File cc/shader.cc (right): https://codereview.chromium.org/12314003/diff/10003/cc/shader.cc#newcode11 cc/shader.cc:11: #include ...
7 years, 10 months ago (2013-02-26 11:56:40 UTC) #11
brianderson
https://codereview.chromium.org/12314003/diff/10003/cc/shader.cc File cc/shader.cc (right): https://codereview.chromium.org/12314003/diff/10003/cc/shader.cc#newcode11 cc/shader.cc:11: #include "third_party/khronos/GLES2/gl2.h" On 2013/02/26 11:56:40, Sami wrote: > Nit: ...
7 years, 10 months ago (2013-02-26 19:08:21 UTC) #12
Sami
On 2013/02/26 19:08:21, Brian Anderson wrote: > It appears presubmit's alpha order is case sensitive. ...
7 years, 9 months ago (2013-02-27 11:31:10 UTC) #13
brianderson
CQing this since the other dependencies have landed. This patch ends up being a no-op ...
7 years, 9 months ago (2013-03-08 00:50:42 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brianderson@chromium.org/12314003/7003
7 years, 9 months ago (2013-03-08 00:51:02 UTC) #15
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) aura_unittests, compositor_unittests, content_unittests, views_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=22925
7 years, 9 months ago (2013-03-08 02:27:27 UTC) #16
brianderson
There's an unexpected snag with this patch: determining the supported precision is a synchronous gpu ...
7 years, 9 months ago (2013-03-11 20:28:05 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brianderson@chromium.org/12314003/35002
7 years, 9 months ago (2013-03-12 00:10:13 UTC) #18
commit-bot: I haz the power
7 years, 9 months ago (2013-03-12 03:57:39 UTC) #19
Message was sent while issue was closed.
Change committed as 187481

Powered by Google App Engine
This is Rietveld 408576698