OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 Google Inc. All rights reserved. |
4 * Copyright (C) 2010 Mozilla Corporation. All rights reserved. | 4 * Copyright (C) 2010 Mozilla Corporation. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 12 matching lines...) Expand all Loading... |
23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 */ | 26 */ |
27 | 27 |
28 #include "config.h" | 28 #include "config.h" |
29 | 29 |
30 #include "core/platform/graphics/GraphicsContext3D.h" | 30 #include "core/platform/graphics/GraphicsContext3D.h" |
31 | 31 |
32 #include "core/html/ImageData.h" | 32 #include "core/html/ImageData.h" |
33 #include "core/html/canvas/CheckedInt.h" | |
34 #include "core/platform/graphics/Extensions3D.h" | 33 #include "core/platform/graphics/Extensions3D.h" |
35 #include "core/platform/graphics/GraphicsContext.h" | 34 #include "core/platform/graphics/GraphicsContext.h" |
36 #include "core/platform/graphics/Image.h" | 35 #include "core/platform/graphics/Image.h" |
37 #include "core/platform/graphics/ImageBuffer.h" | 36 #include "core/platform/graphics/ImageBuffer.h" |
38 #include "core/platform/graphics/ImageObserver.h" | 37 #include "core/platform/graphics/ImageObserver.h" |
39 #include "core/platform/graphics/gpu/DrawingBuffer.h" | 38 #include "core/platform/graphics/gpu/DrawingBuffer.h" |
40 #include "core/platform/image-decoders/ImageDecoder.h" | 39 #include "core/platform/image-decoders/ImageDecoder.h" |
| 40 #include "platform/CheckedInt.h" |
41 #include "third_party/skia/include/gpu/GrContext.h" | 41 #include "third_party/skia/include/gpu/GrContext.h" |
42 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" | 42 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" |
43 #include "wtf/CPU.h" | 43 #include "wtf/CPU.h" |
44 #include "wtf/OwnPtr.h" | 44 #include "wtf/OwnPtr.h" |
45 #include "wtf/PassOwnPtr.h" | 45 #include "wtf/PassOwnPtr.h" |
46 #include "wtf/text/CString.h" | 46 #include "wtf/text/CString.h" |
47 #include "wtf/text/StringHash.h" | 47 #include "wtf/text/StringHash.h" |
48 #include "wtf/text/WTFString.h" | 48 #include "wtf/text/WTFString.h" |
49 | 49 |
50 #include "public/platform/Platform.h" | 50 #include "public/platform/Platform.h" |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
937 for (unsigned i = 0; i < count; i++) { | 937 for (unsigned i = 0; i < count; i++) { |
938 uint8* rowA = framebuffer + i * rowBytes; | 938 uint8* rowA = framebuffer + i * rowBytes; |
939 uint8* rowB = framebuffer + (height - i - 1) * rowBytes; | 939 uint8* rowB = framebuffer + (height - i - 1) * rowBytes; |
940 memcpy(scanline, rowB, rowBytes); | 940 memcpy(scanline, rowB, rowBytes); |
941 memcpy(rowB, rowA, rowBytes); | 941 memcpy(rowB, rowA, rowBytes); |
942 memcpy(rowA, scanline, rowBytes); | 942 memcpy(rowA, scanline, rowBytes); |
943 } | 943 } |
944 } | 944 } |
945 | 945 |
946 } // namespace WebCore | 946 } // namespace WebCore |
OLD | NEW |