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

Issue 2120045: Replaced raw pointers to RefCountObject to BindingPointer....

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

Description

Replaced raw pointers to RefCountObject to BindingPointer. This fixes the ANGLE crashes in Chrome when using canvas 2D. The issue was this: Renderbuffer *mColorbufferProxy = new RenderBuffer(...); // Reference count is zero. BindingPointer<RenderBuffer> tempRef; tempRef.set(mColorbufferProxy); // Reference count is one. tempRef.set(NULL); // Reference count is zero and object is destroyed, leaving mColorbufferProxy dangling. I also initially suspected the problem was that FBOs are not treated as shared and the implementation of shared FBOs is still in the patch. I believe GLES2 supports shared FBOs. My reading of the GLES2 spec is that when a shared object is deleted, it loses its id but retains its state if left bound elsewhere. I added that to RefCountObject.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -102 lines) Patch
M src/libGLESv2/Context.h View 3 chunks +7 lines, -11 lines 0 comments Download
M src/libGLESv2/Context.cpp View 19 chunks +57 lines, -81 lines 0 comments Download
M src/libGLESv2/Framebuffer.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/libGLESv2/Framebuffer.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M src/libGLESv2/RefCountObject.h View 1 chunk +4 lines, -1 line 0 comments Download
M src/libGLESv2/RefCountObject.cpp View 3 chunks +19 lines, -0 lines 0 comments Download
M src/libGLESv2/ResourceManager.h View 3 chunks +9 lines, -1 line 0 comments Download
M src/libGLESv2/ResourceManager.cpp View 6 chunks +70 lines, -3 lines 0 comments Download
M src/libGLESv2/Texture.h View 3 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 2
apatrick1
I think this resolves our outstanding ANGLE issues. Can you review? Thanks, Al
13 years, 8 months ago (2010-09-11 01:35:06 UTC) #1
vangelis
13 years, 8 months ago (2010-09-11 02:09:05 UTC) #2
This looks reasonable to me.  Al, please check it in so that we can give it a
try. Daniel, if you have any objections, please feel free to back it out.

On 2010/09/11 01:35:06, apatrick1 wrote:
> I think this resolves our outstanding ANGLE issues. Can you review?
> 
> Thanks,
> 
> Al
Sign in to reply to this message.

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