diff options
author | Chris Craik <ccraik@google.com> | 2014-06-17 21:00:03 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-06-17 20:49:29 +0000 |
commit | 75af3f3c9693f939c73ce1a7c2889a7f8d4853c0 (patch) | |
tree | 3fd3b0646b42cfa7fb9a371b1f09bd46d8a6cb2c /libs/hwui/RenderProperties.h | |
parent | b96075232821552961fde3a83ee984af0ae7f7b2 (diff) | |
parent | fe02b4b344c37200486d8afc972560fb550cb17e (diff) |
Merge "Add abort logging for huge scales and tessellation recursion depth"
Diffstat (limited to 'libs/hwui/RenderProperties.h')
-rw-r--r-- | libs/hwui/RenderProperties.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/RenderProperties.h b/libs/hwui/RenderProperties.h index eab929b07065..227d56eb3bd6 100644 --- a/libs/hwui/RenderProperties.h +++ b/libs/hwui/RenderProperties.h @@ -21,6 +21,7 @@ #include <vector> #include <cutils/compiler.h> #include <androidfw/ResourceTypes.h> +#include <utils/Log.h> #include <SkCamera.h> #include <SkMatrix.h> @@ -282,6 +283,7 @@ public: } bool setScaleX(float scaleX) { + LOG_ALWAYS_FATAL_IF(scaleX > 1000000, "invalid scaleX %e", scaleX); return RP_SET_AND_DIRTY(mPrimitiveFields.mScaleX, scaleX); } @@ -290,6 +292,7 @@ public: } bool setScaleY(float scaleY) { + LOG_ALWAYS_FATAL_IF(scaleY > 1000000, "invalid scaleY %e", scaleY); return RP_SET_AND_DIRTY(mPrimitiveFields.mScaleY, scaleY); } |