Skip to content

Instantly share code, notes, and snippets.

View chinmaygarde's full-sized avatar

Chinmay Garde chinmaygarde

View GitHub Profile
@chinmaygarde
chinmaygarde / gist:7b02ce99e6243f8c378468515e4f2482
Created February 26, 2024 20:06
Flutter Supported Codecs
JPEG
PNG
GIF
Animated GIF
WebP
Animated WebP
BMP
WBMP
@chinmaygarde
chinmaygarde / gist:ae5aa5eb591d1b6fa91b2d3c718dc190
Last active February 26, 2024 20:02
Supported Source Image Formats
com.adobe.photoshop-image
com.adobe.raw-image
com.apple.atx
com.apple.icns
com.apple.pict
com.canon.cr2-raw-image
com.canon.cr3-raw-image
com.canon.crw-raw-image
com.canon.tif-raw-image
com.compuserve.gif
@chinmaygarde
chinmaygarde / customization.sh
Last active July 5, 2023 19:53
BulletTrain Customization
BULLETTRAIN_IS_SSH_CLIENT="true"
BULLETTRAIN_CUSTOM_BG="green"
BULLETTRAIN_CUSTOM_MSG="Cloudtop\ Linux"
BULLETTRAIN_CONTEXT_DEFAULT_USER=$USER
BULLETTRAIN_STATUS_EXIT_SHOW=true
BULLETTRAIN_TIME_12HR=true
BULLETTRAIN_EXEC_TIME_ELAPSED=2
BULLETTRAIN_EXEC_TIME_FG=white
BULLETTRAIN_EXEC_TIME_BG=blue
BULLETTRAIN_DIR_EXTENDED=1
diff --git a/shell/platform/darwin/ios/framework/Source/FlutterViewController.mm b/shell/platform/darwin/ios/framework/Source/FlutterViewController.mm
index bc8f4c457..ee1df602c 100644
--- a/shell/platform/darwin/ios/framework/Source/FlutterViewController.mm
+++ b/shell/platform/darwin/ios/framework/Source/FlutterViewController.mm
@@ -489,6 +489,11 @@ static void sendFakeTouchEvent(FlutterEngine* engine,
// NotifyCreated/NotifyDestroyed are synchronous and require hops between the UI and raster
// thread.
if (appeared) {
+ if ([UIApplication sharedApplication].applicationState != UIApplicationStateActive) {
+ NSLog(@"Attempted to call surface appeared while still in the background. Ignoring.");
_AudioServicesPlaySystemSound
_CACurrentMediaTime
_CATransform3DConcat
_CATransform3DIdentity
_CATransform3DMakeScale
_CFAbsoluteTimeGetCurrent
_CFArrayAppendValue
_CFArrayApplyFunction
_CFArrayCreate
_CFArrayCreateMutable
@chinmaygarde
chinmaygarde / patch.diff
Created September 30, 2019 22:15
Platform Task Runner Renders as Well
diff --git a/shell/platform/embedder/embedder_thread_host.cc b/shell/platform/embedder/embedder_thread_host.cc
index 5c2a1f3ae..e454bc76d 100644
--- a/shell/platform/embedder/embedder_thread_host.cc
+++ b/shell/platform/embedder/embedder_thread_host.cc
@@ -110,10 +110,10 @@ EmbedderThreadHost::CreateEmbedderManagedThreadHost(
flutter::TaskRunners task_runners(
kFlutterThreadName,
- platform_task_runner, // platform
- thread_host.gpu_thread->GetTaskRunner(), // gpu
FAILED: dart-sdk/model/CIPD_VERSION.json dart-sdk/model/lexeme/idx2word.json dart-sdk/model/lexeme/word2idx.json dart-sdk/model/lexeme/model.tflite
python ../../third_party/dart/tools/copy_tree.py --from /Users/chinmaygarde/VersionControlled/engine/src/third_party/dart/pkg/analysis_server/language_model --to /Users/chinmaygarde/VersionControlled/engine/src/out/host_profile/dart-sdk/model
Traceback (most recent call last):
File "../../third_party/dart/tools/copy_tree.py", line 169, in <module>
sys.exit(Main(sys.argv))
File "../../third_party/dart/tools/copy_tree.py", line 160, in Main
CopyTree(args.copy_from, args.to)
File "../../third_party/dart/tools/copy_tree.py", line 107, in CopyTree
raise RuntimeError(msg)
RuntimeError: Some file copies failed:
@chinmaygarde
chinmaygarde / FlutterEngine.sublime-project
Last active June 3, 2024 22:49
FlutterEngine.sublime-project
{
"build_systems": [
{
"name": "Default",
// "shell_cmd": "touch /Users/chinmaygarde/VersionControlled/engine/src/flutter/impeller/stator/testing/stator_main.dart && ninja -j999 stator_unittests && ./stator_unittests",
// "shell_cmd": "et build -c android_debug_unopt_arm64",
// "shell_cmd": "et build -c host_debug_unopt_arm64 && ./out/host_debug_unopt_arm64/impeller_unittests --enable_playground --gtest_filter=\"*BabysFirstTriangle/Metal*\"",
"shell_cmd": "et build -c android_debug_unopt_arm64 //flutter/shell/platform/android:android_jar",
// "working_dir": "${project_path}/out/host_debug_unopt_arm64",
// "shell_cmd": "ninja -j999 impeller_unittests && MTL_HUD_ENABLED=1 ./impeller_unittests --enable_playground --enable_vulkan_validation --use_swiftshader --gtest_filter=\"*CanDrawImage/Vulkan\"",
diff --git a/lib/ui/painting/codec.cc b/lib/ui/painting/codec.cc
index b181837e3..fc31f3f32 100644
--- a/lib/ui/painting/codec.cc
+++ b/lib/ui/painting/codec.cc
@@ -4,6 +4,8 @@
#include "flutter/lib/ui/painting/codec.h"
+#include <sys/mman.h>
+
diff --git a/tools/gn b/tools/gn
index 963e2f3f9..3905798ac 100755
--- a/tools/gn
+++ b/tools/gn
@@ -92,13 +92,18 @@ def to_gn_args(args):
gn_args['skia_use_expat'] = args.target_os == 'android'
gn_args['skia_use_fontconfig'] = args.enable_fontconfig
gn_args['flutter_use_fontconfig'] = args.enable_fontconfig
- gn_args['flutter_enable_skshaper'] = args.enable_skshaper
gn_args['is_official_build'] = True # Disable Skia test utilities.