Just one minor comment. Otherwise LGTM http://codereview.appspot.com/5097044/diff/5001/gpu/include/GrGLInterface.h File gpu/include/GrGLInterface.h (right): http://codereview.appspot.com/5097044/diff/5001/gpu/include/GrGLInterface.h#newcode29 gpu/include/GrGLInterface.h:29: #define GR_GL_VER(major, minor) ...
13 years, 1 month ago
(2011-09-22 14:19:20 UTC)
#4
Just one minor comment. Otherwise LGTM
http://codereview.appspot.com/5097044/diff/5001/gpu/include/GrGLInterface.h
File gpu/include/GrGLInterface.h (right):
http://codereview.appspot.com/5097044/diff/5001/gpu/include/GrGLInterface.h#n...
gpu/include/GrGLInterface.h:29: #define GR_GL_VER(major, minor) (((int)(major)
<< 16) | ((int)(minor)))
Typing as GrFixed is confusing since the interpretation of the fractional part
is x/64k. For example this macro would convert a version of 3.3 to the number
3.0000457763671875 in fixed point representation. In general I think your
approach is sound, but I would typedef it to uint32_t rather than GrFixed to
avoid misinterpretation.
+1 good point. We're really packing two numbers into one int. On 2011/09/22 14:19:20, junov1 ...
13 years, 1 month ago
(2011-09-22 14:21:15 UTC)
#5
+1 good point. We're really packing two numbers into one int.
On 2011/09/22 14:19:20, junov1 wrote:
> Just one minor comment. Otherwise LGTM
>
> http://codereview.appspot.com/5097044/diff/5001/gpu/include/GrGLInterface.h
> File gpu/include/GrGLInterface.h (right):
>
>
http://codereview.appspot.com/5097044/diff/5001/gpu/include/GrGLInterface.h#n...
> gpu/include/GrGLInterface.h:29: #define GR_GL_VER(major, minor) (((int)(major)
> << 16) | ((int)(minor)))
> Typing as GrFixed is confusing since the interpretation of the fractional part
> is x/64k. For example this macro would convert a version of 3.3 to the number
> 3.0000457763671875 in fixed point representation. In general I think your
> approach is sound, but I would typedef it to uint32_t rather than GrFixed to
> avoid misinterpretation.
Issue 5097044: Cleanup handling of GL versions, fix function names
(Closed)
Created 13 years, 1 month ago by bsalomon
Modified 13 years, 1 month ago
Reviewers: junov, reed1, junov1
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 1