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

Issue 791493003: Skia: Track the fIsWrapped separately so that we delete correctly (Closed)

Created:
6 years ago by hendrikw
Modified:
6 years ago
Reviewers:
bsalomon
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Skia: Track the fIsWrapped separately so that we delete correctly GrGlTextureRenderTarget inherits virtually from both GrGlRenderTarget and GrGLTexture, which both have a 'wrap' flag. The passed in wrap setting could be different for the two base classes, but since it's virtually inherited, they share the same flag, so they're either both on, or both off. As a result, we fail to delete the frambuffer. To fix this, we now keep a separate isWrapped flag for GrGlRenderTarget. BUG=437998 Committed: https://skia.googlesource.com/skia/+/9a0c7abfd7ce8694136840fa224e99579b8329f6

Patch Set 1 #

Total comments: 1

Patch Set 2 : Comments + GlGRTexture #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -2 lines) Patch
M src/gpu/gl/GrGLRenderTarget.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLRenderTarget.cpp View 4 chunks +4 lines, -1 line 0 comments Download
M src/gpu/gl/GrGLTexture.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLTexture.cpp View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 9 (2 generated)
hendrikw
PTAL Should we be doing the same with GrGLTexture? It currently works because GrGLTexture is ...
6 years ago (2014-12-09 19:45:35 UTC) #2
bsalomon
https://codereview.chromium.org/791493003/diff/1/src/gpu/gl/GrGLRenderTarget.h File src/gpu/gl/GrGLRenderTarget.h (right): https://codereview.chromium.org/791493003/diff/1/src/gpu/gl/GrGLRenderTarget.h#newcode78 src/gpu/gl/GrGLRenderTarget.h:78: bool fIsWrapped; Can you add a comment that we ...
6 years ago (2014-12-09 20:02:06 UTC) #3
bsalomon
On 2014/12/09 19:45:35, hendrikw wrote: > PTAL > > Should we be doing the same ...
6 years ago (2014-12-09 20:03:42 UTC) #4
hendrikw
On 2014/12/09 20:03:42, bsalomon wrote: > On 2014/12/09 19:45:35, hendrikw wrote: > > PTAL > ...
6 years ago (2014-12-09 21:55:09 UTC) #5
bsalomon
lgtm
6 years ago (2014-12-09 22:16:12 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/791493003/20001
6 years ago (2014-12-09 22:17:29 UTC) #8
commit-bot: I haz the power
6 years ago (2014-12-09 22:26:52 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/9a0c7abfd7ce8694136840fa224e99579b8329f6

Powered by Google App Engine
This is Rietveld 408576698