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

Unified Diff: include/core/SkPicture.h

Issue 1183853003: skia: Add runtime option to disable picture IO security precautions (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: skia uses 4 spaces. Created 5 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 | « no previous file | src/core/SkPicture.cpp » ('j') | src/core/SkPicture.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPicture.h
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index 30e410cca35f406535589130722231543bc6abba..c0990855465427367b0acbee221d9318c2b9e166 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -153,6 +153,10 @@ public:
// Returns NULL if this is not an SkBigPicture.
virtual const SkBigPicture* asSkBigPicture() const { return NULL; }
+ // Global setting to enable or disable security precautions for serialization.
+ static void setPictureIOSecurityPrecautionsEnabled_Dangerous(bool set);
mtklein 2015/06/16 15:57:49 Skia style makes static methods NamedLikeThis, so
hendrikw 2015/06/16 16:09:36 Done.
+ static bool pictureIOSecurityPrecautionsEnabled();
+
private:
// Subclass whitelist.
SkPicture();
« no previous file with comments | « no previous file | src/core/SkPicture.cpp » ('j') | src/core/SkPicture.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698