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

Side by Side Diff: Source/platform/image-decoders/ImageFrame.h

Issue 985583002: Don't cache any SkBitmaps in DeferredImageDecoder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: done now Created 5 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/platform/image-decoders/ImageDecoder.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 3 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 bool requiredPreviousFrameIndexValid() const { return m_requiredPreviousFram eIndexValid; } 137 bool requiredPreviousFrameIndexValid() const { return m_requiredPreviousFram eIndexValid; }
138 #endif 138 #endif
139 void setHasAlpha(bool alpha); 139 void setHasAlpha(bool alpha);
140 void setOriginalFrameRect(const IntRect& r) { m_originalFrameRect = r; } 140 void setOriginalFrameRect(const IntRect& r) { m_originalFrameRect = r; }
141 void setStatus(Status); 141 void setStatus(Status);
142 void setDuration(unsigned duration) { m_duration = duration; } 142 void setDuration(unsigned duration) { m_duration = duration; }
143 void setDisposalMethod(DisposalMethod disposalMethod) { m_disposalMethod = d isposalMethod; } 143 void setDisposalMethod(DisposalMethod disposalMethod) { m_disposalMethod = d isposalMethod; }
144 void setAlphaBlendSource(AlphaBlendSource alphaBlendSource) { m_alphaBlendSo urce = alphaBlendSource; } 144 void setAlphaBlendSource(AlphaBlendSource alphaBlendSource) { m_alphaBlendSo urce = alphaBlendSource; }
145 void setPremultiplyAlpha(bool premultiplyAlpha) { m_premultiplyAlpha = premu ltiplyAlpha; } 145 void setPremultiplyAlpha(bool premultiplyAlpha) { m_premultiplyAlpha = premu ltiplyAlpha; }
146 void setMemoryAllocator(SkBitmap::Allocator* allocator) { m_allocator = allo cator; } 146 void setMemoryAllocator(SkBitmap::Allocator* allocator) { m_allocator = allo cator; }
147 void setSkBitmap(const SkBitmap& bitmap) { m_bitmap = bitmap; }
148 // The pixelsChanged flag needs to be set when the raw pixel data was direct ly modified 147 // The pixelsChanged flag needs to be set when the raw pixel data was direct ly modified
149 // (e.g. through a pointer or setRGBA). The flag is usually set after a batc h of changes was made. 148 // (e.g. through a pointer or setRGBA). The flag is usually set after a batc h of changes was made.
150 void setPixelsChanged(bool pixelsChanged) { m_pixelsChanged = pixelsChanged; } 149 void setPixelsChanged(bool pixelsChanged) { m_pixelsChanged = pixelsChanged; }
151 150
152 void setRequiredPreviousFrameIndex(size_t previousFrameIndex) 151 void setRequiredPreviousFrameIndex(size_t previousFrameIndex)
153 { 152 {
154 m_requiredPreviousFrameIndex = previousFrameIndex; 153 m_requiredPreviousFrameIndex = previousFrameIndex;
155 #if ENABLE(ASSERT) 154 #if ENABLE(ASSERT)
156 m_requiredPreviousFrameIndexValid = true; 155 m_requiredPreviousFrameIndexValid = true;
157 #endif 156 #endif
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 // be read for image formats that do not have multiple frames. 232 // be read for image formats that do not have multiple frames.
234 size_t m_requiredPreviousFrameIndex; 233 size_t m_requiredPreviousFrameIndex;
235 #if ENABLE(ASSERT) 234 #if ENABLE(ASSERT)
236 bool m_requiredPreviousFrameIndexValid; 235 bool m_requiredPreviousFrameIndexValid;
237 #endif 236 #endif
238 }; 237 };
239 238
240 } // namespace blink 239 } // namespace blink
241 240
242 #endif 241 #endif
OLDNEW
« no previous file with comments | « Source/platform/image-decoders/ImageDecoder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698