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
0896ce1e
Commit
0896ce1e
authored
13 years ago
by
Jean-Baptiste Queru
Browse files
Options
Download
Plain Diff
Merge from gingerbread - do not merge
Change-Id: Iba2f457ca4e8ea90078d1028e1ea829b3d889285
parents
a4f65ce7
cd3762b4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
include/core/SkDrawFilter.h
include/core/SkDrawFilter.h
+1
-1
include/effects/SkLayerDrawLooper.h
include/effects/SkLayerDrawLooper.h
+2
-2
src/effects/SkLayerDrawLooper.cpp
src/effects/SkLayerDrawLooper.cpp
+2
-2
No files found.
include/core/SkDrawFilter.h
View file @
0896ce1e
...
...
@@ -44,7 +44,7 @@ public:
* Called with the paint that will be used to draw the specified type.
* The implementation may modify the paint as they wish.
*/
virtual
void
filter
(
SkPaint
*
,
Type
)
=
0
;
virtual
void
filter
(
SkPaint
*
,
Type
)
{}
};
#endif
This diff is collapsed.
Click to expand it.
include/effects/SkLayerDrawLooper.h
View file @
0896ce1e
...
...
@@ -74,12 +74,12 @@ public:
/**
* This layer will draw with the original paint, ad the specified offset
*/
void
addLayer
(
SkScalar
dx
,
SkScalar
dy
);
SkPaint
*
addLayer
(
SkScalar
dx
,
SkScalar
dy
);
/**
* This layer will with the original paint and no offset.
*/
void
addLayer
()
{
this
->
addLayer
(
0
,
0
);
}
SkPaint
*
addLayer
()
{
return
this
->
addLayer
(
0
,
0
);
}
// overrides from SkDrawLooper
virtual
void
init
(
SkCanvas
*
);
...
...
This diff is collapsed.
Click to expand it.
src/effects/SkLayerDrawLooper.cpp
View file @
0896ce1e
...
...
@@ -37,11 +37,11 @@ SkPaint* SkLayerDrawLooper::addLayer(const LayerInfo& info) {
return
&
rec
->
fPaint
;
}
void
SkLayerDrawLooper
::
addLayer
(
SkScalar
dx
,
SkScalar
dy
)
{
SkPaint
*
SkLayerDrawLooper
::
addLayer
(
SkScalar
dx
,
SkScalar
dy
)
{
LayerInfo
info
;
info
.
fOffset
.
set
(
dx
,
dy
);
(
void
)
this
->
addLayer
(
info
);
return
this
->
addLayer
(
info
);
}
void
SkLayerDrawLooper
::
init
(
SkCanvas
*
canvas
)
{
...
...
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