Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
1fa58e5c
Kaydet (Commit)
1fa58e5c
authored
Eyl 24, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
android: update DisplayPortCalculator
Change-Id: Ib47822940e83e8fb78a0a8b1e18028646bfb35ae
üst
0aad0401
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
DisplayPortCalculator.java
...src/java/org/mozilla/gecko/gfx/DisplayPortCalculator.java
+0
-0
DisplayPortMetrics.java
...d3/src/java/org/mozilla/gecko/gfx/DisplayPortMetrics.java
+9
-2
No files found.
android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/DisplayPortCalculator.java
Dosyayı görüntüle @
1fa58e5c
This diff is collapsed.
Click to expand it.
android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/DisplayPortMetrics.java
Dosyayı görüntüle @
1fa58e5c
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
package
org
.
mozilla
.
gecko
.
gfx
;
package
org
.
mozilla
.
gecko
.
gfx
;
import
android.graphics.RectF
;
import
android.graphics.RectF
;
import
org.mozilla.gecko.util.FloatUtils
;
/*
/*
* This class keeps track of the area we request Gecko to paint, as well
* This class keeps track of the area we request Gecko to paint, as well
...
@@ -32,6 +33,11 @@ public final class DisplayPortMetrics {
...
@@ -32,6 +33,11 @@ public final class DisplayPortMetrics {
return
mPosition
.
contains
(
rect
);
return
mPosition
.
contains
(
rect
);
}
}
public
boolean
fuzzyEquals
(
DisplayPortMetrics
metrics
)
{
return
RectUtils
.
fuzzyEquals
(
mPosition
,
metrics
.
mPosition
)
&&
FloatUtils
.
fuzzyEquals
(
mResolution
,
metrics
.
mResolution
);
}
public
String
toJSON
()
{
public
String
toJSON
()
{
StringBuffer
sb
=
new
StringBuffer
(
256
);
StringBuffer
sb
=
new
StringBuffer
(
256
);
sb
.
append
(
"{ \"left\": "
).
append
(
mPosition
.
left
)
sb
.
append
(
"{ \"left\": "
).
append
(
mPosition
.
left
)
...
@@ -43,9 +49,10 @@ public final class DisplayPortMetrics {
...
@@ -43,9 +49,10 @@ public final class DisplayPortMetrics {
return
sb
.
toString
();
return
sb
.
toString
();
}
}
@Override
public
String
toString
()
{
public
String
toString
()
{
return
"DisplayPortMetrics("
+
mPosition
.
left
+
","
return
"DisplayPortMetrics
v=
("
+
mPosition
.
left
+
","
+
mPosition
.
top
+
","
+
mPosition
.
right
+
","
+
mPosition
.
top
+
","
+
mPosition
.
right
+
","
+
mPosition
.
bottom
+
"
,"
+
mResolution
+
")"
;
+
mPosition
.
bottom
+
"
) z="
+
mResolution
;
}
}
}
}
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