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

Unified Diff: sky/engine/bindings2/snapshot.cc.tmpl

Issue 918333002: Add the c++ code part of bindings2/ (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Updated per earlier reviews Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/bindings2/snapshot.dart ('k') | sky/engine/tonic/dart_builtin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/bindings2/snapshot.cc.tmpl
diff --git a/sky/engine/bindings2/snapshot.cc.tmpl b/sky/engine/bindings2/snapshot.cc.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..f0da857d9e016b547c254e0ad4bb9dc50ea0a83a
--- /dev/null
+++ b/sky/engine/bindings2/snapshot.cc.tmpl
@@ -0,0 +1,18 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include <inttypes.h>
+#include <stdint.h>
+#include <stddef.h>
+
+namespace blink {
+
+// The string on the next line will be filled in with the contents of the
+// generated snapshot binary file.
+// This string forms the content of a snapshot which is loaded in by dart.
+static const uint8_t snapshot_buffer_[] = { % s};
+
+const uint8_t* kDartSnapshotBuffer = snapshot_buffer_;
+
+} // namespace blink
« no previous file with comments | « sky/engine/bindings2/snapshot.dart ('k') | sky/engine/tonic/dart_builtin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698