| OLD | NEW |
| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 ASSERT(endY <= height()); | 114 ASSERT(endY <= height()); |
| 115 const int rowBytes = (endX - startX) * sizeof(PixelData); | 115 const int rowBytes = (endX - startX) * sizeof(PixelData); |
| 116 const PixelData* const startAddr = getAddr(startX, startY); | 116 const PixelData* const startAddr = getAddr(startX, startY); |
| 117 for (int destY = startY + 1; destY < endY; ++destY) | 117 for (int destY = startY + 1; destY < endY; ++destY) |
| 118 memcpy(getAddr(startX, destY), startAddr, rowBytes); | 118 memcpy(getAddr(startX, destY), startAddr, rowBytes); |
| 119 } | 119 } |
| 120 | 120 |
| 121 // Allocates space for the pixel data. Must be called before any pixels | 121 // Allocates space for the pixel data. Must be called before any pixels |
| 122 // are written. Must only be called once. Returns whether allocation | 122 // are written. Must only be called once. Returns whether allocation |
| 123 // succeeded. | 123 // succeeded. |
| 124 bool setSizeAndColorProfile(int newWidth, | 124 bool setSizeAndColorSpace(int newWidth, int newHeight, sk_sp<SkColorSpace>); |
| 125 int newHeight, | |
| 126 const ICCProfile& newIccProfile); | |
| 127 | 125 |
| 128 bool hasAlpha() const; | 126 bool hasAlpha() const; |
| 129 const IntRect& originalFrameRect() const { return m_originalFrameRect; } | 127 const IntRect& originalFrameRect() const { return m_originalFrameRect; } |
| 130 Status getStatus() const { return m_status; } | 128 Status getStatus() const { return m_status; } |
| 131 unsigned duration() const { return m_duration; } | 129 unsigned duration() const { return m_duration; } |
| 132 DisposalMethod getDisposalMethod() const { return m_disposalMethod; } | 130 DisposalMethod getDisposalMethod() const { return m_disposalMethod; } |
| 133 AlphaBlendSource getAlphaBlendSource() const { return m_alphaBlendSource; } | 131 AlphaBlendSource getAlphaBlendSource() const { return m_alphaBlendSource; } |
| 134 bool premultiplyAlpha() const { return m_premultiplyAlpha; } | 132 bool premultiplyAlpha() const { return m_premultiplyAlpha; } |
| 135 SkBitmap::Allocator* allocator() const { return m_allocator; } | 133 SkBitmap::Allocator* allocator() const { return m_allocator; } |
| 136 | 134 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 // The frame that must be decoded before this frame can be decoded. | 248 // The frame that must be decoded before this frame can be decoded. |
| 251 // WTF::kNotFound if this frame doesn't require any previous frame. | 249 // WTF::kNotFound if this frame doesn't require any previous frame. |
| 252 // This is used by ImageDecoder::clearCacheExceptFrame(), and will never | 250 // This is used by ImageDecoder::clearCacheExceptFrame(), and will never |
| 253 // be read for image formats that do not have multiple frames. | 251 // be read for image formats that do not have multiple frames. |
| 254 size_t m_requiredPreviousFrameIndex; | 252 size_t m_requiredPreviousFrameIndex; |
| 255 }; | 253 }; |
| 256 | 254 |
| 257 } // namespace blink | 255 } // namespace blink |
| 258 | 256 |
| 259 #endif | 257 #endif |
| OLD | NEW |