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

Issue 1594483003: Texturing support for RECTANGLE textures. (Closed)

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

Description

Texturing support for RECTANGLE textures. Uses textureSize() to unnormalize texture coords when reading from a RECTANGLE texture. Because of this we also require a later GLSL version to use rectangle textures (1.40). Note that this causes a issue with the bicubic effect. The texture coords seem to have poor precision and the result is ugly. textureSize() is intended as a workaround until effects can be updated to handle unnormalized coords themselves. Updates places where we were looking for OpenGL version 3.2 for rectangle support. It was actually added in 3.1. BUG=skia:3868 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1594483003 Committed: https://skia.googlesource.com/skia/+/e179a9167f71dfc41668b05d40082aae76367fa6

Patch Set 1 #

Patch Set 2 : more #

Patch Set 3 : update #

Patch Set 4 : Working #

Patch Set 5 : update #

Patch Set 6 : more #

Patch Set 7 : fix linewrap #

Patch Set 8 : set correct gm size #

Patch Set 9 : update comment #

Total comments: 10

Patch Set 10 : Address comments #

Patch Set 11 : fix double->float warnings on windows #

Patch Set 12 : fix float->int warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+310 lines, -33 lines) Patch
A gm/rectangletexture.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +191 lines, -0 lines 0 comments Download
M src/gpu/GrGpu.h View 1 2 3 4 5 6 7 8 2 chunks +20 lines, -4 lines 0 comments Download
M src/gpu/GrTextureParamsAdjuster.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/GrTextureParamsAdjuster.cpp View 1 2 3 4 5 5 chunks +43 lines, -22 lines 0 comments Download
M src/gpu/gl/GrGLCaps.cpp View 1 2 3 4 5 1 chunk +6 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGLGpu.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLGpu.cpp View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M src/gpu/gl/SkGLContext.cpp View 1 2 3 4 5 1 chunk +6 lines, -1 line 0 comments Download
M src/gpu/glsl/GrGLSLShaderBuilder.cpp View 1 2 3 4 5 1 chunk +23 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
bsalomon
4 years, 11 months ago (2016-01-19 21:46:37 UTC) #4
egdaniel
lgtm with a few nits https://codereview.chromium.org/1594483003/diff/150001/gm/rectangletexture.cpp File gm/rectangletexture.cpp (right): https://codereview.chromium.org/1594483003/diff/150001/gm/rectangletexture.cpp#newcode70 gm/rectangletexture.cpp:70: if (!(kGL_GrGLStandard == glCtx->standard() ...
4 years, 11 months ago (2016-01-19 22:28:06 UTC) #5
bsalomon
https://codereview.chromium.org/1594483003/diff/150001/gm/rectangletexture.cpp File gm/rectangletexture.cpp (right): https://codereview.chromium.org/1594483003/diff/150001/gm/rectangletexture.cpp#newcode70 gm/rectangletexture.cpp:70: if (!(kGL_GrGLStandard == glCtx->standard() && glCtx->version() >= GR_GL_VER(3, 1)) ...
4 years, 11 months ago (2016-01-19 22:37:52 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1594483003/170001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1594483003/170001
4 years, 11 months ago (2016-01-19 22:38:43 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/5466)
4 years, 11 months ago (2016-01-19 22:40:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1594483003/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1594483003/190001
4 years, 11 months ago (2016-01-19 22:46:13 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/5467)
4 years, 11 months ago (2016-01-19 22:48:15 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1594483003/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1594483003/210001
4 years, 11 months ago (2016-01-20 14:07:23 UTC) #20
commit-bot: I haz the power
4 years, 11 months ago (2016-01-20 14:18:19 UTC) #22
Message was sent while issue was closed.
Committed patchset #12 (id:210001) as
https://skia.googlesource.com/skia/+/e179a9167f71dfc41668b05d40082aae76367fa6

Powered by Google App Engine
This is Rietveld 408576698