Skip to content

Instantly share code, notes, and snippets.

View chinmaygarde's full-sized avatar

Chinmay Garde chinmaygarde

  • San Francisco, CA
  • 08:21 (UTC -07:00)
View GitHub Profile
@chinmaygarde
chinmaygarde / Vagrantfile
Created July 17, 2015 21:59
Sky Vagrantfile
# HowTo:
# curl this file into the folder containing the sky_engine checkout gclient file
# `vagrant up`
# `vagrant ssh`
# `cd /vagrant/src`
# And you are good to go
Vagrant.configure(2) do |config|
diff --git a/base/BUILD.gn b/base/BUILD.gn
index 238a89a..c01bb88 100644
--- a/base/BUILD.gn
+++ b/base/BUILD.gn
@@ -11,6 +11,11 @@ if (is_android) {
config("base_implementation") {
defines = [ "BASE_IMPLEMENTATION" ]
+
+ if (is_ios) {
diff --git a/base/BUILD.gn b/base/BUILD.gn
index 238a89a..c01bb88 100644
--- a/base/BUILD.gn
+++ b/base/BUILD.gn
@@ -11,6 +11,11 @@ if (is_android) {
config("base_implementation") {
defines = [ "BASE_IMPLEMENTATION" ]
+
+ if (is_ios) {
diff --git a/ui/gl/generate_bindings.py b/ui/gl/generate_bindings.py
index 6ebf3df..ffd9625 100755
--- a/ui/gl/generate_bindings.py
+++ b/ui/gl/generate_bindings.py
@@ -244,6 +244,20 @@ GL_FUNCTIONS = [
'names': ['glCullFace'],
'arguments': 'GLenum mode', },
{ 'return_type': 'void',
+ 'versions': [{ 'name': 'glDebugMessageCallbackKHR',
+ 'extensions': ['GL_KHR_debug'] }],
// Bindings checked in some configuration but never provided
[
"fBindFragmentInputLocation",
"fCheckNamedFramebufferStatus",
"fCompressedTexSubImage2D",
"fCompressedTextureImage1D",
"fCompressedTextureImage2D",
"fCompressedTextureImage3D",
"fCompressedTextureSubImage1D",
diff --git a/skia/BUILD.gn b/skia/BUILD.gn
index 7328494..633cd53 100644
--- a/skia/BUILD.gn
+++ b/skia/BUILD.gn
@@ -368,6 +368,30 @@ component("skia") {
"//third_party/skia/src/fonts/SkGScalerContext.h",
]
+ if (is_ios || is_mac || is_android) {
+ sources -= [
Jul 28 15:11:42 chinmaygarde-macpro.roam.corp.google.com game_app[63374]: [ERROR:dart_error.cc(19)] 'sky/packages/sky/example/game/lib/game_demo_world.dart': malformed type: line 565: cannot resolve class 'Image' from 'StarField'
Jul 28 15:11:42 chinmaygarde-macpro.roam.corp.google.com game_app[63374]: Image _image;
Jul 28 15:11:42 chinmaygarde-macpro.roam.corp.google.com game_app[63374]: ^
Jul 28 15:24:11 chinmaygarde-macpro.roam.corp.google.com game_app[65142]: [ERROR:dart_error.cc(19)] 'sky/packages/sky/example/game/lib/game_demo_world.dart': malformed type: line 565: cannot resolve class 'Image' from 'StarField'
Jul 28 15:24:11 chinmaygarde-macpro.roam.corp.google.com game_app[65142]: Image _image;
Jul 28 15:24:11 chinmaygarde-macpro.roam.corp.google.com game_app[65142]: ^
Jul 28 15:24:12 chinmaygarde-macpro.roam.corp.google.com game_app[65142]: [ERROR:dart_error.cc(19)] 'sky/packages/sky/example/game/lib/game_demo_world.dart': error: line 54: circular dependency for function GameDemoWorld
Jul 28 15:24:12 chinmaygarde-macpro.roam.corp.google.com game_app[65142]: GameDemoWorld(App app, this._navigator, ImageMap images, this._spriteSheet, this._spriteSheetUI) : super(new Size(_gameSizeWidth, _gameSizeHeight)) {
Jul 28 15:24:12 chinmaygarde-macpro.roam.corp.google.com game_app[65142]: ^
Jul 28 15:24:12 chinmaygarde-macpro.roam.corp.google.com game_app[65142]: [ERROR:dart_er
➜ src git:(master) ✗ ./out/Debug/game_app.app/Contents/MacOS/game_app
(For Test Shell) Usage: sky_shell --non-interactive --package-root=PACKAGE_ROOT --snapshot=SNAPSHOT [ MAIN_DART ]
[WARNING:asset_bundle_impl.cc(44)] Requested asset 'snapshot_blob.bin' does not exist.
[ERROR:dart_error.cc(19)] Dart_LoadScriptFromSnapshot expects argument 'buffer' to be non-null.
[ERROR:dart_error.cc(19)] Unhandled exception:
The null object does not have a method 'main'.
NoSuchMethodError: method not found: 'main'
Receiver: null
Arguments: []
// 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.
#import <Foundation/Foundation.h>
@class SkyXWatcher;
@protocol SkyXWatcherDelegate<NSObject>
- (void)watcher:(SkyXWatcher*)watcher didDetectUpdate:(NSString*)skyxPath;