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

Issue 5940046: First version of ANGLE GL interface (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by robertphillips
Modified:
12 years, 9 months ago
Reviewers:
epoger, bsalomon
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

First version of ANGLE GL interface For this delivery I propose not delivering the .gyp files - since they need a lot of work (more later). I have added a new ANGLE GL interface in src/gpu/gl/angle and modified the interface validation test, bench, gm and SampleApp to use it. Everything is guarded behind a SK_ANGLE #define so w/o the .gyps no part of my changes will be compiled. Note that I have set it up so we can switch between normal native OpenGL and ANGLE merely by specifying "--angle" to gm and SampleApp (provided ANGLE is compiled in). Elliot - here all all the problems I know of with the .gyps 1) although the SK_MESA flag is only added in common.gypi I found this wasn't sufficient and also needed to add a 'defines' block to common_conditions.gypi. 2) I don't know how to attach ANGLE to Skia correctly so currently have hard paths to the ANGLE libs I (manually) copied to third_party/externals/angle. 3) For some reason the 'libraries' and 'include_dirs' settings in gpu.gyp weren't propagating to the executables so I replicated these blocks in bench.gypi, tests.gyp, gm.gyp and SampleApp.gyp.

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fixed angle namespace issues w.r.t. angle constants #

Total comments: 19

Patch Set 3 : Addressed issues from code review(s) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+667 lines, -19 lines) Patch
M bench/benchmain.cpp View 4 chunks +16 lines, -0 lines 0 comments Download
M gm/gmmain.cpp View 1 2 6 chunks +28 lines, -3 lines 0 comments Download
M gyp/SampleApp.gyp View 1 chunk +13 lines, -0 lines 0 comments Download
M gyp/bench.gypi View 1 chunk +11 lines, -0 lines 0 comments Download
M gyp/common.gypi View 2 chunks +13 lines, -0 lines 0 comments Download
M gyp/common_conditions.gypi View 1 chunk +7 lines, -0 lines 0 comments Download
M gyp/common_variables.gypi View 2 chunks +2 lines, -0 lines 0 comments Download
M gyp/gm.gyp View 1 chunk +11 lines, -0 lines 0 comments Download
M gyp/gpu.gyp View 5 chunks +35 lines, -0 lines 0 comments Download
M gyp/tests.gyp View 1 chunk +13 lines, -0 lines 0 comments Download
M gyp/views.gyp View 1 chunk +13 lines, -0 lines 0 comments Download
M include/gpu/gl/GrGLInterface.h View 1 chunk +9 lines, -0 lines 0 comments Download
A include/gpu/gl/SkANGLEGLContext.h View 1 chunk +49 lines, -0 lines 0 comments Download
M include/views/SkOSWindow_Win.h View 1 2 4 chunks +15 lines, -1 line 0 comments Download
M samplecode/SampleApp.h View 1 chunk +1 line, -1 line 0 comments Download
M samplecode/SampleApp.cpp View 8 chunks +65 lines, -9 lines 0 comments Download
M samplecode/SampleDegenerateTwoPtRadials.cpp View 1 chunk +0 lines, -1 line 0 comments Download
A src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp View 1 2 1 chunk +130 lines, -0 lines 0 comments Download
A src/gpu/gl/angle/SkANGLEGLContext.cpp View 1 2 1 chunk +107 lines, -0 lines 0 comments Download
M src/views/win/SkOSWindow_win.cpp View 1 2 5 chunks +118 lines, -2 lines 0 comments Download
M tests/GLInterfaceValidation.cpp View 2 chunks +9 lines, -0 lines 0 comments Download
M third_party/glu/libtess/sweep.c View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11
robertphillips
http://codereview.appspot.com/5940046/diff/1/samplecode/SampleDegenerateTwoPtRadials.cpp File samplecode/SampleDegenerateTwoPtRadials.cpp (left): http://codereview.appspot.com/5940046/diff/1/samplecode/SampleDegenerateTwoPtRadials.cpp#oldcode69 samplecode/SampleDegenerateTwoPtRadials.cpp:69: SkRect rect; This just fixes a Windows compiler complaint ...
12 years, 9 months ago (2012-03-27 20:47:59 UTC) #1
robertphillips
Brian - I have upload a fix for the ANGLE constant issue.
12 years, 9 months ago (2012-03-28 13:05:34 UTC) #2
bsalomon
Overall LGTM. I'll leave the gyp / dependency issues to you and epoger to sort ...
12 years, 9 months ago (2012-03-28 14:06:11 UTC) #3
epoger
non-gyp files LGTM I agree with Brian that the non-gyp files are OK (modulo a ...
12 years, 9 months ago (2012-03-28 14:45:52 UTC) #4
robertphillips
So ... what should we do w.r.t. the sweep.c change? As a far background task ...
12 years, 9 months ago (2012-03-28 15:31:42 UTC) #5
robertphillips
http://codereview.appspot.com/5940046/diff/3001/gm/gmmain.cpp File gm/gmmain.cpp (right): http://codereview.appspot.com/5940046/diff/3001/gm/gmmain.cpp#newcode641 gm/gmmain.cpp:641: SkDebugf(" --angle: use ANGLE backend on Windows.\n"); On 2012/03/28 ...
12 years, 9 months ago (2012-03-28 15:35:42 UTC) #6
robertphillips
committed as r3519
12 years, 9 months ago (2012-03-28 17:05:48 UTC) #7
epoger
On 2012/03/28 15:31:42, robertphillips wrote: > So ... what should we do w.r.t. the sweep.c ...
12 years, 9 months ago (2012-03-28 17:16:54 UTC) #8
epoger
On 2012/03/28 17:16:54, epoger wrote: > #ifdef SKIA_VERSION_MAJOR Actually, I guess SKIA_VERSION_MAJOR wouldn't be defined ...
12 years, 9 months ago (2012-03-28 17:18:01 UTC) #9
robertphillips
So ... what do we want to do? It appears that the way we are ...
12 years, 9 months ago (2012-03-28 17:26:18 UTC) #10
bsalomon
12 years, 9 months ago (2012-03-28 17:44:36 UTC) #11
On 2012/03/28 17:26:18, robertphillips wrote:
> So ... what do we want to do? It appears that the way we are tracking changes
to
> the glu/libtess project is just recording them in README.skia. The pro of the
> #ifdef form is that it preserves all of the old code, the con is that it could
> quickly get a bit cumbersome.

IMO documenting it in the README.skia is sufficient.
Sign in to reply to this message.

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