LGTM Another pattern to ensure that the base-class version is also called is: void baseclass::release() ...
13 years, 4 months ago
(2011-08-09 17:52:29 UTC)
#2
LGTM
Another pattern to ensure that the base-class version is also called is:
void baseclass::release() {
this->onRelease(); // subclass
... base class release code
}
Yeah in this case it'd have to be two levels of that pattern. GrResource already ...
13 years, 4 months ago
(2011-08-09 17:55:10 UTC)
#3
Yeah in this case it'd have to be two levels of that pattern.
GrResource already has release which calls subclass's onRelease.
Now I want GrGLStencilBuffer to call GrStencilBuffer's onRelease, so I'd
need an onOnRelease :)
On Tue, Aug 9, 2011 at 1:52 PM, <reed@google.com> wrote:
> LGTM
>
> Another pattern to ensure that the base-class version is also called is:
>
> void baseclass::release() {
> this->onRelease(); // subclass
> ... base class release code
>
> }
>
>
http://codereview.appspot.com/**4810088/<http://codereview.appspot.com/4810088/>
>
doh! On Tue, Aug 9, 2011 at 10:54 AM, Brian Salomon <bsalomon@google.com> wrote: > Yeah ...
13 years, 4 months ago
(2011-08-09 17:58:03 UTC)
#4
doh!
On Tue, Aug 9, 2011 at 10:54 AM, Brian Salomon <bsalomon@google.com> wrote:
> Yeah in this case it'd have to be two levels of that pattern.
> GrResource already has release which calls subclass's onRelease.
> Now I want GrGLStencilBuffer to call GrStencilBuffer's onRelease, so I'd
> need an onOnRelease :)
>
> On Tue, Aug 9, 2011 at 1:52 PM, <reed@google.com> wrote:
>>
>> LGTM
>>
>> Another pattern to ensure that the base-class version is also called is:
>>
>> void baseclass::release() {
>> this->onRelease(); // subclass
>> ... base class release code
>> }
>>
>> http://codereview.appspot.com/4810088/
>
>
Issue 4810088: Fix crash in GrStencilBuffer at context teardown
(Closed)
Created 13 years, 4 months ago by bsalomon
Modified 13 years, 4 months ago
Reviewers: reed1
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 0