summaryrefslogtreecommitdiffstats
path: root/gin/converter.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-21 00:48:46 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-21 00:48:46 +0000
commitd73341d1c10528683ec39d71a1152b7cf8facd9b (patch)
tree6df4853b4ccf714710fc17d4b1debcffebddc63d /gin/converter.h
parent92cf2dfdeabc8ad6f0672081ae37724f605e8190 (diff)
downloadchromium_src-d73341d1c10528683ec39d71a1152b7cf8facd9b.zip
chromium_src-d73341d1c10528683ec39d71a1152b7cf8facd9b.tar.gz
chromium_src-d73341d1c10528683ec39d71a1152b7cf8facd9b.tar.bz2
Implement more of the JavaScript GL API.
Right now I am just translating as directly as possible from the C spinning cube demo -- once it all works I will circle back through and refine the JavaScript. R=abarth@chromium.org Review URL: https://codereview.chromium.org/114883003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242230 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gin/converter.h')
-rw-r--r--gin/converter.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gin/converter.h b/gin/converter.h
index ee029a7..1ce459e 100644
--- a/gin/converter.h
+++ b/gin/converter.h
@@ -65,6 +65,15 @@ struct GIN_EXPORT Converter<uint64_t> {
};
template<>
+struct GIN_EXPORT Converter<float> {
+ static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate,
+ float val);
+ static bool FromV8(v8::Isolate* isolate,
+ v8::Handle<v8::Value> val,
+ float* out);
+};
+
+template<>
struct GIN_EXPORT Converter<double> {
static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate,
double val);