Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1099)

Issue 11883013: Refactored OpenGL embedder that works on Android, Mac or Linux. (Closed)

Created:
7 years, 11 months ago by gram
Modified:
7 years, 6 months ago
Reviewers:
vsm, Ivan Posva
CC:
reviews_dartlang.org, danielro_google.com
Visibility:
Public.

Description

Refactored OpenGL embedder that works on Android, Mac or Linux. To build on/for linux: tools/build.py -a x64 samples To build on/for Mac: tools/build.py -a ia32 samples To build on Linux for Android: tools/bui8ld.py --os=android samples Note that to run on a Mac, you need to delete the first line of the fragment shader in raytrace.dart, that says: precision mediump float; Committed: https://code.google.com/p/dart/source/detail?r=17161

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 28

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 3

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3962 lines, -613 lines) Patch
M dart.gyp View 1 2 3 1 chunk +17 lines, -10 lines 0 comments Download
M runtime/dart-runtime.gyp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A runtime/embedders/openglui/android/android_graphics_handler.h View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/android/android_graphics_handler.cc View 1 2 3 1 chunk +81 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/android/android_input_handler.h View 1 1 chunk +33 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/android/android_log.h View 1 1 chunk +17 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/android/android_resource.h View 1 1 chunk +67 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/android/android_sound_handler.h View 1 1 chunk +52 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/android/android_sound_handler.cc View 1 1 chunk +258 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/android/eventloop.h View 1 1 chunk +39 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/android/eventloop.cc View 1 2 3 1 chunk +238 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/android/main.cc View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/android/support_android.cc View 1 chunk +15 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/context.h View 1 1 chunk +23 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/dart_host.h View 1 1 chunk +58 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/dart_host.cc View 1 1 chunk +126 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/events.h View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/extension.h View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/extension.cc View 1 2 3 4 5 6 7 1 chunk +993 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/gl.dart View 1 2 3 1 chunk +186 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/gl_graphics_handler.h View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/gl_graphics_handler.cc View 1 2 3 1 chunk +64 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/graphics_handler.h View 1 2 3 1 chunk +47 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/input_handler.h View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/input_handler.cc View 1 2 3 1 chunk +68 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/isized.h View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/lifecycle_handler.h View 1 1 chunk +29 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/log.h View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/opengl.h View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/resource.h View 1 1 chunk +57 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/sample.h View 1 2 3 1 chunk +60 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/sound_handler.h View 1 1 chunk +63 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/sound_handler.cc View 1 1 chunk +52 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/timer.h View 1 1 chunk +24 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/timer.cc View 1 1 chunk +66 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/types.h View 1 1 chunk +24 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/vm_glue.h View 1 1 chunk +64 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/vm_glue.cc View 1 2 3 4 5 6 7 1 chunk +344 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/emulator/emulator_embedder.h View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/emulator/emulator_embedder.cc View 1 2 3 1 chunk +73 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/emulator/emulator_graphics_handler.h View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/emulator/emulator_graphics_handler.cc View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/emulator/emulator_resource.h View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/openglui_embedder.gypi View 1 2 3 1 chunk +156 lines, -0 lines 0 comments Download
M samples/android_sample/AndroidManifest.xml View 1 chunk +1 line, -1 line 0 comments Download
M samples/android_sample/android_sample.gyp View 1 2 3 2 chunks +35 lines, -2 lines 0 comments Download
D samples/android_sample/assets/dart/android_extension.dart View 1 chunk +0 lines, -148 lines 0 comments Download
M samples/android_sample/assets/dart/main.dart View 1 2 3 1 chunk +0 lines, -359 lines 0 comments Download
M samples/android_sample/custom_rules.xml View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
D samples/android_sample/jni/Android.mk View 1 chunk +0 lines, -15 lines 0 comments Download
D samples/android_sample/jni/AndroidEmbedder.mk View 1 chunk +0 lines, -12 lines 0 comments Download
D samples/android_sample/jni/AndroidExtension.mk View 1 chunk +0 lines, -14 lines 0 comments Download
D samples/android_sample/jni/Application.mk View 1 chunk +0 lines, -9 lines 0 comments Download
D samples/android_sample/jni/DartNDK.mk View 1 chunk +0 lines, -22 lines 0 comments Download
M samples/android_sample/src/com/google/dartndk/DummyActivity.java View 1 chunk +0 lines, -6 lines 0 comments Download
A samples/mobile_emulator_sample/mobile_emulator_sample.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
A samples/mobile_emulator_sample/mobile_emulator_sample.gyp View 1 2 3 1 chunk +70 lines, -0 lines 0 comments Download
M samples/simplegl/web/gl_driver.dart View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M samples/simplegl/web/raytrace.dart View 1 2 3 4 5 6 7 8 chunks +49 lines, -11 lines 0 comments Download
M samples/simplegl/web/raytrace_driver.dart View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
gram
Happy Monday ;-)
7 years, 11 months ago (2013-01-14 18:23:54 UTC) #1
vsm
Nice! https://chromiumcodereview.appspot.com/11883013/diff/12006/dart.gyp File dart.gyp (right): https://chromiumcodereview.appspot.com/11883013/diff/12006/dart.gyp#newcode124 dart.gyp:124: }, Note, if you add an extra {} ...
7 years, 11 months ago (2013-01-14 21:31:40 UTC) #2
gram
PTAL. Sorry for the multiple patch sets but I keep getting SSL timeouts on uploads. ...
7 years, 11 months ago (2013-01-16 01:49:16 UTC) #3
vsm
lgtm with some nits. I'd prefer having 1 sample directory for all three targets instead ...
7 years, 11 months ago (2013-01-16 05:16:02 UTC) #4
vsm
7 years, 11 months ago (2013-01-16 19:36:02 UTC) #5
Adding Daniel to this.

Powered by Google App Engine
This is Rietveld 408576698