chromium/src/third_party/gles2_book.git
11 months agobring back deleted folder master
jam@chromium.org [Mon, 5 Aug 2013 21:28:04 +0000 (21:28 +0000)]
bring back deleted folder

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@215691 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

23 months agoMake 'License' field in third-party metadata required
steveblock@chromium.org [Wed, 1 Aug 2012 15:50:29 +0000 (15:50 +0000)]
Make 'License' field in third-party metadata required

This will simplify the addition of a tool to check licenses for the purpose of
the Android WebView build.

See also http://codereview.chromium.org/10827099

Also adds other missing fields to these README.chromium files as required by
presubmit checks and fixes a regex used to enforce this.

BUG=138921

Review URL: https://chromiumcodereview.appspot.com/10821103

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@149423 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoFixed stencil Test example. Writing to stencil buffer was getting disabled after... git-svn
alokp@chromium.org [Wed, 31 Aug 2011 20:55:20 +0000 (20:55 +0000)]
Fixed stencil Test example. Writing to stencil buffer was getting disabled after the first frame.
Review URL: http://codereview.chromium.org/7740058

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@99035 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoFixed Stencil test.
alokp@chromium.org [Fri, 29 Jul 2011 16:41:46 +0000 (16:41 +0000)]
Fixed Stencil test.
- It was using a depth value greated than depth clear value.
- Color for one of the quads was completely transparent, making it invisible when composited on a webpage.
- Removed redundant glGetIntegerv calls from draw loop.
Review URL: http://codereview.chromium.org/7530011

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@94688 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

3 years agoInitialized variables passed to GL functions. Command buffer now only allows initiali...
alokp@chromium.org [Tue, 19 Jul 2011 20:32:47 +0000 (20:32 +0000)]
Initialized variables passed to GL functions. Command buffer now only allows initialized variables unless it is compiled for native-client. We would need to exclude pepper plugins too. For now I have initialized the gpu demo variables.
TBR=gman
Review URL: http://codereview.chromium.org/7448011

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@93087 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

3 years agoRemove the comments setting emands and vim tab width and expansion variables.
tony@chromium.org [Mon, 11 Jul 2011 20:22:46 +0000 (20:22 +0000)]
Remove the comments setting emands and vim tab width and expansion variables.

