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

Issue 4579049: Correct use of GetVersion() API. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by twiz
Modified:
12 years, 10 months ago
Reviewers:
nduca, dgkoch
Base URL:
http://angleproject.googlecode.com/svn/trunk/src/
Visibility:
Public.

Description

The GetVersion() API returns the version of the os in a little-endian form: |Build Number|:16 |Minor Version|: 8 |Major Version|: 8 To compare versions, some byte swizzling is required to re-order the low and high bytes of the major/minor versions. BUG=crbug.com/85619 TEST=None. Committed: http://code.google.com/p/angleproject/source/detail?r=688

Patch Set 1 #

Patch Set 2 : Add changes. #

Total comments: 1

Patch Set 3 : Addressing comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -2 lines) Patch
M libEGL/Surface.cpp View 1 2 3 chunks +19 lines, -2 lines 0 comments Download

Messages

Total messages: 9
twiz
Please take a look.
12 years, 10 months ago (2011-06-10 16:03:22 UTC) #1
dgkoch
On 2011/06/10 16:03:22, twiz wrote: > Please take a look. Not seeing any changes here. ...
12 years, 10 months ago (2011-06-10 17:50:57 UTC) #2
twiz
On 2011/06/10 17:50:57, dgkoch wrote: > On 2011/06/10 16:03:22, twiz wrote: > > Please take ...
12 years, 10 months ago (2011-06-10 17:59:58 UTC) #3
dgkoch
one suggestion. Looks ok otherwise http://codereview.appspot.com/4579049/diff/4001/Surface.cpp File Surface.cpp (right): http://codereview.appspot.com/4579049/diff/4001/Surface.cpp#newcode95 Surface.cpp:95: if (mWindow && (getComparableOSVersion() ...
12 years, 10 months ago (2011-06-10 18:18:59 UTC) #4
dgkoch
On 2011/06/10 17:59:58, twiz wrote: > > When I try to build, I'm getting conflicts ...
12 years, 10 months ago (2011-06-10 18:20:24 UTC) #5
twiz
On 2011/06/10 18:20:24, dgkoch wrote: > On 2011/06/10 17:59:58, twiz wrote: > > > > ...
12 years, 10 months ago (2011-06-10 18:55:30 UTC) #6
twiz
On 2011/06/10 18:55:30, twiz wrote: > On 2011/06/10 18:20:24, dgkoch wrote: > > On 2011/06/10 ...
12 years, 10 months ago (2011-06-10 19:58:00 UTC) #7
dgkoch
Thanks. LGTM. I've added you as a committer.
12 years, 10 months ago (2011-06-10 21:50:53 UTC) #8
dgkoch
12 years, 10 months ago (2011-06-10 21:52:33 UTC) #9
On 2011/06/10 18:55:30, twiz wrote:
> On 2011/06/10 18:20:24, dgkoch wrote:
> > On 2011/06/10 17:59:58, twiz wrote:
> > > 
> > > When I try to build, I'm getting conflicts with the max/min defined in
> > WinDef.h
> > > and std::max.  The macros of overriding the std libraries.  Is this a
known
> > > issue?  I'm using the gyp-generated projects to build.
> > 
> > Is this without your changes?  I'm not aware of any issues (at least not in
> the
> > standalone projects).  Can't speak for the gyp versions though.
> 
> I did some investigation:  The gyp projects are not setting the NOMINMAX
define
> to disable the macros.  The ANGLE.sln project has this setting.  Who uses the
> gyp files?  Perhaps they are being pulled in by other gyp projects that set
this
> define, which is why it is not an issue.

The gyp files are used in the chrome build process, so I'd say it's fairly
likely they inherit the setting, but I've never built it that way myself.
Sign in to reply to this message.

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