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) 2008-2009 Torch Mobile, Inc. | 3 * Copyright (C) 2008-2009 Torch Mobile, Inc. |
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
5 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) | 5 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 RGBA32Buffer& operator=(const RGBA32Buffer& other); | 77 RGBA32Buffer& operator=(const RGBA32Buffer& other); |
78 | 78 |
79 // Deletes the pixel data entirely; used by ImageDecoder to save memory | 79 // Deletes the pixel data entirely; used by ImageDecoder to save memory |
80 // when we no longer need to display a frame and only need its metadata. | 80 // when we no longer need to display a frame and only need its metadata. |
81 void clear(); | 81 void clear(); |
82 | 82 |
83 // Zeroes the pixel data in the buffer, setting it to fully-transparent. | 83 // Zeroes the pixel data in the buffer, setting it to fully-transparent. |
84 void zeroFill(); | 84 void zeroFill(); |
85 | 85 |
86 // Creates a new copy of the image data in |other|, so the two images | 86 // Creates a new copy of the image data in |other|, so the two images |
87 // can be modified independently. | 87 // can be modified independently. Returns whether the copy succeeded. |
88 void copyBitmapData(const RGBA32Buffer& other); | 88 bool copyBitmapData(const RGBA32Buffer& other); |
89 | 89 |
90 // Copies the pixel data at [(startX, startY), (endX, startY)) to the | 90 // Copies the pixel data at [(startX, startY), (endX, startY)) to the |
91 // same X-coordinates on each subsequent row up to but not including | 91 // same X-coordinates on each subsequent row up to but not including |
92 // endY. | 92 // endY. |
93 void copyRowNTimes(int startX, int endX, int startY, int endY) | 93 void copyRowNTimes(int startX, int endX, int startY, int endY) |
94 { | 94 { |
95 ASSERT(startX < width()); | 95 ASSERT(startX < width()); |
96 ASSERT(endX <= width()); | 96 ASSERT(endX <= width()); |
97 ASSERT(startY < height()); | 97 ASSERT(startY < height()); |
98 ASSERT(endY <= height()); | 98 ASSERT(endY <= height()); |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 IntSize m_size; | 355 IntSize m_size; |
356 bool m_sizeAvailable; | 356 bool m_sizeAvailable; |
357 int m_maxNumPixels; | 357 int m_maxNumPixels; |
358 bool m_isAllDataReceived; | 358 bool m_isAllDataReceived; |
359 bool m_failed; | 359 bool m_failed; |
360 }; | 360 }; |
361 | 361 |
362 } // namespace WebCore | 362 } // namespace WebCore |
363 | 363 |
364 #endif | 364 #endif |
OLD | NEW |