These were added in r28089 (http://codereview.chromium.org/256059) but
are unnecessary bloat for everyone to carry around, even those that don't
use emacs or vim.

In an earlier change, I added editor config files in src/tools/emacs/
and src/tools/vim/ so users of the appropriate editor can source those
instead.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/7310019

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@92046 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

3 years agoCleaning up third_party readmes and adding a template for future use.
cdn@chromium.org [Wed, 16 Mar 2011 01:17:52 +0000 (01:17 +0000)]
Cleaning up third_party readmes and adding a template for future use.
The next step is a presubmit rule that will make people use the template.
We are doing this so that we can better track dependancy versions.

BUG=None
TEST=N/A
Review URL: http://codereview.chromium.org/6610030

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@78316 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

3 years agoChanges some of the dependencies to remove
gman@chromium.org [Thu, 10 Feb 2011 00:49:11 +0000 (00:49 +0000)]
Changes some of the dependencies to remove
client side arrays.

TEST=none
BUG=71717

Review URL: http://codereview.chromium.org/6459013

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@74392 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

3 years agoMoved the logic of maintaining the current context to gles2 helper library.
alokp@chromium.org [Tue, 21 Dec 2010 17:12:55 +0000 (17:12 +0000)]
Moved the logic of maintaining the current context to gles2 helper library.
Review URL: http://codereview.chromium.org/5927002

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@69838 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 years agoAdd svn:ignore properties for most of the rest of the Chrome Linux checkout.
brettw@chromium.org [Wed, 16 Jun 2010 16:19:22 +0000 (16:19 +0000)]
Add svn:ignore properties for most of the rest of the Chrome Linux checkout.

TEST=none
BUG=none

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@49954 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 years agoAdded EGL based GLContext.
apatrick@chromium.org [Wed, 9 Jun 2010 22:06:15 +0000 (22:06 +0000)]
Added EGL based GLContext.
Python script to generate code to dynamically bind to GL functions (native GL, OSMesa, EGL or mock GL for unit tests). This replaces GLEW because GLEW doesn't bind to the GLES dialect of GL.
Moved the mock GL code into app/gfx/gl.
Updated the GPU code and AcceleratedSurface to use the new GL bindings.

TEST=trybots
BUG=none

Review URL: http://codereview.chromium.org/2134006

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@49332 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 years agoManual Review: Adding a bunch of ignores for deps pulls and some project files
thomasvl@chromium.org [Thu, 3 Jun 2010 20:55:51 +0000 (20:55 +0000)]
Manual Review: Adding a bunch of ignores for deps pulls and some project files

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@48866 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 years agoUncommented out precision statements now that glsl translator is enabled. This also...
alokp@chromium.org [Thu, 20 May 2010 14:27:06 +0000 (14:27 +0000)]
Uncommented out precision statements now that glsl translator is enabled. This also fixes Pepper3D ui-test.
BUG=44603
Review URL: http://codereview.chromium.org/2105012

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@47793 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 years agoPass tools/licenses.py for third_party/gles_book and third_party/glew.
alokp@chromium.org [Fri, 26 Mar 2010 20:01:01 +0000 (20:01 +0000)]
Pass tools/licenses.py for third_party/gles_book and third_party/glew.
BUG=39242

Review URL: http://codereview.chromium.org/1340005

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@42802 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 years agoAdd a bunch of entries to svn:ignore so we won't see so many .vcprojs and similar...
pkasting@chromium.org [Tue, 9 Mar 2010 22:32:58 +0000 (22:32 +0000)]
Add a bunch of entries to svn:ignore so we won't see so many .vcprojs and similar in svn status.

TBR=evanm
BUG=none
TEST=none

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@41082 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 years agoChanges necessary to compile gpu demos on linux. It is not functional yet just compiling.
alokp@chromium.org [Wed, 3 Feb 2010 17:02:27 +0000 (17:02 +0000)]
Changes necessary to compile gpu demos on linux. It is not functional yet just compiling.
BUG=26099
Review URL: http://codereview.chromium.org/552240

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@37977 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 years agoCommented out precision from shaders. These examples were done on my new desktop...
alokp@chromium.org [Sat, 16 Jan 2010 23:16:39 +0000 (23:16 +0000)]
Commented out precision from shaders. These examples were done on my new desktop with latest nvidia drivers which does not complain about precision. But it does not compile on most other drivers.
Review URL: http://codereview.chromium.org/551057

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@36462 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 years agoAdded stencil-test demo.
alokp@chromium.org [Fri, 15 Jan 2010 21:32:20 +0000 (21:32 +0000)]
Added stencil-test demo.
PS: I have not moved the repeated code to the base class for this demo because this is the last one I intend to submit before starting to port the demos to pepper. I will refactor all the demos to eliminate repeating code in light of pepper framework.
BUG=26099
TEST=Run stencil_test executable. You should see four different-colored quads.
Review URL: http://codereview.chromium.org/545092

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@36410 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 years agoAdded texture wrap demo.
alokp@chromium.org [Fri, 15 Jan 2010 19:54:01 +0000 (19:54 +0000)]
Added texture wrap demo.
BUG=26099
TEST=Run texture_wrap executable. You should see three quads, each with a different texture wrapping mode.
Review URL: http://codereview.chromium.org/552012

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@36394 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 years agoModified stencil test example to use VBOs instead of client-side vertex arrays.
alokp@chromium.org [Fri, 15 Jan 2010 19:34:54 +0000 (19:34 +0000)]
Modified stencil test example to use VBOs instead of client-side vertex arrays.
BUG=26099
Review URL: http://codereview.chromium.org/550058

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@36388 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 years agoAdded cubemap demo.
alokp@chromium.org [Fri, 15 Jan 2010 16:32:01 +0000 (16:32 +0000)]
Added cubemap demo.
BUG=26099
Review URL: http://codereview.chromium.org/549063

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@36356 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 years agoModified texture wrap example to use VBOs instead of client-side vertex arrays.
alokp@chromium.org [Thu, 14 Jan 2010 22:13:47 +0000 (22:13 +0000)]
Modified texture wrap example to use VBOs instead of client-side vertex arrays.
BUG=26099
Review URL: http://codereview.chromium.org/545065

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@36279 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 years agoAdded simple texture demo.
alokp@chromium.org [Thu, 14 Jan 2010 21:06:11 +0000 (21:06 +0000)]
Added simple texture demo.
BUG=26099
TEST=Run simple_texture_2d executable. You should see a square with checker-board pattern.
Review URL: http://codereview.chromium.org/543063

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@36267 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 years agoModified texture cubemap example to use VBOs instead of client-side vertex arrays.
alokp@chromium.org [Thu, 14 Jan 2010 21:05:53 +0000 (21:05 +0000)]
Modified texture cubemap example to use VBOs instead of client-side vertex arrays.
BUG=26099
TEST-none
Review URL: http://codereview.chromium.org/552001

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@36266 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 years agoSwapBuffer is now synchronous. No need for glFlush.
alokp@chromium.org [Thu, 14 Jan 2010 16:24:14 +0000 (16:24 +0000)]
SwapBuffer is now synchronous. No need for glFlush.
Review URL: http://codereview.chromium.org/536053

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@36241 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 years agoAdded mip-mapping demo.
alokp@chromium.org [Thu, 14 Jan 2010 01:08:54 +0000 (01:08 +0000)]
Added mip-mapping demo.
BUG=26099
TEST=Run mip_map_2d executable. You should see two quads with checker-board pattern. The left will exhibit aliasing but right one will be anti-aliased.
Review URL: http://codereview.chromium.org/542067

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@36209 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 years agoAdded simple vertex shader demo. I had to make the following modifications to third...
alokp@chromium.org [Wed, 13 Jan 2010 17:20:44 +0000 (17:20 +0000)]
Added simple vertex shader demo. I had to make the following modifications to third-party code:
- Changed client-side vertex array to VBO
- Used GL_UNSIGNED_SHORT instead of GL_UNSIGNED_INT in glDrawElements because GL_UNSIGNED_INT is not supported for by OpenGL ES 2.0 for indices
BUG=26099
TEST=Run simple_vertex_shader executable, you should see a rotating cube.
Review URL: http://codereview.chromium.org/543015

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@36127 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 years agoRenamed gles_book_examples.gyp to gles2_book.gyp and hooked eveything back together.
alokp@chromium.org [Sat, 9 Jan 2010 18:15:32 +0000 (18:15 +0000)]
Renamed gles_book_examples.gyp to gles2_book.gyp and hooked eveything back together.
TBR=apatrick

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@35876 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 years agoRenamed gles_book_examples to gles2_book to make it shorter and more correct. I still...
alokp@chromium.org [Sat, 9 Jan 2010 17:06:42 +0000 (17:06 +0000)]
Renamed gles_book_examples to gles2_book to make it shorter and more correct. I still need to rename gles_book_examples.gyp to gles2_book.gyp. I will do it in another CL as svn does not like changes in renamed directories.
TBR=apatrick
Review URL: http://codereview.chromium.org/543002

git-svn-id: http://src.chromium.org/svn/trunk/src/third_party/gles2_book@35875 4ff67af0-8c30-449e-8e8b-ad334ec8d88c