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
f2b28e55
Commit
f2b28e55
authored
Oct 01, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1444 from abarth/float64
Moves from vector_math to vector_math_64
parents
ce2c56b3
7662a30f
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
25 additions
and
25 deletions
+25
-25
game_demo.dart
examples/game/lib/game_demo.dart
+1
-1
test_performance_computation.dart
examples/game/test_performance_computation.dart
+1
-1
baseline.dart
examples/raw/baseline.dart
+1
-1
hello_world.dart
examples/raw/hello_world.dart
+1
-1
mutating-dom.dart
examples/raw/mutating-dom.dart
+1
-1
painting.dart
examples/raw/painting.dart
+1
-1
shadow.dart
examples/raw/shadow.dart
+1
-1
spinning_arabic.dart
examples/raw/spinning_arabic.dart
+1
-1
spinning_image.dart
examples/raw/spinning_image.dart
+1
-1
spinning_square.dart
examples/raw/spinning_square.dart
+1
-1
rendering.dart
packages/flutter/lib/rendering.dart
+1
-1
block.dart
packages/flutter/lib/src/rendering/block.dart
+1
-1
box.dart
packages/flutter/lib/src/rendering/box.dart
+1
-1
layer.dart
packages/flutter/lib/src/rendering/layer.dart
+1
-1
object.dart
packages/flutter/lib/src/rendering/object.dart
+1
-1
proxy_box.dart
packages/flutter/lib/src/rendering/proxy_box.dart
+3
-3
view.dart
packages/flutter/lib/src/rendering/view.dart
+1
-1
viewport.dart
packages/flutter/lib/src/rendering/viewport.dart
+1
-1
transitions.dart
packages/flutter/lib/src/widgets/transitions.dart
+1
-1
widgets.dart
packages/flutter/lib/widgets.dart
+1
-1
skysprites.dart
packages/flutter_sprites/lib/skysprites.dart
+1
-1
sprite_box.dart
packages/flutter_sprites/lib/sprite_box.dart
+1
-1
canvas_test.dart
packages/unit/test/engine/canvas_test.dart
+1
-1
No files found.
examples/game/lib/game_demo.dart
View file @
f2b28e55
...
...
@@ -6,7 +6,7 @@ import 'dart:sky' as sky;
import
'package:sky/rendering.dart'
;
import
'package:skysprites/skysprites.dart'
;
import
'package:vector_math/vector_math.dart'
;
import
'package:vector_math/vector_math
_64
.dart'
;
part
'custom_actions.dart'
;
part
'explosions.dart'
;
...
...
examples/game/test_performance_computation.dart
View file @
f2b28e55
import
'dart:math'
as
math
;
import
'dart:typed_data'
;
import
'package:vector_math/vector_math.dart'
;
import
'package:vector_math/vector_math
_64
.dart'
;
main
()
{
runTest
();
...
...
examples/raw/baseline.dart
View file @
f2b28e55
...
...
@@ -64,7 +64,7 @@ sky.Picture paint(sky.Rect paintBounds) {
sky
.
Scene
composite
(
sky
.
Picture
picture
,
sky
.
Rect
paintBounds
)
{
final
double
devicePixelRatio
=
sky
.
view
.
devicePixelRatio
;
sky
.
Rect
sceneBounds
=
new
sky
.
Rect
.
fromLTWH
(
0.0
,
0.0
,
sky
.
view
.
width
*
devicePixelRatio
,
sky
.
view
.
height
*
devicePixelRatio
);
Float
32List
deviceTransform
=
new
Float32
List
(
16
)
Float
64List
deviceTransform
=
new
Float64
List
(
16
)
..[
0
]
=
devicePixelRatio
..[
5
]
=
devicePixelRatio
..[
10
]
=
1.0
...
...
examples/raw/hello_world.dart
View file @
f2b28e55
...
...
@@ -23,7 +23,7 @@ sky.Picture paint(sky.Rect paintBounds) {
sky
.
Scene
composite
(
sky
.
Picture
picture
,
sky
.
Rect
paintBounds
)
{
final
double
devicePixelRatio
=
sky
.
view
.
devicePixelRatio
;
sky
.
Rect
sceneBounds
=
new
sky
.
Rect
.
fromLTWH
(
0.0
,
0.0
,
sky
.
view
.
width
*
devicePixelRatio
,
sky
.
view
.
height
*
devicePixelRatio
);
Float
32List
deviceTransform
=
new
Float32
List
(
16
)
Float
64List
deviceTransform
=
new
Float64
List
(
16
)
..[
0
]
=
devicePixelRatio
..[
5
]
=
devicePixelRatio
..[
10
]
=
1.0
...
...
examples/raw/mutating-dom.dart
View file @
f2b28e55
...
...
@@ -218,7 +218,7 @@ sky.Picture paint(sky.Rect paintBounds) {
sky
.
Scene
composite
(
sky
.
Picture
picture
,
sky
.
Rect
paintBounds
)
{
final
double
devicePixelRatio
=
sky
.
view
.
devicePixelRatio
;
sky
.
Rect
sceneBounds
=
new
sky
.
Rect
.
fromLTWH
(
0.0
,
0.0
,
sky
.
view
.
width
*
devicePixelRatio
,
sky
.
view
.
height
*
devicePixelRatio
);
Float
32List
deviceTransform
=
new
Float32
List
(
16
)
Float
64List
deviceTransform
=
new
Float64
List
(
16
)
..[
0
]
=
devicePixelRatio
..[
5
]
=
devicePixelRatio
..[
10
]
=
1.0
...
...
examples/raw/painting.dart
View file @
f2b28e55
...
...
@@ -32,7 +32,7 @@ sky.Picture paint(sky.Rect paintBounds) {
new
sky
.
Paint
()..
setShader
(
yellowBlue
));
// Scale x and y by 0.5.
var
scaleMatrix
=
new
Float
32
List
.
fromList
([
var
scaleMatrix
=
new
Float
64
List
.
fromList
([
0.5
,
0.0
,
0.0
,
0.0
,
0.0
,
0.5
,
0.0
,
0.0
,
0.0
,
0.0
,
1.0
,
0.0
,
...
...
examples/raw/shadow.dart
View file @
f2b28e55
...
...
@@ -39,7 +39,7 @@ sky.Picture paint(sky.Rect paintBounds) {
sky
.
Scene
composite
(
sky
.
Picture
picture
,
sky
.
Rect
paintBounds
)
{
final
double
devicePixelRatio
=
sky
.
view
.
devicePixelRatio
;
sky
.
Rect
sceneBounds
=
new
sky
.
Rect
.
fromLTWH
(
0.0
,
0.0
,
sky
.
view
.
width
*
devicePixelRatio
,
sky
.
view
.
height
*
devicePixelRatio
);
Float
32List
deviceTransform
=
new
Float32
List
(
16
)
Float
64List
deviceTransform
=
new
Float64
List
(
16
)
..[
0
]
=
devicePixelRatio
..[
5
]
=
devicePixelRatio
..[
10
]
=
1.0
...
...
examples/raw/spinning_arabic.dart
View file @
f2b28e55
...
...
@@ -31,7 +31,7 @@ sky.Picture paint(sky.Rect paintBounds, double delta) {
sky
.
Scene
composite
(
sky
.
Picture
picture
,
sky
.
Rect
paintBounds
)
{
final
double
devicePixelRatio
=
sky
.
view
.
devicePixelRatio
;
sky
.
Rect
sceneBounds
=
new
sky
.
Rect
.
fromLTWH
(
0.0
,
0.0
,
sky
.
view
.
width
*
devicePixelRatio
,
sky
.
view
.
height
*
devicePixelRatio
);
Float
32List
deviceTransform
=
new
Float32
List
(
16
)
Float
64List
deviceTransform
=
new
Float64
List
(
16
)
..[
0
]
=
devicePixelRatio
..[
5
]
=
devicePixelRatio
..[
10
]
=
1.0
...
...
examples/raw/spinning_image.dart
View file @
f2b28e55
...
...
@@ -44,7 +44,7 @@ sky.Picture paint(sky.Rect paintBounds, double delta) {
sky
.
Scene
composite
(
sky
.
Picture
picture
,
sky
.
Rect
paintBounds
)
{
final
double
devicePixelRatio
=
sky
.
view
.
devicePixelRatio
;
sky
.
Rect
sceneBounds
=
new
sky
.
Rect
.
fromLTWH
(
0.0
,
0.0
,
sky
.
view
.
width
*
devicePixelRatio
,
sky
.
view
.
height
*
devicePixelRatio
);
Float
32List
deviceTransform
=
new
Float32
List
(
16
)
Float
64List
deviceTransform
=
new
Float64
List
(
16
)
..[
0
]
=
devicePixelRatio
..[
5
]
=
devicePixelRatio
..[
10
]
=
1.0
...
...
examples/raw/spinning_square.dart
View file @
f2b28e55
...
...
@@ -27,7 +27,7 @@ void beginFrame(double timeStamp) {
// composite
final
double
devicePixelRatio
=
sky
.
view
.
devicePixelRatio
;
sky
.
Rect
sceneBounds
=
new
sky
.
Rect
.
fromLTWH
(
0.0
,
0.0
,
sky
.
view
.
width
*
devicePixelRatio
,
sky
.
view
.
height
*
devicePixelRatio
);
Float
32List
deviceTransform
=
new
Float32
List
(
16
)
Float
64List
deviceTransform
=
new
Float64
List
(
16
)
..[
0
]
=
devicePixelRatio
..[
5
]
=
devicePixelRatio
..[
10
]
=
1.0
...
...
packages/flutter/lib/rendering.dart
View file @
f2b28e55
...
...
@@ -27,4 +27,4 @@ export 'package:sky/src/rendering/toggleable.dart';
export
'package:sky/src/rendering/view.dart'
;
export
'package:sky/src/rendering/viewport.dart'
;
export
'package:vector_math/vector_math.dart'
show
Matrix4
;
export
'package:vector_math/vector_math
_64
.dart'
show
Matrix4
;
packages/flutter/lib/src/rendering/block.dart
View file @
f2b28e55
...
...
@@ -6,7 +6,7 @@ import 'dart:math' as math;
import
'package:sky/src/rendering/box.dart'
;
import
'package:sky/src/rendering/object.dart'
;
import
'package:vector_math/vector_math.dart'
;
import
'package:vector_math/vector_math
_64
.dart'
;
/// Parent data for use with [RenderBlockBase]
class
BlockParentData
extends
BoxParentData
with
ContainerParentDataMixin
<
RenderBox
>
{
}
...
...
packages/flutter/lib/src/rendering/box.dart
View file @
f2b28e55
...
...
@@ -8,7 +8,7 @@ import 'dart:sky' as sky;
import
'package:sky/painting.dart'
;
import
'package:sky/src/rendering/debug.dart'
;
import
'package:sky/src/rendering/object.dart'
;
import
'package:vector_math/vector_math.dart'
;
import
'package:vector_math/vector_math
_64
.dart'
;
export
'package:sky/painting.dart'
show
TextBaseline
;
...
...
packages/flutter/lib/src/rendering/layer.dart
View file @
f2b28e55
...
...
@@ -5,7 +5,7 @@
import
'dart:sky'
as
sky
;
import
'dart:sky'
show
Point
,
Offset
,
Size
,
Rect
,
Color
,
Paint
,
Path
;
import
'package:vector_math/vector_math.dart'
;
import
'package:vector_math/vector_math
_64
.dart'
;
/// A composited layer
///
...
...
packages/flutter/lib/src/rendering/object.dart
View file @
f2b28e55
...
...
@@ -11,7 +11,7 @@ import 'package:sky/src/rendering/debug.dart';
import
'package:sky/src/rendering/hit_test.dart'
;
import
'package:sky/src/rendering/layer.dart'
;
import
'package:sky/src/rendering/node.dart'
;
import
'package:vector_math/vector_math.dart'
;
import
'package:vector_math/vector_math
_64
.dart'
;
export
'dart:sky'
show
Point
,
Offset
,
Size
,
Rect
,
Color
,
Paint
,
Path
;
export
'package:sky/src/rendering/hit_test.dart'
show
HitTestTarget
,
HitTestEntry
,
HitTestResult
;
...
...
packages/flutter/lib/src/rendering/proxy_box.dart
View file @
f2b28e55
...
...
@@ -8,7 +8,7 @@ import 'package:sky/src/painting/box_painter.dart';
import
'package:sky/src/painting/text_style.dart'
;
import
'package:sky/src/rendering/object.dart'
;
import
'package:sky/src/rendering/box.dart'
;
import
'package:vector_math/vector_math.dart'
;
import
'package:vector_math/vector_math
_64
.dart'
;
export
'package:sky/src/painting/box_painter.dart'
;
...
...
@@ -256,10 +256,10 @@ class RenderOverflowBox extends RenderProxyBox {
}
String
debugDescribeSettings
(
String
prefix
)
{
return
'
${super.debugDescribeSettings(prefix)}
'
+
return
'
${super.debugDescribeSettings(prefix)}
'
+
'
${prefix}
minWidth:
${minWidth ?? "use parent minWidth constraint"}
\n
'
+
'
${prefix}
maxWidth:
${maxWidth ?? "use parent maxWidth constraint"}
\n
'
+
'
${prefix}
minHeight:
${minHeight ?? "use parent minHeight constraint"}
\n
'
+
'
${prefix}
minHeight:
${minHeight ?? "use parent minHeight constraint"}
\n
'
+
'
${prefix}
maxHeight:
${maxHeight ?? "use parent maxHeight constraint"}
\n
'
;
}
}
...
...
packages/flutter/lib/src/rendering/view.dart
View file @
f2b28e55
...
...
@@ -8,7 +8,7 @@ import 'package:sky/animation.dart';
import
'package:sky/src/rendering/layer.dart'
;
import
'package:sky/src/rendering/object.dart'
;
import
'package:sky/src/rendering/box.dart'
;
import
'package:vector_math/vector_math.dart'
;
import
'package:vector_math/vector_math
_64
.dart'
;
/// The layout constraints for the root render object
class
ViewConstraints
{
...
...
packages/flutter/lib/src/rendering/viewport.dart
View file @
f2b28e55
...
...
@@ -6,7 +6,7 @@ import 'dart:sky' as sky;
import
'package:sky/src/rendering/object.dart'
;
import
'package:sky/src/rendering/box.dart'
;
import
'package:vector_math/vector_math.dart'
;
import
'package:vector_math/vector_math
_64
.dart'
;
/// The direction in which to scroll
enum
ScrollDirection
{
...
...
packages/flutter/lib/src/widgets/transitions.dart
View file @
f2b28e55
...
...
@@ -5,7 +5,7 @@
import
'package:sky/animation.dart'
;
import
'package:sky/src/widgets/basic.dart'
;
import
'package:sky/src/widgets/framework.dart'
;
import
'package:vector_math/vector_math.dart'
;
import
'package:vector_math/vector_math
_64
.dart'
;
export
'package:sky/animation.dart'
show
Direction
;
...
...
packages/flutter/lib/widgets.dart
View file @
f2b28e55
...
...
@@ -52,4 +52,4 @@ export 'src/widgets/tool_bar.dart';
export
'src/widgets/transitions.dart'
;
export
'src/widgets/unique_component.dart'
;
export
'package:vector_math/vector_math.dart'
show
Matrix4
;
export
'package:vector_math/vector_math
_64
.dart'
show
Matrix4
;
packages/flutter_sprites/lib/skysprites.dart
View file @
f2b28e55
...
...
@@ -17,7 +17,7 @@ import 'package:sky/painting.dart';
import
'package:sky/rendering.dart'
;
import
'package:sky/services.dart'
;
import
'package:sky/widgets.dart'
;
import
'package:vector_math/vector_math.dart'
;
import
'package:vector_math/vector_math
_64
.dart'
;
part
'action.dart'
;
part
'action_spline.dart'
;
...
...
packages/flutter_sprites/lib/sprite_box.dart
View file @
f2b28e55
...
...
@@ -333,7 +333,7 @@ class SpriteBox extends RenderBox {
canvas
.
concat
(
transformMatrix
.
storage
);
// Draw the sprite tree
Matrix4
totalMatrix
=
new
Matrix4
.
fromFloat
32
List
(
canvas
.
getTotalMatrix
());
Matrix4
totalMatrix
=
new
Matrix4
.
fromFloat
64
List
(
canvas
.
getTotalMatrix
());
_rootNode
.
_visit
(
canvas
,
totalMatrix
);
canvas
.
restore
();
...
...
packages/unit/test/engine/canvas_test.dart
View file @
f2b28e55
...
...
@@ -2,7 +2,7 @@ import 'dart:sky' as sky;
import
'dart:sky'
show
Rect
,
Color
,
Paint
;
import
'package:test/test.dart'
;
import
'package:vector_math/vector_math.dart'
;
import
'package:vector_math/vector_math
_64
.dart'
;
void
main
(
)
{
...
...
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