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

Issue 4301044: Alt Fix(?) For Issue 4282059 [DLL export Gr for Chrome Multi-DLL build] (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 6 months ago by bsalomon
Modified:
13 years, 6 months ago
Reviewers:
twiz1, reed1
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : better #

Patch Set 3 : more wonderful #

Total comments: 3

Patch Set 4 : fix include order, rebase skia.gyp, add gr_implementation to vs proj #

Patch Set 5 : reupload from root to get all the files, doh! #

Patch Set 6 : latest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -18 lines) Patch
M Makefile View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/include/GrConfig.h View 1 2 3 4 5 2 chunks +30 lines, -2 lines 0 comments Download
M gpu/include/GrContext.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M gpu/include/GrGLInterface.h View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M gpu/include/GrNoncopyable.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M gpu/include/GrRefCnt.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M gpu/src/GrGLInterface.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M gyp/skia.gyp View 1 2 3 4 5 chunks +7 lines, -4 lines 0 comments Download
M include/gpu/SkGpuDevice.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M include/gpu/SkGpuDeviceFactory.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M vs/SampleApp/SampleApp.vcxproj View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M xcode/gpu/gpu.xcodeproj/project.pbxproj View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 16
bsalomon
Is this a viable alternate fix?
13 years, 6 months ago (2011-03-19 20:10:39 UTC) #1
twiz1
On 2011/03/19 20:10:39, bsalomon wrote: > Is this a viable alternate fix? I think this ...
13 years, 6 months ago (2011-03-19 21:11:16 UTC) #2
twiz1
LGTM http://codereview.appspot.com/4301044/diff/4001/gpu/include/GrTypes.h File gpu/include/GrTypes.h (right): http://codereview.appspot.com/4301044/diff/4001/gpu/include/GrTypes.h#newcode25 gpu/include/GrTypes.h:25: #include <stdint.h> Nit: Include ordering.
13 years, 6 months ago (2011-03-19 21:11:34 UTC) #3
twiz1
Also, I pulled this change into Chrome, along with Chrome CL http://codereview.chromium.org/6677105/, and the shared ...
13 years, 6 months ago (2011-03-19 21:23:33 UTC) #4
reed1
I like the move of stdint.h into GrTypes.h, thanks. What is the massive change to ...
13 years, 6 months ago (2011-03-21 11:40:53 UTC) #5
bsalomon
Will update soon, going to do a test multi-dll build locally with the patch to ...
13 years, 6 months ago (2011-03-21 13:40:34 UTC) #6
bsalomon
I just noticed that Jeff already tested the multi-DLL build! If it works then I ...
13 years, 6 months ago (2011-03-21 13:59:34 UTC) #7
reed1
Can we have the sampleapp.sln build via shared libraries? On Mon, Mar 21, 2011 at ...
13 years, 6 months ago (2011-03-21 14:04:50 UTC) #8
bsalomon
I'll file a bug to do so. It'll require expanding what is exported via SK_API ...
13 years, 6 months ago (2011-03-21 14:09:21 UTC) #9
twiz1
On 2011/03/21 13:59:34, bsalomon wrote: > I just noticed that Jeff already tested the multi-DLL ...
13 years, 6 months ago (2011-03-21 14:11:47 UTC) #10
bsalomon
Yeah I see that my local VS2010 includes stdint.h but VS2008 does not :(. If ...
13 years, 6 months ago (2011-03-21 14:40:58 UTC) #11
bsalomon
It looks like this problem was already solved for building skia in chrome. There is ...
13 years, 6 months ago (2011-03-21 15:00:31 UTC) #12
bsalomon
I updated the fix to *not* remove stdint.h from GrConfig since there is one checked ...
13 years, 6 months ago (2011-03-21 18:46:15 UTC) #13
twiz1
LGTM. Eventually, we should drop the .xproj and .sln files from the repro, and force ...
13 years, 6 months ago (2011-03-21 19:27:22 UTC) #14
bsalomon
Yeah, once we can build all the tools (gm, etc), I make sure we can ...
13 years, 6 months ago (2011-03-21 19:40:32 UTC) #15
twiz1
13 years, 6 months ago (2011-03-21 19:48:41 UTC) #16
On 2011/03/21 19:40:32, bsalomon wrote:
> Yeah, once we can build all the tools (gm, etc), I make sure we can build
> everything from the command line on the Mac, etc. then we will remove the
> IDE project files.
> 
> I was able to build after I modified the skia.gyp in Chrome. I had to:
> 
> Add GrGpuGLFixed.cpp
> -and-
> Add these lines
>         ['OS=="win" and component=="shared_library"', {
>           'defines': [
>             'SKIA_DLL',
>             'SKIA_IMPLEMENTATION=1',
> >>          'GR_DLL=1',
> >>          'GR_IMPLEMENTATION=1',
>           ],
>           'dependencies': [
>             '../base/base.gyp:base',
>           ],
>           'direct_dependent_settings': {
>             'defines': [
>               'SKIA_DLL',
> >>            'GR_DLL=1',
>             ],
>           },
>         },],
> 
> Also, I didn't modify the app_base.gyp to find src/skia/config/win/stdint.h.
> Instead in my skia tree inside chrome I reapplied the change to move
> stdint.h from GrConfig.h to GrTypes.h and made GrGLInterface.h include
> config rather than types.

LGTM!

I'm confident that this should allow the submit of my chrome CL: 6677105.

> 
> 
> 
> On Mon, Mar 21, 2011 at 3:27 PM, <mailto:twiz@google.com> wrote:
> 
> > LGTM.
> >
> > Eventually, we should drop the .xproj and .sln files from the repro, and
> > force users to invoke gyp, correct?
> >
> > To confirm:  You built Chrome with these changes without failure?  (Esp
> > in the shared-library config?)
> >
> >
> > http://codereview.appspot.com/4301044/
> >
Sign in to reply to this message.

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