From owner-freebsd-chromium@FreeBSD.ORG Tue Aug 26 13:37:36 2014 Return-Path: Delivered-To: freebsd-chromium@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 26F6DEE5 for ; Tue, 26 Aug 2014 13:37:36 +0000 (UTC) Received: from erelay4.ox.registrar-servers.com (erelay4.ox.registrar-servers.com [192.64.117.33]) by mx1.freebsd.org (Postfix) with ESMTP id F28443750 for ; Tue, 26 Aug 2014 13:37:35 +0000 (UTC) Received: from localhost (unknown [127.0.0.1]) by erelay1.ox.registrar-servers.com (Postfix) with ESMTP id 729D222050BC for ; Tue, 26 Aug 2014 13:37:35 +0000 (UTC) Received: from erelay1.ox.registrar-servers.com ([127.0.0.1]) by localhost (erelay.ox.registrar-servers.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 3VEqIe05xFyK for ; Tue, 26 Aug 2014 09:37:33 -0400 (EDT) Received: from imap11.ox.privateemail.com (imap11.ox.privateemail.com [192.64.116.222]) by erelay1.ox.registrar-servers.com (Postfix) with ESMTP id 8D2E322050AB for ; Tue, 26 Aug 2014 09:37:33 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 127CD8800E4 for ; Tue, 26 Aug 2014 09:37:33 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap11.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap11.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Z0p3MS78dGTI for ; Tue, 26 Aug 2014 09:37:32 -0400 (EDT) Received: from localhost (186.Red-81-35-74.dynamicIP.rima-tde.net [81.35.74.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 606018800D2 for ; Tue, 26 Aug 2014 09:37:32 -0400 (EDT) Date: Tue, 26 Aug 2014 15:36:13 +0200 From: Carlos Jacobo Puga Medina To: freebsd-chromium@freebsd.org Subject: Re: chromium 37 up for testing (and polishing) Message-Id: <20140826153613.a1203a3d3d3e3ef56691b1fb@fbsd.es> X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.22; i386-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-chromium@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD-specific Chromium issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2014 13:37:36 -0000 On Sun, 24 Aug 2014 13:25:15 +0200 Carlos Jacobo Puga Medina wrote: > On Sun, 24 Aug 2014 13:17:00 +0200 > Carlos Jacobo Puga Medina wrote: >=20 > > On Sun, 24 Aug 2014 11:56:56 +0200 > > Carlos Jacobo Puga Medina wrote: > >=20 > > > Hi Ren=E9, > > >=20 > > > I fixed patch-third_party__khronos__GLES2__gl2.h which missed include= > > >=20 > > > Cheers, > >=20 > > All patches were reviewed and are attached to this mail. >=20 > --- ./gpu/command_buffer/common/gles2_cmd_format.h.orig 2014-08-20 21:02:= 37.000000000 +0200 > +++ ./gpu/command_buffer/common/gles2_cmd_format.h 2014-08-24 00:50:27.00= 0000000 +0200 > @@ -39,8 +39,8 @@ > typedef double GLdouble; > typedef double GLclampd; > typedef void GLvoid; > -typedef khronos_intptr_t GLintptr; > -typedef khronos_ssize_t GLsizeiptr; > +typedef ptrdiff_t GLintptr; > +typedef ptrdiff_t GLsizeiptr; > =20 > namespace gpu { > namespace gles2 { >=20 > --- ./third_party/mesa/src/include/GLES2/gl2.h.orig 2014-08-20 21:03:54.0= 00000000 +0200 > +++ ./third_party/mesa/src/include/GLES2/gl2.h 2014-08-24 01:13:41.000000= 000 +0200 > @@ -4,6 +4,7 @@ > /* $Revision: 10602 $ on $Date:: 2010-03-04 22:35:34 -0800 #$ */ > =20 > #include > +#include > =20 > #ifdef __cplusplus > extern "C" { > @@ -35,8 +36,8 @@ > typedef khronos_int32_t GLfixed; > =20 > /* GL types for handling large vertex buffer objects */ > -typedef khronos_intptr_t GLintptr; > -typedef khronos_ssize_t GLsizeiptr; > +typedef ptrdiff_t GLintptr; > +typedef ptrdiff_t GLsizeiptr; > =20 > /* OpenGL ES core versions */ > #define GL_ES_VERSION_2_0 1 >=20 > --- ./third_party/khronos/GLES2/gl2.h.orig 2014-08-20 21:03:05.000000000 = +0200 > +++ ./third_party/khronos/GLES2/gl2.h 2014-08-24 11:39:22.000000000 +0200 > @@ -38,6 +38,7 @@ > =20 > #include > #include > +#include > =20 > /* Generated on date 20131202 */ > =20 > @@ -67,8 +68,8 @@ > typedef unsigned int GLuint; > typedef char GLchar; > typedef khronos_float_t GLfloat; > -typedef khronos_ssize_t GLsizeiptr; > -typedef khronos_intptr_t GLintptr; > +typedef ptrdiff_t GLsizeiptr; > +typedef ptrdiff_t GLintptr; > typedef unsigned int GLbitfield; > typedef int GLint; > typedef unsigned char GLboolean; >=20 > --- ./gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc.orig 2014-08-24 12= :26:40.000000000 +0200 > +++ ./gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc 2014-08-24 12:33:0= 1.000000000 +0200 > @@ -31,8 +31,8 @@ > functions->fBindVertexArray =3D glBindVertexArrayOES; > functions->fBlendColor =3D glBlendColor; > functions->fBlendFunc =3D glBlendFunc; > - functions->fBufferData =3D glBufferData; > - functions->fBufferSubData =3D glBufferSubData; > + functions->fBufferData =3D (GrGLBufferDataProc)glBufferData; > + functions->fBufferSubData =3D (GrGLBufferSubDataProc)glBufferSubData; > functions->fClear =3D glClear; > functions->fClearColor =3D glClearColor; > functions->fClearStencil =3D glClearStencil; > @@ -74,7 +74,7 @@ > functions->fInsertEventMarker =3D glInsertEventMarkerEXT; > functions->fLineWidth =3D glLineWidth; > functions->fLinkProgram =3D glLinkProgram; > - functions->fMapBufferSubData =3D glMapBufferSubDataCHROMIUM; > + functions->fMapBufferSubData =3D (GrGLMapBufferSubDataProc)glMapBuffer= SubDataCHROMIUM; > functions->fMapTexSubImage2D =3D glMapTexSubImage2DCHROMIUM; > functions->fPixelStorei =3D glPixelStorei; > functions->fPopGroupMarker =3D glPopGroupMarkerEXT; >=20 > --=20 > Carlos Jacobo Puga Medina Finally, I installed chromium 37.0.2062.94 on 11-CURRENT/i386. I built it w= ith clang 3.4.1. I need to check further before have a respetable opinion, = but for now it looks pretty cool. The following patches fix chromium build with Clang --- ./gpu/command_buffer/common/gles2_cmd_format.h.orig 2014-08-20 21:02:37= .000000000 +0200 +++ ./gpu/command_buffer/common/gles2_cmd_format.h 2014-08-25 23:47:01.0000= 00000 +0200 @@ -39,8 +39,8 @@ typedef double GLdouble; typedef double GLclampd; typedef void GLvoid; -typedef khronos_intptr_t GLintptr; -typedef khronos_ssize_t GLsizeiptr; +typedef ptrdiff_t GLintptr; +typedef ptrdiff_t GLsizeiptr; =20 namespace gpu { namespace gles2 { --- ./gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc.orig 2014-08-24 12:2= 6:40.000000000 +0200 +++ ./gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc 2014-08-24 12:33:01.= 000000000 +0200 @@ -31,8 +31,8 @@ functions->fBindVertexArray =3D glBindVertexArrayOES; functions->fBlendColor =3D glBlendColor; functions->fBlendFunc =3D glBlendFunc; - functions->fBufferData =3D glBufferData; - functions->fBufferSubData =3D glBufferSubData; + functions->fBufferData =3D (GrGLBufferDataProc)glBufferData; + functions->fBufferSubData =3D (GrGLBufferSubDataProc)glBufferSubData; functions->fClear =3D glClear; functions->fClearColor =3D glClearColor; functions->fClearStencil =3D glClearStencil; @@ -74,7 +74,7 @@ functions->fInsertEventMarker =3D glInsertEventMarkerEXT; functions->fLineWidth =3D glLineWidth; functions->fLinkProgram =3D glLinkProgram; - functions->fMapBufferSubData =3D glMapBufferSubDataCHROMIUM; + functions->fMapBufferSubData =3D (GrGLMapBufferSubDataProc)glMapBufferSu= bDataCHROMIUM; functions->fMapTexSubImage2D =3D glMapTexSubImage2DCHROMIUM; functions->fPixelStorei =3D glPixelStorei; functions->fPopGroupMarker =3D glPopGroupMarkerEXT; --- ./ppapi/c/ppb_opengles2.h.orig 2014-08-25 23:42:52.000000000 +0200 +++ ./ppapi/c/ppb_opengles2.h 2014-08-25 23:44:21.000000000 +0200 @@ -34,8 +34,8 @@ typedef long long int GLintptr; typedef long long int GLsizeiptr; #else -typedef long int GLintptr; -typedef long int GLsizeiptr; +typedef __ptrdiff_t GLintptr; +typedef __ptrdiff_t GLsizeiptr; #endif // _WIN64 #endif // __gl2_h_ =20 --- ./third_party/khronos/GLES2/gl2.h.orig 2014-08-20 21:03:05.000000000 +0= 200 +++ ./third_party/khronos/GLES2/gl2.h 2014-08-25 23:48:36.000000000 +0200 @@ -38,6 +38,7 @@ =20 #include #include +#include =20 /* Generated on date 20131202 */ =20 @@ -67,8 +68,8 @@ typedef unsigned int GLuint; typedef char GLchar; typedef khronos_float_t GLfloat; -typedef khronos_ssize_t GLsizeiptr; -typedef khronos_intptr_t GLintptr; +typedef ptrdiff_t GLintptr; +typedef ptrdiff_t GLsizeiptr; typedef unsigned int GLbitfield; typedef int GLint; typedef unsigned char GLboolean; --- ./third_party/mesa/src/include/GLES2/gl2.h.orig 2014-08-20 21:03:54.000= 000000 +0200 +++ ./third_party/mesa/src/include/GLES2/gl2.h 2014-08-25 23:50:18.00000000= 0 +0200 @@ -4,6 +4,7 @@ /* $Revision: 10602 $ on $Date:: 2010-03-04 22:35:34 -0800 #$ */ =20 #include +#include =20 #ifdef __cplusplus extern "C" { @@ -35,8 +36,8 @@ typedef khronos_int32_t GLfixed; =20 /* GL types for handling large vertex buffer objects */ -typedef khronos_intptr_t GLintptr; -typedef khronos_ssize_t GLsizeiptr; +typedef ptrdiff_t GLintptr; +typedef ptrdiff_t GLsizeiptr; =20 /* OpenGL ES core versions */ #define GL_ES_VERSION_2_0 1 --=20 Carlos Jacobo Puga Medina