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

Issue 12086036: cc: Clamp texture coordinates in all tile shaders (Closed)

Created:
7 years, 10 months ago by brianderson
Modified:
7 years, 10 months ago
Reviewers:
reveman, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@snowscale
Visibility:
Public.

Description

cc: Clamp texture coordinates in all tile shaders Since we can draw quads with a texel:pixel ratio < 1, linear filtering can cause us to blend texels in that don't have valid content if we don't clamp texture sampling to the middle of boundary texels. Clamping was already done for the anti-aliasing tile shaders. This patch adds clamping to all tile shaders. BUG=170722 NOTRY=True Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179752

Patch Set 1 #

Total comments: 7

Patch Set 2 : Complete. Use _SAT+MAD clamping again. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -24 lines) Patch
M cc/gl_renderer.h View 1 chunk +4 lines, -4 lines 0 comments Download
M cc/gl_renderer.cc View 1 1 chunk +1 line, -11 lines 0 comments Download
M cc/shader.h View 1 5 chunks +39 lines, -3 lines 0 comments Download
M cc/shader.cc View 1 5 chunks +76 lines, -6 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
brianderson
This patch is incomplete, but I would like feedback regarding the parts with comments. Is ...
7 years, 10 months ago (2013-01-29 03:03:48 UTC) #1
reveman
https://codereview.chromium.org/12086036/diff/1/cc/shader.cc File cc/shader.cc (right): https://codereview.chromium.org/12086036/diff/1/cc/shader.cc#newcode654 cc/shader.cc:654: vec2 texCoord = clamp(v_texCoord, fragmentTexClamp.xy, fragmentTexClamp.zw); On 2013/01/29 03:03:48, ...
7 years, 10 months ago (2013-01-29 03:40:23 UTC) #2
brianderson
https://codereview.chromium.org/12086036/diff/1/cc/shader.cc File cc/shader.cc (right): https://codereview.chromium.org/12086036/diff/1/cc/shader.cc#newcode654 cc/shader.cc:654: vec2 texCoord = clamp(v_texCoord, fragmentTexClamp.xy, fragmentTexClamp.zw); On 2013/01/29 03:40:23, ...
7 years, 10 months ago (2013-01-29 18:45:12 UTC) #3
brianderson
ptal. This fixes tile lines when tiles are drawn with ideal_contents_scale < 1.
7 years, 10 months ago (2013-01-29 21:54:29 UTC) #4
enne (OOO)
Can you run DumpRenderTree locally and check on: compositing/color-matching/image-color-matching.html [ ImageOnlyFailure ] compositing/visibility/visibility-image-layers.html [ ImageOnlyFailure ...
7 years, 10 months ago (2013-01-29 22:38:33 UTC) #5
reveman
lgtm, thanks! also I'm not against switching away from _SAT + MAD for clamping, especially ...
7 years, 10 months ago (2013-01-29 23:47:26 UTC) #6
brianderson
On 2013/01/29 22:38:33, enne wrote: > Can you run DumpRenderTree locally and check on: > ...
7 years, 10 months ago (2013-01-30 00:57:49 UTC) #7
enne (OOO)
On 2013/01/30 00:57:49, Brian Anderson wrote: > Although each solution is theoretically equivalent, their results ...
7 years, 10 months ago (2013-01-30 01:51:41 UTC) #8
brianderson
Test expectations changed with this patch: http://trac.webkit.org/changeset/141307
7 years, 10 months ago (2013-01-30 22:24:31 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brianderson@chromium.org/12086036/7001
7 years, 10 months ago (2013-01-30 22:26:20 UTC) #10
brianderson
7 years, 10 months ago (2013-01-31 00:33:34 UTC) #11
Going to NOTRY=true. These look like innocuous failures.

Powered by Google App Engine
This is Rietveld 408576698