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
c719731e
Commit
c719731e
authored
12 years ago
by
Jean-Baptiste Queru
Committed by
Gerrit Code Review
12 years ago
Browse files
Options
Download
Plain Diff
Merge "Tweak for forward compatibility"
parents
f490d8c1
61b2b8a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
gm/gmmain.cpp
gm/gmmain.cpp
+3
-2
No files found.
gm/gmmain.cpp
View file @
c719731e
...
...
@@ -250,12 +250,13 @@ static void setup_bitmap(const ConfigData& gRec, SkISize& size,
#include "SkDrawFilter.h"
class
BWTextDrawFilter
:
public
SkDrawFilter
{
public:
virtual
void
filter
(
SkPaint
*
,
Type
)
SK_OVERRIDE
;
virtual
bool
filter
(
SkPaint
*
,
Type
)
SK_OVERRIDE
;
};
void
BWTextDrawFilter
::
filter
(
SkPaint
*
p
,
Type
t
)
{
bool
BWTextDrawFilter
::
filter
(
SkPaint
*
p
,
Type
t
)
{
if
(
kText_Type
==
t
)
{
p
->
setAntiAlias
(
false
);
}
return
false
;
}
static
void
installFilter
(
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