diff options
Diffstat (limited to 'linden/indra/newview/lltexlayer.h')
-rw-r--r-- | linden/indra/newview/lltexlayer.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/linden/indra/newview/lltexlayer.h b/linden/indra/newview/lltexlayer.h index 69132fe..1924d0b 100644 --- a/linden/indra/newview/lltexlayer.h +++ b/linden/indra/newview/lltexlayer.h | |||
@@ -17,7 +17,8 @@ | |||
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | 20 | * online at |
21 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
21 | * | 22 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 23 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 24 | * that you have read and understood your obligations described above, |
@@ -532,18 +533,26 @@ public: | |||
532 | S32 mTGABytes; | 533 | S32 mTGABytes; |
533 | }; | 534 | }; |
534 | 535 | ||
535 | |||
536 | // Used by LLTexLayerSetBuffer for a callback. | 536 | // Used by LLTexLayerSetBuffer for a callback. |
537 | |||
538 | // For DEV-DEV-31590, "Heap corruption and crash after outfit | ||
539 | // changes", added the mLayerSet member. The current | ||
540 | // LLTexLayerSetBuffer can be found by querying mLayerSet->mComposite, | ||
541 | // but we still store the original mLayerSetBuffer here so we can | ||
542 | // detect when an upload is out of date. This prevents a memory | ||
543 | // stomp. See LLTexLayerSetBuffer::onTextureUploadComplete() for usage. | ||
537 | class LLBakedUploadData | 544 | class LLBakedUploadData |
538 | { | 545 | { |
539 | public: | 546 | public: |
540 | LLBakedUploadData( LLVOAvatar* avatar, LLTexLayerSetBuffer* layerset_buffer ); | 547 | LLBakedUploadData( LLVOAvatar* avatar, LLTexLayerSet* layerset, LLTexLayerSetBuffer* layerset_buffer, const LLUUID & id); |
541 | ~LLBakedUploadData() {} | 548 | ~LLBakedUploadData() {} |
542 | 549 | ||
543 | LLUUID mID; | 550 | LLUUID mID; |
544 | LLVOAvatar* mAvatar; // just backlink, don't LLPointer | 551 | LLVOAvatar* mAvatar; // just backlink, don't LLPointer |
552 | LLTexLayerSet* mLayerSet; | ||
545 | LLTexLayerSetBuffer* mLayerSetBuffer; | 553 | LLTexLayerSetBuffer* mLayerSetBuffer; |
546 | LLUUID mWearableAssets[WT_COUNT]; | 554 | LLUUID mWearableAssets[WT_COUNT]; |
555 | U64 mStartTime; // Used to measure time baked texture upload requires | ||
547 | }; | 556 | }; |
548 | 557 | ||
549 | extern LLTexStaticImageList gTexStaticImageList; | 558 | extern LLTexStaticImageList gTexStaticImageList; |