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
cbbdf804
Commit
cbbdf804
authored
Sep 03, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1039 from abarth/fix_raw_examples
Actually make the raw examples work again
parents
c3e618fe
e35e700c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
8 deletions
+29
-8
baseline.dart
examples/raw/baseline.dart
+3
-1
hello_world.dart
examples/raw/hello_world.dart
+3
-1
mutating-dom.dart
examples/raw/mutating-dom.dart
+4
-1
painting.dart
examples/raw/painting.dart
+3
-1
shadow.dart
examples/raw/shadow.dart
+3
-1
spinning_arabic.dart
examples/raw/spinning_arabic.dart
+5
-1
spinning_image.dart
examples/raw/spinning_image.dart
+4
-1
spinning_square.dart
examples/raw/spinning_square.dart
+4
-1
No files found.
examples/raw/baseline.dart
View file @
cbbdf804
...
...
@@ -66,7 +66,9 @@ sky.Scene composite(sky.Picture picture, sky.Rect paintBounds) {
sky
.
Rect
sceneBounds
=
new
sky
.
Rect
.
fromLTWH
(
0.0
,
0.0
,
sky
.
view
.
width
*
devicePixelRatio
,
sky
.
view
.
height
*
devicePixelRatio
);
Float32List
deviceTransform
=
new
Float32List
(
16
)
..[
0
]
=
devicePixelRatio
..[
5
]
=
devicePixelRatio
;
..[
5
]
=
devicePixelRatio
..[
10
]
=
1.0
..[
15
]
=
1.0
;
sky
.
SceneBuilder
sceneBuilder
=
new
sky
.
SceneBuilder
(
sceneBounds
)
..
pushTransform
(
deviceTransform
)
..
addPicture
(
sky
.
Offset
.
zero
,
picture
,
paintBounds
)
...
...
examples/raw/hello_world.dart
View file @
cbbdf804
...
...
@@ -25,7 +25,9 @@ sky.Scene composite(sky.Picture picture, sky.Rect paintBounds) {
sky
.
Rect
sceneBounds
=
new
sky
.
Rect
.
fromLTWH
(
0.0
,
0.0
,
sky
.
view
.
width
*
devicePixelRatio
,
sky
.
view
.
height
*
devicePixelRatio
);
Float32List
deviceTransform
=
new
Float32List
(
16
)
..[
0
]
=
devicePixelRatio
..[
5
]
=
devicePixelRatio
;
..[
5
]
=
devicePixelRatio
..[
10
]
=
1.0
..[
15
]
=
1.0
;
sky
.
SceneBuilder
sceneBuilder
=
new
sky
.
SceneBuilder
(
sceneBounds
)
..
pushTransform
(
deviceTransform
)
..
addPicture
(
sky
.
Offset
.
zero
,
picture
,
paintBounds
)
...
...
examples/raw/mutating-dom.dart
View file @
cbbdf804
...
...
@@ -220,7 +220,9 @@ sky.Scene composite(sky.Picture picture, sky.Rect paintBounds) {
sky
.
Rect
sceneBounds
=
new
sky
.
Rect
.
fromLTWH
(
0.0
,
0.0
,
sky
.
view
.
width
*
devicePixelRatio
,
sky
.
view
.
height
*
devicePixelRatio
);
Float32List
deviceTransform
=
new
Float32List
(
16
)
..[
0
]
=
devicePixelRatio
..[
5
]
=
devicePixelRatio
;
..[
5
]
=
devicePixelRatio
..[
10
]
=
1.0
..[
15
]
=
1.0
;
sky
.
SceneBuilder
sceneBuilder
=
new
sky
.
SceneBuilder
(
sceneBounds
)
..
pushTransform
(
deviceTransform
)
..
addPicture
(
sky
.
Offset
.
zero
,
picture
,
paintBounds
)
...
...
@@ -233,6 +235,7 @@ void beginFrame(double timeStamp) {
sky
.
Picture
picture
=
paint
(
paintBounds
);
sky
.
Scene
scene
=
composite
(
picture
,
paintBounds
);
sky
.
view
.
scene
=
scene
;
sky
.
view
.
scheduleFrame
();
}
void
main
(
)
{
...
...
examples/raw/painting.dart
View file @
cbbdf804
...
...
@@ -85,7 +85,9 @@ sky.Scene composite(sky.Picture picture, sky.Rect paintBounds) {
sky
.
Rect
sceneBounds
=
new
sky
.
Rect
.
fromLTWH
(
0.0
,
0.0
,
sky
.
view
.
width
*
devicePixelRatio
,
sky
.
view
.
height
*
devicePixelRatio
);
Float32List
deviceTransform
=
new
Float32List
(
16
)
..[
0
]
=
devicePixelRatio
..[
5
]
=
devicePixelRatio
;
..[
5
]
=
devicePixelRatio
..[
10
]
=
1.0
..[
15
]
=
1.0
;
sky
.
SceneBuilder
sceneBuilder
=
new
sky
.
SceneBuilder
(
sceneBounds
)
..
pushTransform
(
deviceTransform
)
..
addPicture
(
sky
.
Offset
.
zero
,
picture
,
paintBounds
)
...
...
examples/raw/shadow.dart
View file @
cbbdf804
...
...
@@ -42,7 +42,9 @@ sky.Scene composite(sky.Picture picture, sky.Rect paintBounds) {
sky
.
Rect
sceneBounds
=
new
sky
.
Rect
.
fromLTWH
(
0.0
,
0.0
,
sky
.
view
.
width
*
devicePixelRatio
,
sky
.
view
.
height
*
devicePixelRatio
);
Float32List
deviceTransform
=
new
Float32List
(
16
)
..[
0
]
=
devicePixelRatio
..[
5
]
=
devicePixelRatio
;
..[
5
]
=
devicePixelRatio
..[
10
]
=
1.0
..[
15
]
=
1.0
;
sky
.
SceneBuilder
sceneBuilder
=
new
sky
.
SceneBuilder
(
sceneBounds
)
..
pushTransform
(
deviceTransform
)
..
addPicture
(
sky
.
Offset
.
zero
,
picture
,
paintBounds
)
...
...
examples/raw/spinning_arabic.dart
View file @
cbbdf804
...
...
@@ -33,7 +33,9 @@ sky.Scene composite(sky.Picture picture, sky.Rect paintBounds) {
sky
.
Rect
sceneBounds
=
new
sky
.
Rect
.
fromLTWH
(
0.0
,
0.0
,
sky
.
view
.
width
*
devicePixelRatio
,
sky
.
view
.
height
*
devicePixelRatio
);
Float32List
deviceTransform
=
new
Float32List
(
16
)
..[
0
]
=
devicePixelRatio
..[
5
]
=
devicePixelRatio
;
..[
5
]
=
devicePixelRatio
..[
10
]
=
1.0
..[
15
]
=
1.0
;
sky
.
SceneBuilder
sceneBuilder
=
new
sky
.
SceneBuilder
(
sceneBounds
)
..
pushTransform
(
deviceTransform
)
..
addPicture
(
sky
.
Offset
.
zero
,
picture
,
paintBounds
)
...
...
@@ -49,6 +51,7 @@ void beginFrame(double timeStamp) {
sky
.
Picture
picture
=
paint
(
paintBounds
,
delta
);
sky
.
Scene
scene
=
composite
(
picture
,
paintBounds
);
sky
.
view
.
scene
=
scene
;
sky
.
view
.
scheduleFrame
();
}
void
main
(
)
{
...
...
@@ -59,6 +62,7 @@ void main() {
block
.
style
[
'display'
]
=
'paragraph'
;
block
.
style
[
'direction'
]
=
'rtl'
;
block
.
style
[
'unicode-bidi'
]
=
'plaintext'
;
block
.
style
[
'color'
]
=
'black'
;
block
.
appendChild
(
arabic
);
block
.
appendChild
(
more
);
...
...
examples/raw/spinning_image.dart
View file @
cbbdf804
...
...
@@ -46,7 +46,9 @@ sky.Scene composite(sky.Picture picture, sky.Rect paintBounds) {
sky
.
Rect
sceneBounds
=
new
sky
.
Rect
.
fromLTWH
(
0.0
,
0.0
,
sky
.
view
.
width
*
devicePixelRatio
,
sky
.
view
.
height
*
devicePixelRatio
);
Float32List
deviceTransform
=
new
Float32List
(
16
)
..[
0
]
=
devicePixelRatio
..[
5
]
=
devicePixelRatio
;
..[
5
]
=
devicePixelRatio
..[
10
]
=
1.0
..[
15
]
=
1.0
;
sky
.
SceneBuilder
sceneBuilder
=
new
sky
.
SceneBuilder
(
sceneBounds
)
..
pushTransform
(
deviceTransform
)
..
addPicture
(
sky
.
Offset
.
zero
,
picture
,
paintBounds
)
...
...
@@ -62,6 +64,7 @@ void beginFrame(double timeStamp) {
sky
.
Picture
picture
=
paint
(
paintBounds
,
delta
);
sky
.
Scene
scene
=
composite
(
picture
,
paintBounds
);
sky
.
view
.
scene
=
scene
;
sky
.
view
.
scheduleFrame
();
}
...
...
examples/raw/spinning_square.dart
View file @
cbbdf804
...
...
@@ -29,7 +29,9 @@ void beginFrame(double timeStamp) {
sky
.
Rect
sceneBounds
=
new
sky
.
Rect
.
fromLTWH
(
0.0
,
0.0
,
sky
.
view
.
width
*
devicePixelRatio
,
sky
.
view
.
height
*
devicePixelRatio
);
Float32List
deviceTransform
=
new
Float32List
(
16
)
..[
0
]
=
devicePixelRatio
..[
5
]
=
devicePixelRatio
;
..[
5
]
=
devicePixelRatio
..[
10
]
=
1.0
..[
15
]
=
1.0
;
sky
.
SceneBuilder
sceneBuilder
=
new
sky
.
SceneBuilder
(
sceneBounds
)
..
pushTransform
(
deviceTransform
)
..
addPicture
(
sky
.
Offset
.
zero
,
picture
,
paintBounds
)
...
...
@@ -37,6 +39,7 @@ void beginFrame(double timeStamp) {
sky
.
view
.
scene
=
sceneBuilder
.
build
();
sky
.
tracing
.
end
(
'beginFrame'
);
sky
.
view
.
scheduleFrame
();
}
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