equal
deleted
inserted
replaced
|
1 # HG changeset patch |
|
2 # User Steve Singer <steve@ssinger.info> |
|
3 # Parent 23c23b472a4f73cef13cbd0c9a160402e840b456 |
|
4 Bug 929439 - Include string.h for memcpy. r=bgirard |
|
5 |
|
6 diff --git a/gfx/layers/BufferUnrotate.cpp b/gfx/layers/BufferUnrotate.cpp |
|
7 --- a/gfx/layers/BufferUnrotate.cpp |
|
8 +++ b/gfx/layers/BufferUnrotate.cpp |
|
9 @@ -3,16 +3,17 @@ |
|
10 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
11 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
12 |
|
13 #include <algorithm> // min & max |
|
14 #include <cstdlib> |
|
15 #include <stdint.h> |
|
16 #include <stdio.h> |
|
17 #include <stdlib.h> |
|
18 +#include <string.h> |
|
19 |
|
20 void BufferUnrotate(uint8_t* aBuffer, int aByteWidth, int aHeight, |
|
21 int aByteStride, int aXBoundary, int aYBoundary) |
|
22 { |
|
23 if (aXBoundary != 0) { |
|
24 uint8_t* line = new uint8_t[aByteWidth]; |
|
25 uint32_t smallStart = 0; |
|
26 uint32_t smallLen = aXBoundary; |