Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(6005)

Issue 2108047: Changed raw pointers to RefCountObject to BindingPointers....

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by apatrick1
Modified:
13 years, 7 months ago
Reviewers:
dgkoch
CC:
angleproject-review_googlegroups.com
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Changed raw pointers to RefCountObject to BindingPointers. I suspect there is a bug whereby an owning reference to a RefCountObject is temporarily assigned to a BindingPointer, causing it to be destroyed and making the owning raw pointer go dangling. Making this change for mColorbufferProxy seemed to fix a crash in Chrome with canvas 2D. This was previously landed in r417 and r418.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -42 lines) Patch
M src/libGLESv2/Context.h View 2 chunks +3 lines, -5 lines 0 comments Download
M src/libGLESv2/Context.cpp View 9 chunks +11 lines, -19 lines 0 comments Download
M src/libGLESv2/Texture.h View 3 chunks +3 lines, -2 lines 0 comments Download
M src/libGLESv2/Texture.cpp View 4 chunks +8 lines, -16 lines 0 comments Download

Messages

Total messages: 2
apatrick1
Here's the first patch. I wrote it against r416 so it should be easier to ...
13 years, 8 months ago (2010-09-13 22:07:43 UTC) #1
dgkoch
13 years, 7 months ago (2010-09-14 04:11:35 UTC) #2
Ah, I think I understand this now.  I suspect the bug was because Texture.cpp
had an explicit mColorbufferProxy->addRef(), but there was no corresponding
Release call. 

In any case, I think this is a good change. 

Approved.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b