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
7bfacc1c
Kaydet (Commit)
7bfacc1c
authored
May 21, 2015
tarafından
Tor Lillqvist
Kaydeden (comit)
Tomaž Vajngerl
Eki 15, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bin unused code
(cherry picked from commit
ff2c4ee8
)
üst
10409e70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
110 deletions
+0
-110
androidinst.cxx
vcl/android/androidinst.cxx
+0
-107
androidinst.hxx
vcl/inc/android/androidinst.hxx
+0
-3
No files found.
vcl/android/androidinst.cxx
Dosyayı görüntüle @
7bfacc1c
...
@@ -38,90 +38,6 @@ public:
...
@@ -38,90 +38,6 @@ public:
virtual
bool
ErrorTrapPop
(
bool
)
{
return
false
;
}
virtual
bool
ErrorTrapPop
(
bool
)
{
return
false
;
}
};
};
static
void
BlitFrameRegionToWindow
(
ANativeWindow_Buffer
*
pOutBuffer
,
const
basebmp
::
BitmapDeviceSharedPtr
&
aDev
,
const
ARect
&
rSrcRect
,
int
nDestX
,
int
nDestY
)
{
basebmp
::
RawMemorySharedArray
aSrcData
=
aDev
->
getBuffer
();
basegfx
::
B2IVector
aDevSize
=
aDev
->
getSize
();
sal_Int32
nStride
=
aDev
->
getScanlineStride
();
unsigned
char
*
pSrc
=
aSrcData
.
get
();
// FIXME: do some cropping goodness on aSrcRect to ensure no overflows etc.
ARect
aSrcRect
=
rSrcRect
;
for
(
unsigned
int
y
=
0
;
y
<
(
unsigned
int
)(
aSrcRect
.
bottom
-
aSrcRect
.
top
);
y
++
)
{
unsigned
char
*
sp
=
(
pSrc
+
nStride
*
(
aSrcRect
.
top
+
y
)
+
aSrcRect
.
left
*
4
/* src pixel size */
);
switch
(
pOutBuffer
->
format
)
{
case
WINDOW_FORMAT_RGBA_8888
:
case
WINDOW_FORMAT_RGBX_8888
:
{
unsigned
char
*
dp
=
(
(
unsigned
char
*
)
pOutBuffer
->
bits
+
pOutBuffer
->
stride
*
4
*
(
y
+
nDestY
)
+
nDestX
*
4
/* dest pixel size */
);
for
(
unsigned
int
x
=
0
;
x
<
(
unsigned
int
)(
aSrcRect
.
right
-
aSrcRect
.
left
);
x
++
)
{
dp
[
x
*
4
+
0
]
=
sp
[
x
*
4
+
0
];
// R
dp
[
x
*
4
+
1
]
=
sp
[
x
*
4
+
1
];
// G
dp
[
x
*
4
+
2
]
=
sp
[
x
*
4
+
2
];
// B
dp
[
x
*
4
+
3
]
=
255
;
// A
}
break
;
}
case
WINDOW_FORMAT_RGB_565
:
{
unsigned
char
*
dp
=
(
(
unsigned
char
*
)
pOutBuffer
->
bits
+
pOutBuffer
->
stride
*
2
*
(
y
+
nDestY
)
+
nDestX
*
2
/* dest pixel size */
);
for
(
unsigned
int
x
=
0
;
x
<
(
unsigned
int
)(
aSrcRect
.
right
-
aSrcRect
.
left
);
x
++
)
{
unsigned
char
b
=
sp
[
x
*
3
+
0
];
// B
unsigned
char
g
=
sp
[
x
*
3
+
1
];
// G
unsigned
char
r
=
sp
[
x
*
3
+
2
];
// R
dp
[
x
*
2
+
0
]
=
(
r
&
0xf8
)
|
(
g
>>
5
);
dp
[
x
*
2
+
1
]
=
((
g
&
0x1c
)
<<
5
)
|
((
b
&
0xf8
)
>>
3
);
}
break
;
}
default:
LOGI
(
"unknown pixel format %d !"
,
pOutBuffer
->
format
);
break
;
}
}
}
void
AndroidSalInstance
::
BlitFrameToWindow
(
ANativeWindow_Buffer
*
pOutBuffer
,
const
basebmp
::
BitmapDeviceSharedPtr
&
aDev
)
{
basegfx
::
B2IVector
aDevSize
=
aDev
->
getSize
();
ARect
aWhole
=
{
0
,
0
,
aDevSize
.
getX
(),
aDevSize
.
getY
()
};
BlitFrameRegionToWindow
(
pOutBuffer
,
aDev
,
aWhole
,
0
,
0
);
}
void
AndroidSalInstance
::
RedrawWindows
(
ANativeWindow_Buffer
*
pBuffer
)
{
if
(
pBuffer
->
bits
!=
NULL
)
{
int
i
=
0
;
std
::
list
<
SalFrame
*
>::
const_iterator
it
;
for
(
it
=
getFrames
().
begin
();
it
!=
getFrames
().
end
();
i
++
,
++
it
)
{
SvpSalFrame
*
pFrame
=
static_cast
<
SvpSalFrame
*>
(
*
it
);
if
(
pFrame
->
IsVisible
())
{
BlitFrameToWindow
(
pBuffer
,
pFrame
->
getDevice
());
}
}
}
else
LOGI
(
"no buffer for locked window"
);
}
void
AndroidSalInstance
::
damaged
(
AndroidSalFrame
*/
*
frame
*/
)
void
AndroidSalInstance
::
damaged
(
AndroidSalFrame
*/
*
frame
*/
)
{
{
static
bool
beenHere
=
false
;
static
bool
beenHere
=
false
;
...
@@ -148,29 +64,6 @@ void AndroidSalInstance::GetWorkArea( Rectangle& rRect )
...
@@ -148,29 +64,6 @@ void AndroidSalInstance::GetWorkArea( Rectangle& rRect )
Size
(
viewWidth
,
viewHeight
)
);
Size
(
viewWidth
,
viewHeight
)
);
}
}
/*
* Try too hard to get a frame, in the absence of anything better to do
*/
SalFrame
*
AndroidSalInstance
::
getFocusFrame
()
const
{
SalFrame
*
pFocus
=
SvpSalFrame
::
GetFocusFrame
();
if
(
!
pFocus
)
{
LOGI
(
"no focus frame, re-focusing first visible frame"
);
const
std
::
list
<
SalFrame
*
>&
rFrames
(
getFrames
()
);
for
(
std
::
list
<
SalFrame
*
>::
const_iterator
it
=
rFrames
.
begin
();
it
!=
rFrames
.
end
();
++
it
)
{
SvpSalFrame
*
pFrame
=
const_cast
<
SvpSalFrame
*>
(
static_cast
<
const
SvpSalFrame
*>
(
*
it
));
if
(
pFrame
->
IsVisible
()
)
{
pFrame
->
GetFocus
();
pFocus
=
pFrame
;
break
;
}
}
}
return
pFocus
;
}
AndroidSalInstance
*
AndroidSalInstance
::
getInstance
()
AndroidSalInstance
*
AndroidSalInstance
::
getInstance
()
{
{
if
(
!
ImplGetSVData
())
if
(
!
ImplGetSVData
())
...
...
vcl/inc/android/androidinst.hxx
Dosyayı görüntüle @
7bfacc1c
...
@@ -42,9 +42,6 @@ public:
...
@@ -42,9 +42,6 @@ public:
// mainloop pieces
// mainloop pieces
virtual
bool
AnyInput
(
VclInputFlags
nType
);
virtual
bool
AnyInput
(
VclInputFlags
nType
);
void
RedrawWindows
(
ANativeWindow_Buffer
*
pBuffer
);
SalFrame
*
getFocusFrame
()
const
;
void
damaged
(
AndroidSalFrame
*
frame
);
void
damaged
(
AndroidSalFrame
*
frame
);
};
};
...
...
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