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

Issue 1941353003: Allow stencils to be attached to render targets created via SkSurface::MakeFromBackendTextureAsRend… (Closed)

Created:
4 years, 7 months ago by ericrk
Modified:
4 years, 7 months ago
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Allow stencils to be attached to render targets created via SkSurface::MakeFromBackendTextureAsRenderTarget This is a regression from "Refactor to separate backend object lifecycle and GpuResource budget decision". GrGLRenderer::canAttemptStencilAttachment was incorrectly returning false for all wrapped render targets. This function should return false only if the FBO is wrapped (unowned). If the FBO is owned by Skia, we can attach stencils. BUG=608238 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1924183003 Committed: https://skia.googlesource.com/skia/+/c4025189d31efcb0d54bf14b7712b38725f86c13

Patch Set 1 : #

Total comments: 1

Patch Set 2 : Fix unit tests to avoid ANGLE issues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -94 lines) Patch
M src/gpu/gl/GrGLRenderTarget.cpp View 1 1 chunk +4 lines, -4 lines 0 comments Download
M tests/SurfaceTest.cpp View 1 6 chunks +155 lines, -90 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
ericrk
Dug into the failure with the other CL and took a different approach to the ...
4 years, 7 months ago (2016-05-03 23:41:21 UTC) #5
bsalomon
lgtm
4 years, 7 months ago (2016-05-03 23:46:14 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1941353003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1941353003/60001
4 years, 7 months ago (2016-05-04 00:03:23 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:60001) as https://skia.googlesource.com/skia/+/0736f3386820f19c0fe90b5dda2094e253780071
4 years, 7 months ago (2016-05-04 00:14:13 UTC) #10
Kimmo Kinnunen
Thanks for fixing this, I did not understand to think about the rectangle textures. Small ...
4 years, 7 months ago (2016-05-04 06:46:22 UTC) #11
jvanverth1
A revert of this CL (patchset #1 id:60001) has been created in https://codereview.chromium.org/1947143002/ by jvanverth@google.com. ...
4 years, 7 months ago (2016-05-04 17:08:00 UTC) #12
ericrk
Touched up the CL to avoid issues on AGNLE. Also added a comment to explain ...
4 years, 7 months ago (2016-05-04 18:42:47 UTC) #15
bsalomon
lgtm. Given that we want to eliminate GrRenderTarget and have no plans to support adopting ...
4 years, 7 months ago (2016-05-04 18:45:48 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1941353003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1941353003/80001
4 years, 7 months ago (2016-05-04 18:47:35 UTC) #18
commit-bot: I haz the power
4 years, 7 months ago (2016-05-04 19:02:02 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:80001) as
https://skia.googlesource.com/skia/+/c4025189d31efcb0d54bf14b7712b38725f86c13

Powered by Google App Engine
This is Rietveld 408576698