Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
external_skia
Commits
6ca98e72
Commit
6ca98e72
authored
11 years ago
by
Chris Craik
Committed by
Android (Google) Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "Update SkMovie to properly use giflib 5.0"
parents
7f1beae4
75c03a1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/images/SkMovie_gif.cpp
src/images/SkMovie_gif.cpp
+8
-2
No files found.
src/images/SkMovie_gif.cpp
View file @
6ca98e72
...
...
@@ -124,6 +124,7 @@ static void copyLine(uint32_t* dst, const unsigned char* src, const ColorMapObje
}
}
#if GIFLIB_MAJOR < 5
static
void
copyInterlaceGroup
(
SkBitmap
*
bm
,
const
unsigned
char
*&
src
,
const
ColorMapObject
*
cmap
,
int
transparent
,
int
copyWidth
,
int
copyHeight
,
const
GifImageDesc
&
imageDesc
,
int
rowStep
,
...
...
@@ -170,6 +171,7 @@ static void blitInterlace(SkBitmap* bm, const SavedImage* frame, const ColorMapO
copyInterlaceGroup
(
bm
,
src
,
cmap
,
transparent
,
copyWidth
,
copyHeight
,
frame
->
ImageDesc
,
2
,
1
);
}
#endif
static
void
blitNormal
(
SkBitmap
*
bm
,
const
SavedImage
*
frame
,
const
ColorMapObject
*
cmap
,
int
transparent
)
...
...
@@ -245,11 +247,15 @@ static void drawFrame(SkBitmap* bm, const SavedImage* frame, const ColorMapObjec
return
;
}
#if GIFLIB_MAJOR < 5
// before GIFLIB 5, de-interlacing wasn't done by library at load time
if
(
frame
->
ImageDesc
.
Interlace
)
{
blitInterlace
(
bm
,
frame
,
cmap
,
transparent
);
}
else
{
blitNormal
(
bm
,
frame
,
cmap
,
transparent
);
return
;
}
#endif
blitNormal
(
bm
,
frame
,
cmap
,
transparent
);
}
static
bool
checkIfWillBeCleared
(
const
SavedImage
*
frame
)
...
...
This diff is collapsed.
Click to expand it.
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