Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: include/core/SkBitmap.h

Issue 322963002: hide SkBitmap::setConfig (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/skia_for_chromium_defines.gypi ('k') | include/core/SkImageDecoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkBitmap.h
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
index 6de95be24e459c2106a0452834aaa816e9859b91..ddeac2573b8a4e9e5de56850f4a6c86ec5c53009 100644
--- a/include/core/SkBitmap.h
+++ b/include/core/SkBitmap.h
@@ -266,6 +266,7 @@ public:
void getBounds(SkRect* bounds) const;
void getBounds(SkIRect* bounds) const;
+#ifdef SK_SUPPORT_LEGACY_SETCONFIG
/** Set the bitmap's config and dimensions. If rowBytes is 0, then
ComputeRowBytes() is called to compute the optimal value. This resets
any pixel/colortable ownership, just like reset().
@@ -276,6 +277,7 @@ public:
return this->setConfig(config, width, height, rowBytes,
kPremul_SkAlphaType);
}
+#endif
bool setInfo(const SkImageInfo&, size_t rowBytes = 0);
« no previous file with comments | « gyp/skia_for_chromium_defines.gypi ('k') | include/core/SkImageDecoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698