Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
8fc7a805
You need to sign in or sign up before continuing.
Commit
8fc7a805
authored
Sep 05, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Sep 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Render.c: remove some more unused functions
nxagentTriangles nxagentTriFan nxagentTriStrip
parent
fd274d05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
219 deletions
+0
-219
Render.c
nx-X11/programs/Xserver/hw/nxagent/Render.c
+0
-219
No files found.
nx-X11/programs/Xserver/hw/nxagent/Render.c
View file @
8fc7a805
...
...
@@ -161,20 +161,8 @@ void nxagentTrapezoids(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
PictFormatPtr
maskFormat
,
INT16
xSrc
,
INT16
ySrc
,
int
ntrap
,
xTrapezoid
*
traps
);
void
nxagentTriangles
(
CARD8
op
,
PicturePtr
pSrc
,
PicturePtr
pDst
,
PictFormatPtr
maskFormat
,
INT16
xSrc
,
INT16
ySrc
,
int
ntri
,
xTriangle
*
tris
);
void
nxagentTriStrip
(
CARD8
op
,
PicturePtr
pSrc
,
PicturePtr
pDst
,
PictFormatPtr
maskFormat
,
INT16
xSrc
,
INT16
ySrc
,
int
npoint
,
xPointFixed
*
points
);
void
nxagentChangePicture
(
PicturePtr
pPicture
,
Mask
mask
);
void
nxagentTriFan
(
CARD8
op
,
PicturePtr
pSrc
,
PicturePtr
pDst
,
PictFormatPtr
maskFormat
,
INT16
xSrc
,
INT16
ySrc
,
int
npoint
,
xPointFixed
*
points
);
void
nxagentReferenceGlyphSet
(
GlyphSetPtr
glyphSet
);
void
nxagentFreeGlyphs
(
GlyphSetPtr
glyphSet
,
CARD32
*
gids
,
int
nglyph
);
...
...
@@ -1877,213 +1865,6 @@ FIXME: Is this useful or just a waste of bandwidth?
#endif
}
void
nxagentTriangles
(
CARD8
op
,
PicturePtr
pSrc
,
PicturePtr
pDst
,
PictFormatPtr
maskFormat
,
INT16
xSrc
,
INT16
ySrc
,
int
ntri
,
xTriangle
*
tris
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentTriangles: Source [%p] Destination [%p] Coordinates [%d,%d] Elements [%d].
\n
"
,
(
void
*
)
pSrc
,
(
void
*
)
pDst
,
xSrc
,
ySrc
,
ntri
);
#endif
if
(
pSrc
==
NULL
||
pDst
==
NULL
)
{
return
;
}
XRenderPictFormat
*
pForm
=
NULL
;
if
(
maskFormat
!=
NULL
)
{
pForm
=
nxagentMatchingFormats
(
maskFormat
);
nxagentPrintFormat
(
pForm
);
if
(
pForm
==
NULL
)
{
return
;
}
}
/*
* If the X_RenderCompositeTriangles requests
* increment the traffic, we can defer the
* operation like nxagentTrapezoids() does.
*/
if
(
pSrc
->
pDrawable
!=
NULL
&&
nxagentDrawableStatus
(
pSrc
->
pDrawable
)
==
NotSynchronized
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentTriangles: Going to synchronize the source drawable at [%p].
\n
"
,
(
void
*
)
pSrc
->
pDrawable
);
#endif
nxagentSynchronizeDrawable
(
pSrc
->
pDrawable
,
DO_WAIT
,
NEVER_BREAK
,
NULL
);
}
if
(
nxagentDrawableStatus
(
pDst
->
pDrawable
)
==
NotSynchronized
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentTriangles: Going to synchronize the destination drawable at [%p].
\n
"
,
(
void
*
)
pDst
->
pDrawable
);
#endif
nxagentSynchronizeDrawable
(
pDst
->
pDrawable
,
DO_WAIT
,
NEVER_BREAK
,
NULL
);
}
XRenderCompositeTriangles
(
nxagentDisplay
,
op
,
nxagentPicturePriv
(
pSrc
)
->
picture
,
nxagentPicturePriv
(
pDst
)
->
picture
,
pForm
,
xSrc
,
ySrc
,
(
XTriangle
*
)
tris
,
ntri
);
#ifdef DEBUG
XSync
(
nxagentDisplay
,
0
);
#endif
}
void
nxagentTriStrip
(
CARD8
op
,
PicturePtr
pSrc
,
PicturePtr
pDst
,
PictFormatPtr
maskFormat
,
INT16
xSrc
,
INT16
ySrc
,
int
npoint
,
xPointFixed
*
points
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentTriStrip: Source [%p] Destination [%p] Coordinates [%d,%d] Elements [%d].
\n
"
,
(
void
*
)
pSrc
,
(
void
*
)
pDst
,
xSrc
,
ySrc
,
npoint
);
#endif
if
(
pSrc
==
NULL
||
pDst
==
NULL
)
{
return
;
}
XRenderPictFormat
*
pForm
=
NULL
;
if
(
maskFormat
!=
NULL
)
{
pForm
=
nxagentMatchingFormats
(
maskFormat
);
nxagentPrintFormat
(
pForm
);
if
(
pForm
==
NULL
)
{
return
;
}
}
/*
* If the X_RenderCompositeTriStrip requests
* increment the traffic, we can defer the
* operation like nxagentTrapezoids() does.
*/
if
(
pSrc
->
pDrawable
!=
NULL
&&
nxagentDrawableStatus
(
pSrc
->
pDrawable
)
==
NotSynchronized
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentTriStrip: Going to synchronize the source drawable at [%p].
\n
"
,
(
void
*
)
pSrc
->
pDrawable
);
#endif
nxagentSynchronizeDrawable
(
pSrc
->
pDrawable
,
DO_WAIT
,
NEVER_BREAK
,
NULL
);
}
if
(
nxagentDrawableStatus
(
pDst
->
pDrawable
)
==
NotSynchronized
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentTriStrip: Going to synchronize the destination drawable at [%p].
\n
"
,
(
void
*
)
pDst
->
pDrawable
);
#endif
nxagentSynchronizeDrawable
(
pDst
->
pDrawable
,
DO_WAIT
,
NEVER_BREAK
,
NULL
);
}
XRenderCompositeTriStrip
(
nxagentDisplay
,
op
,
nxagentPicturePriv
(
pSrc
)
->
picture
,
nxagentPicturePriv
(
pDst
)
->
picture
,
pForm
,
xSrc
,
ySrc
,
(
XPointFixed
*
)
points
,
npoint
);
#ifdef DEBUG
XSync
(
nxagentDisplay
,
0
);
#endif
}
void
nxagentTriFan
(
CARD8
op
,
PicturePtr
pSrc
,
PicturePtr
pDst
,
PictFormatPtr
maskFormat
,
INT16
xSrc
,
INT16
ySrc
,
int
npoint
,
xPointFixed
*
points
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentTriFan: Source [%p] Destination [%p] Coordinates [%d,%d] Elements [%d].
\n
"
,
(
void
*
)
pSrc
,
(
void
*
)
pDst
,
xSrc
,
ySrc
,
npoint
);
#endif
if
(
pSrc
==
NULL
||
pDst
==
NULL
)
{
return
;
}
XRenderPictFormat
*
pForm
=
NULL
;
if
(
maskFormat
!=
NULL
)
{
pForm
=
nxagentMatchingFormats
(
maskFormat
);
nxagentPrintFormat
(
pForm
);
if
(
pForm
==
NULL
)
{
return
;
}
}
/*
* If the X_RenderCompositeTriFan requests
* increment the traffic, we can defer the
* operation like nxagentTrapezoids() does.
*/
if
(
pSrc
->
pDrawable
!=
NULL
&&
nxagentDrawableStatus
(
pSrc
->
pDrawable
)
==
NotSynchronized
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentTriFan: Going to synchronize the source drawable at [%p].
\n
"
,
(
void
*
)
pSrc
->
pDrawable
);
#endif
nxagentSynchronizeDrawable
(
pSrc
->
pDrawable
,
DO_WAIT
,
NEVER_BREAK
,
NULL
);
}
if
(
nxagentDrawableStatus
(
pDst
->
pDrawable
)
==
NotSynchronized
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentTriFan: Going to synchronize the destination drawable at [%p].
\n
"
,
(
void
*
)
pDst
->
pDrawable
);
#endif
nxagentSynchronizeDrawable
(
pDst
->
pDrawable
,
DO_WAIT
,
NEVER_BREAK
,
NULL
);
}
XRenderCompositeTriFan
(
nxagentDisplay
,
op
,
nxagentPicturePriv
(
pSrc
)
->
picture
,
nxagentPicturePriv
(
pDst
)
->
picture
,
pForm
,
xSrc
,
ySrc
,
(
XPointFixed
*
)
points
,
npoint
);
#ifdef DEBUG
XSync
(
nxagentDisplay
,
0
);
#endif
}
void
nxagentQueryFormats
(
void
)
{
#ifdef DEBUG
...
...
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