whesse@google.com
6aa0fafa00
Fix runtime build for Android
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//17860002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24510 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 08:31:17 +00:00
gram@google.com
0eacf440b3
Fix the Skia build for Android.
...
This will allow the APKs to build successfully, but they are not working anymore. It's a useful step towards fixing them at least.
R=vsm@google.com
Review URL: https://codereview.chromium.org//15317012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22952 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-21 18:50:12 +00:00
gram@google.com
6110ad7cb5
Fix the embedder on the desktop.
...
This is probably not enough for Android but Android build is failing due to some Skia issue (surprise!!) so I can't test it.
R=vsm@google.com
Review URL: https://codereview.chromium.org//14752023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22579 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-10 00:28:08 +00:00
ricow@google.com
3cf4ca80ce
Speculative fix for android build.
...
It is really hard to follow the directory logic, with DART_DIR being just ../../.. and a few pushd and cd commands thrown in.
I don't particularly like this solution either, this is basically to verify that I am assuming correctly in that this is caused by the relative paths being messed up.
Review URL: https://codereview.chromium.org//14961005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22494 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 06:22:24 +00:00
vsm@google.com
3c0e1cc3bc
Add extra Dart_FileReadCallback argument to android embedder
...
R=gram@google.com
Review URL: https://codereview.chromium.org//14819009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22468 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-07 16:49:47 +00:00
gram@google.com
249ab96c72
Fix Android build.
...
R=vsm@google.com
Review URL: https://codereview.chromium.org//14791003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22276 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-01 20:26:51 +00:00
gram@google.com
bc58669174
Get the OpenGLUI emulator building again on the desktop. Mostly this is applying the changes here:
...
https://code.google.com/p/dart/issues/detail?id=9961
I also added a few Skia libraries to the emulator to make them consistent with the embedder library.
I had to apt-get install libgif-devel to get this to build.
Currently the Android build is broken. We seem to have a mix of x64 and ia32 breaking the link. I'm not sure why this is happening yet, but it may be related to a recent Skia change for Android. See https://groups.google.com/d/topic/skia-discuss/lSrgomxplqo/discussion for details. Related to that, you will need to do apt-get install gsutil to buld Skia for Android.
Review URL: https://codereview.chromium.org//14485002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22046 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 20:08:30 +00:00
floitsch@google.com
5431a5af54
Remove AsyncError with Expando.
...
Review URL: https://codereview.chromium.org//14251006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21498 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 18:58:32 +00:00
floitsch@google.com
e2ee353940
Rename unsubscribeOnError to cancelOnError.
...
Review URL: https://codereview.chromium.org//14251013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21469 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 16:07:36 +00:00
floitsch@google.com
457dffa030
Add StreamSubscription.asFuture.
...
Review URL: https://codereview.chromium.org//14237002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21441 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 12:17:07 +00:00
gram@google.com
63233a08d1
Cleaned up OpenGLUI samples and added Blasteroids.
...
Removed .hex files and replaced with binary files. These will get
added in a separate non-reviewed CL to get around Rietveld limitation.
Review URL: https://codereview.chromium.org//13345002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20745 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-01 19:48:38 +00:00
gram@google.com
59dd238e19
Various OpenGLUI changes:
...
- support for HTML5 canvas gradients (linear and radial)
- support for AudioElement
- support for Android accelerometer
- images are now cached instead of being recreated every time they are drawn
- we now try to call update_ at most at 60fps
- various bug fixes
- default Skia build is now release. This should just be based off the overall build but I wasn't able to get gyp to do that yet
Review URL: https://codereview.chromium.org//13042015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20598 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-27 23:41:42 +00:00
vsm@google.com
2348a591ae
Fix android embedder
...
TBR=gram
Review URL: https://codereview.chromium.org//12929015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20363 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-22 00:00:15 +00:00
vsm@google.com
58e396f0d6
Added include for SkTypeface
...
Review URL: https://codereview.chromium.org//12736004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19884 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 17:58:00 +00:00
gram@google.com
681ffda888
Change ImageElement to use onLoad.listen instead of on.load and
...
adjust event dispatch accordingly.
Review URL: https://codereview.chromium.org//12428011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19883 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 17:47:37 +00:00
gram@google.com
98b1c1abe4
Added window.requestAnimationFrame.
...
Review URL: https://codereview.chromium.org//12506004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19665 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 00:26:58 +00:00
gram@google.com
a6fba65d0c
Fix build break caused by Skia changes.
...
Review URL: https://codereview.chromium.org//12550012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19664 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 23:50:50 +00:00
gram@google.com
ad6f5a66aa
Fix the handling of screen orientation changes. In these cases almost the entire application is torn down, which includes the destruction of the VMGlue instance. When we restart we create a new VMGlue but we don't want to reinitialize the VM, just create a new main isolate.
...
Also in the CL, I added a dependency of the .apk on the embedder library, so that I can rebuild the apk after a library change without having to start from scratch.
Review URL: https://codereview.chromium.org//12455012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19510 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-05 19:50:31 +00:00
gram@google.com
28e22592a7
Added a rudimentary DOM, to assist with event dispatch.
...
Modified embedder so we can dispatch basic mouse and keyboard events through this new dart:async based plumbing.
Added mouse/motion events to desktop embedder.
Review URL: https://codereview.chromium.org//12390045
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19440 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-05 01:07:08 +00:00
gram@google.com
6dcb91e14d
Android improvements:
...
- support for ImageElement with PNG files
- added a 'dirty' flag to many canvas APIs to reduce the need to swap GL buffers
- lifecycle improvements (pause/resume/activate/deactivate). Still not perfect but much better than it was.
Review URL: https://codereview.chromium.org//12340036
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18934 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-23 00:37:52 +00:00
gram@google.com
686e35e638
Support for non-DOM canvases/contexts (backed by bitmaps).
...
Also updated to work with recent Skia CL 7640.
Review URL: https://codereview.chromium.org//12212074
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18279 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-08 22:23:08 +00:00
vsm@google.com
e6e4ae45b3
Use bash on linux for skia script
...
TBR=gram
Review URL: https://codereview.chromium.org//12224077
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18263 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-08 17:47:06 +00:00
gram@google.com
dc451b374f
Canvas API. There are still a number of things to do:
...
- off-screen canvases/contexts
- image APIs
- clips need to be tested
- text baseline and direction
- image smoothing
- global composite op testing
Review URL: https://codereview.chromium.org//12186002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18084 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-04 22:49:02 +00:00
gram@google.com
15ba619d13
Remove dead code.
...
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17242 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 23:26:42 +00:00
gram@google.com
9703d7bfdd
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;
Review URL: https://codereview.chromium.org//11883013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17161 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 21:17:52 +00:00
gram@google.com
fae2529290
Backport some work from sample to embedder:
...
- more sound support
- refactored extension methods
- some additional graphics functionality
- better error logging
- misc other changes
Review URL: https://codereview.chromium.org//11823034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16895 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 00:20:26 +00:00
vsm@google.com
aec31578d4
Refactor generic android embedder code out of the sample and fix gcc warnings.
...
Review URL: https://codereview.chromium.org//11467028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16869 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 18:43:13 +00:00
vsm@google.com
b5e5fcd160
Refactored Android samples / embedder.
...
- Started moving generic embedder code from sample into runtime/embedders/android. I'd like to move more in a later CL.
- Removed dependence on vm/bin in sample.
Ivan or Siva: can one of you review the changes under runtime?
Review URL: https://codereview.chromium.org//11416343
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15766 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 00:27:04 +00:00