Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
a367dcb0
Commit
a367dcb0
authored
Jun 02, 2017
by
Gary Qian
Committed by
GitHub
Jun 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add flags to pass '--enable-software-rendering' flag to engine in run command (#10449)
parent
e3bab988
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
0 deletions
+16
-0
android_device.dart
packages/flutter_tools/lib/src/android/android_device.dart
+2
-0
run.dart
packages/flutter_tools/lib/src/commands/run.dart
+8
-0
device.dart
packages/flutter_tools/lib/src/device.dart
+3
-0
devices.dart
packages/flutter_tools/lib/src/ios/devices.dart
+3
-0
No files found.
packages/flutter_tools/lib/src/android/android_device.dart
View file @
a367dcb0
...
@@ -397,6 +397,8 @@ class AndroidDevice extends Device {
...
@@ -397,6 +397,8 @@ class AndroidDevice extends Device {
cmd
.
addAll
(<
String
>[
'--ez'
,
'trace-startup'
,
'true'
]);
cmd
.
addAll
(<
String
>[
'--ez'
,
'trace-startup'
,
'true'
]);
if
(
route
!=
null
)
if
(
route
!=
null
)
cmd
.
addAll
(<
String
>[
'--es'
,
'route'
,
route
]);
cmd
.
addAll
(<
String
>[
'--es'
,
'route'
,
route
]);
if
(
debuggingOptions
.
enableSoftwareRendering
)
cmd
.
addAll
(<
String
>[
'--ez'
,
'enable-software-rendering'
,
'true'
]);
if
(
debuggingOptions
.
debuggingEnabled
)
{
if
(
debuggingOptions
.
debuggingEnabled
)
{
if
(
debuggingOptions
.
buildMode
==
BuildMode
.
debug
)
if
(
debuggingOptions
.
buildMode
==
BuildMode
.
debug
)
cmd
.
addAll
(<
String
>[
'--ez'
,
'enable-checked-mode'
,
'true'
]);
cmd
.
addAll
(<
String
>[
'--ez'
,
'enable-checked-mode'
,
'true'
]);
...
...
packages/flutter_tools/lib/src/commands/run.dart
View file @
a367dcb0
...
@@ -88,6 +88,13 @@ class RunCommand extends RunCommandBase {
...
@@ -88,6 +88,13 @@ class RunCommand extends RunCommandBase {
defaultsTo:
false
,
defaultsTo:
false
,
negatable:
false
,
negatable:
false
,
help:
'Start in a paused mode and wait for a debugger to connect.'
);
help:
'Start in a paused mode and wait for a debugger to connect.'
);
argParser
.
addFlag
(
'enable-software-rendering'
,
defaultsTo:
false
,
negatable:
false
,
help:
'Enable rendering using the Skia software backend. This is useful
\n
'
'when testing Flutter on emulators. By default, Flutter will
\n
'
'attempt to either use OpenGL or Vulkan and fall back to software
\n
'
'when neither is available.'
);
argParser
.
addFlag
(
'use-test-fonts'
,
argParser
.
addFlag
(
'use-test-fonts'
,
negatable:
true
,
negatable:
true
,
defaultsTo:
false
,
defaultsTo:
false
,
...
@@ -218,6 +225,7 @@ class RunCommand extends RunCommandBase {
...
@@ -218,6 +225,7 @@ class RunCommand extends RunCommandBase {
getBuildMode
(),
getBuildMode
(),
startPaused:
argResults
[
'start-paused'
],
startPaused:
argResults
[
'start-paused'
],
useTestFonts:
argResults
[
'use-test-fonts'
],
useTestFonts:
argResults
[
'use-test-fonts'
],
enableSoftwareRendering:
argResults
[
'enable-software-rendering'
],
observatoryPort:
observatoryPort
,
observatoryPort:
observatoryPort
,
diagnosticPort:
diagnosticPort
,
diagnosticPort:
diagnosticPort
,
);
);
...
...
packages/flutter_tools/lib/src/device.dart
View file @
a367dcb0
...
@@ -299,6 +299,7 @@ abstract class Device {
...
@@ -299,6 +299,7 @@ abstract class Device {
class
DebuggingOptions
{
class
DebuggingOptions
{
DebuggingOptions
.
enabled
(
this
.
buildMode
,
{
DebuggingOptions
.
enabled
(
this
.
buildMode
,
{
this
.
startPaused
:
false
,
this
.
startPaused
:
false
,
this
.
enableSoftwareRendering
:
false
,
this
.
useTestFonts
:
false
,
this
.
useTestFonts
:
false
,
this
.
observatoryPort
,
this
.
observatoryPort
,
this
.
diagnosticPort
this
.
diagnosticPort
...
@@ -308,6 +309,7 @@ class DebuggingOptions {
...
@@ -308,6 +309,7 @@ class DebuggingOptions {
debuggingEnabled
=
false
,
debuggingEnabled
=
false
,
useTestFonts
=
false
,
useTestFonts
=
false
,
startPaused
=
false
,
startPaused
=
false
,
enableSoftwareRendering
=
false
,
observatoryPort
=
null
,
observatoryPort
=
null
,
diagnosticPort
=
null
;
diagnosticPort
=
null
;
...
@@ -315,6 +317,7 @@ class DebuggingOptions {
...
@@ -315,6 +317,7 @@ class DebuggingOptions {
final
BuildMode
buildMode
;
final
BuildMode
buildMode
;
final
bool
startPaused
;
final
bool
startPaused
;
final
bool
enableSoftwareRendering
;
final
bool
useTestFonts
;
final
bool
useTestFonts
;
final
int
observatoryPort
;
final
int
observatoryPort
;
final
int
diagnosticPort
;
final
int
diagnosticPort
;
...
...
packages/flutter_tools/lib/src/ios/devices.dart
View file @
a367dcb0
...
@@ -242,6 +242,9 @@ class IOSDevice extends Device {
...
@@ -242,6 +242,9 @@ class IOSDevice extends Device {
// the port picked and scrape that later.
// the port picked and scrape that later.
}
}
if
(
debuggingOptions
.
enableSoftwareRendering
)
launchArguments
.
add
(
'--enable-software-rendering'
);
if
(
platformArgs
[
'trace-startup'
]
??
false
)
if
(
platformArgs
[
'trace-startup'
]
??
false
)
launchArguments
.
add
(
'--trace-startup'
);
launchArguments
.
add
(
'--trace-startup'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment