This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/impeller/aiks/aiks_playground.cc b/impeller/aiks/aiks_playground.cc | |
| index 3f31c658da..c958250213 100644 | |
| --- a/impeller/aiks/aiks_playground.cc | |
| +++ b/impeller/aiks/aiks_playground.cc | |
| @@ -52,4 +52,9 @@ bool AiksPlayground::OpenPlaygroundHere(AiksPlaygroundCallback callback) { | |
| }); | |
| } | |
| +void AiksPlayground::TearDown() { | |
| + inspector_.Reset(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:math'; | |
| import 'dart:ui'; | |
| import 'package:flutter/material.dart'; | |
| final _random = Random(); | |
| void main() => runApp(const BackdropFilterDemo()); | |
| class BackdropFilterDemo extends StatelessWidget { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ThemeMapper<T> { | |
| ThemeMapper(this.callback); | |
| final T Function(T value) callback; | |
| T invoke(T defaultValue) { | |
| return callback(defaultValue); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| typedef AdaptiveThemeCallback<T> = T Function(ThemeData theme, T defaultValue); | |
| class ThemeMapper<T> { | |
| ThemeMapper(this.callback); | |
| final AdaptiveThemeCallback<T> callback; | |
| Type get type => T; | |
| T invoke(ThemeData theme, T defaultValue) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| typedef AdaptiveThemeCallback = Object? Function(ThemeData theme, Type type, Object? defaultValue); | |
| Object? defaultCallback(ThemeData theme, Type type, Object? defaultValue) => defaultValue; | |
| class ThemeData { | |
| factory ThemeData({ AdaptiveThemeCallback? callback }) { | |
| return ThemeData.raw(callback: callback ?? defaultCallback); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Vulkan | |
| ~1. Surface Texture support: https://github.com/flutter/flutter/issues/137639~ | |
| 1a. Update: we can't do this, instead we'll add a new API and migrate flutter/packages. | |
| 2. Fragment program API support: https://github.com/flutter/flutter/issues/123741 | |
| 3. Framebuffer fetch: https://github.com/flutter/flutter/issues/128911 | |
| # GLES |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp( | |
| MaterialApp( | |
| home: Page1(), | |
| routes: {'/foo': (context) { | |
| return Page2(); | |
| }}, | |
| ) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_test/flutter_test.dart'; | |
| group('Shadows on ShapeDecoration', () { | |
| Widget build(int elevation) { | |
| return Center( | |
| child: RepaintBoundary( | |
| child: Container( | |
| margin: const EdgeInsets.all(150.0), | |
| decoration: ShapeDecoration( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/impeller/entity/render_target_cache.cc b/impeller/entity/render_target_cache.cc | |
| index 3a9710a93e..574019faa9 100644 | |
| --- a/impeller/entity/render_target_cache.cc | |
| +++ b/impeller/entity/render_target_cache.cc | |
| @@ -33,7 +33,11 @@ RenderTarget RenderTargetCache::CreateOffscreen( | |
| int mip_count, | |
| const std::string& label, | |
| RenderTarget::AttachmentConfig color_attachment_config, | |
| - std::optional<RenderTarget::AttachmentConfig> stencil_attachment_config) { | |
| + std::optional<RenderTarget::AttachmentConfig> stencil_attachment_config, |