projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git]
/
src
/
third_party
/
skia
/
src
/
utils
/
SkDumpCanvas.cpp
diff --git
a/src/third_party/skia/src/utils/SkDumpCanvas.cpp
b/src/third_party/skia/src/utils/SkDumpCanvas.cpp
index
dabf0d7
..
5f3a572
100644
(file)
--- a/
src/third_party/skia/src/utils/SkDumpCanvas.cpp
+++ b/
src/third_party/skia/src/utils/SkDumpCanvas.cpp
@@
-163,15
+163,9
@@
static void toString(const void* text, size_t byteLen, SkPaint::TextEncoding enc
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
-static SkBitmap make_wideopen_bm() {
- static const int WIDE_OPEN = 16384;
+#define WIDE_OPEN 16384
- SkBitmap bm;
- bm.setConfig(SkBitmap::kNo_Config, WIDE_OPEN, WIDE_OPEN);
- return bm;
-}
-
-SkDumpCanvas::SkDumpCanvas(Dumper* dumper) : INHERITED(make_wideopen_bm()) {
+SkDumpCanvas::SkDumpCanvas(Dumper* dumper) : INHERITED(WIDE_OPEN, WIDE_OPEN) {
fNestLevel = 0;
SkSafeRef(dumper);
fDumper = dumper;
fNestLevel = 0;
SkSafeRef(dumper);
fDumper = dumper;