Skip to content

Instantly share code, notes, and snippets.

diff --git a/Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig b/Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig
index 53aab1db3949..8c8471842198 100644
--- a/Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig
+++ b/Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig
@@ -200,4 +200,4 @@ ENABLE_FTL_JIT[sdk=iphoneos*] = ENABLE_FTL_JIT;
ENABLE_CUSTOM_ELEMENTS = ENABLE_CUSTOM_ELEMENTS;
-FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCRO
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
class OffscreenRenderView extends RenderView {
OffscreenRenderView() : super(configuration: const ViewConfiguration(size: const Size(800.0, 600.0)));
@override
void compositeFrame() {
// Don't draw to ui.window
}
@abarth
abarth / foo.dart
Created February 22, 2017 08:05
Scroll-based fade out
class Foo extends StatefulWidget {
@override
_FooState createState() => new _FooState();
}
class _FooState extends State<Foo> with SingleTickerProviderStateMixin {
AnimationController _animation;
@override
void initState() {
@abarth
abarth / flutter_sprites.patch
Created December 1, 2016 09:37
flutter_sprites.patch
From b931cff0e20d8de43449abe745236a9f6ca16f22 Mon Sep 17 00:00:00 2001
From: Adam Barth <abarth@chromium.org>
Date: Thu, 22 Sep 2016 10:15:56 -0700
Subject: [PATCH] Make flutter_sprites standalone
Adds a LICENSE file and some examples.
---
.gitignore | 8 +
AUTHORS | 8 +
LICENSE | 27 ++
@abarth
abarth / road-services.dart
Last active November 30, 2016 00:09
road-services.dart
import 'dart:math' as math;
import 'package:flutter/material.dart';
void main() {
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
@override
diff --git a/src/suggestion_engine/suggestion_agent_client_impl.cc b/src/suggestion_engine/suggestion_agent_client_impl.cc
index e731435..fa0f23d 100644
--- a/src/suggestion_engine/suggestion_agent_client_impl.cc
+++ b/src/suggestion_engine/suggestion_agent_client_impl.cc
@@ -26,8 +26,10 @@ void SuggestionAgentClientImpl::Remove(const fidl::String& proposal_id) {
channel_rank.first->OnRemoveSuggestion(channel_rank.second);
}
- repo_->RemoveSuggestion(record->second.suggestion_prototype->first);
- proposals_.erase(record);
#!/bin/sh
set -e
/src/flutter/flutter/bin/cache/dart-sdk/bin/dartanalyzer \
--lints \
--package-warnings \
"$1/$2" \
--packages=out/debug-x86-64/gen/$1/${1##*/}_dart_package.packages
abarth@abarth3:/src/fuchsia/apps/modular$ time /src/fuchsia/buildtools/ninja -j 1024 -C /src/fuchsia/out/debug-x86-64/
ninja: Entering directory `/src/fuchsia/out/debug-x86-64/'
[35/52] CXX obj/out/debug-x86-64/gen/apps/modular/services/application/application_cpp_sources__common.application_environment.fidl-common.o
FAILED: obj/out/debug-x86-64/gen/apps/modular/services/application/application_cpp_sources__common.application_environment.fidl-common.o
/usr/local/google/home/abarth/goma/gomacc ../../buildtools/toolchain/clang+llvm-x86_64-linux/bin/clang++ -MMD -MF obj/out/debug-x86-64/gen/apps/modular/services/application/application_cpp_sources__common.application_environment.fidl-common.o.d -DSYSROOT_VERSION=d162dbc28565bc38e3e52c423e502f5ce2252d3b -I../.. -Igen -I../.. -Igen -I../../magenta/system/ulib/mx/include -I../../magenta/system/ulib/mx/include -g --sysroot=../sysroot/x86_64-fuchsia --target=x86_64-fuchsia -Werror -Wall -Wextra -Wno-unused-parameter -g -O0 -Wthread-safety -fvisibility-inlines-hidden
diff --git a/sky/engine/BUILD.gn b/sky/engine/BUILD.gn
index 9689c16..59a16ca 100644
--- a/sky/engine/BUILD.gn
+++ b/sky/engine/BUILD.gn
@@ -22,6 +22,10 @@ config("config") {
cflags = [
"-Wno-inconsistent-missing-override",
]
+
+ defines = [
diff --git a/BUILD.gn b/BUILD.gn
index 90f531f..c7735bb 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -461,9 +461,15 @@ component("skia") {
}
if (is_fuchsia) {
+ deps += [
+ "//third_party/freetype2:freetype",