Fix SkTLazy(const T*) initialization

Splitting the fix from https://codereview.chromium.org/2271743002/.

R=bungeman@google.com,mtklein@google.com
TBR=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2278633002

Review-Url: https://codereview.chromium.org/2278633002
This commit is contained in:
fmalita 2016-08-24 11:03:24 -07:00 committed by Commit bot
parent 2ff47c2390
commit bf783b335c

View File

@ -99,8 +99,8 @@ public:
T* getMaybeNull() const { return fPtr; } T* getMaybeNull() const { return fPtr; }
private: private:
T* fPtr; // nullptr or fStorage
SkAlignedSTStorage<1, T> fStorage; SkAlignedSTStorage<1, T> fStorage;
T* fPtr; // nullptr or fStorage
}; };
/** /**