diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2016-02-14 13:48:05 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-02-20 14:45:09 +0100 |
commit | e434995a73a83a6604f231d9055b06a261d9f098 (patch) | |
tree | 7bcf2006f27e70d0bda92a2cc83b0d56ed3de336 /recipes-qt/qt5/qtwebengine/0002-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch | |
parent | e91dea65659b0975146ad4f23d46e561ba8d9a08 (diff) | |
download | meta-qt5-e434995a73a83a6604f231d9055b06a261d9f098.tar.gz |
qt5: upgrade to latest revisions in 5.6 branch (5.6 RC)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtwebengine/0002-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch')
-rw-r--r-- | recipes-qt/qt5/qtwebengine/0002-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtwebengine/0002-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch b/recipes-qt/qt5/qtwebengine/0002-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch new file mode 100644 index 00000000..1227d0a0 --- /dev/null +++ b/recipes-qt/qt5/qtwebengine/0002-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch | |||
@@ -0,0 +1,66 @@ | |||
1 | From a015bddaf2005cac376be7dda4603637afc5844c Mon Sep 17 00:00:00 2001 | ||
2 | From: Cleiton Bueno <cleitonrbueno@gmail.com> | ||
3 | Date: Thu, 24 Dec 2015 12:46:58 -0200 | ||
4 | Subject: [PATCH 2/2] chromium: Change false to FALSE and 1 to TRUE, FIX | ||
5 | qtwebengine compile | ||
6 | |||
7 | Signed-off-by: Cleiton Bueno <cleitonrbueno@gmail.com> | ||
8 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
9 | --- | ||
10 | src/3rdparty/chromium/ui/gfx/codec/jpeg_codec.cc | 12 ++++++------ | ||
11 | 1 file changed, 6 insertions(+), 6 deletions(-) | ||
12 | |||
13 | diff --git a/src/3rdparty/chromium/ui/gfx/codec/jpeg_codec.cc b/src/3rdparty/chromium/ui/gfx/codec/jpeg_codec.cc | ||
14 | index 8a08fe0..32b2a05 100644 | ||
15 | --- a/src/3rdparty/chromium/ui/gfx/codec/jpeg_codec.cc | ||
16 | +++ b/src/3rdparty/chromium/ui/gfx/codec/jpeg_codec.cc | ||
17 | @@ -120,7 +120,7 @@ boolean EmptyOutputBuffer(jpeg_compress_struct* cinfo) { | ||
18 | // tell libjpeg where to write the next data | ||
19 | cinfo->dest->next_output_byte = &(*state->out)[state->image_buffer_used]; | ||
20 | cinfo->dest->free_in_buffer = state->out->size() - state->image_buffer_used; | ||
21 | - return 1; | ||
22 | + return TRUE; | ||
23 | } | ||
24 | |||
25 | // Cleans up the JpegEncoderState to prepare for returning in the final form. | ||
26 | @@ -261,7 +261,7 @@ bool JPEGCodec::Encode(const unsigned char* input, ColorFormat format, | ||
27 | cinfo.data_precision = 8; | ||
28 | |||
29 | jpeg_set_defaults(&cinfo); | ||
30 | - jpeg_set_quality(&cinfo, quality, 1); // quality here is 0-100 | ||
31 | + jpeg_set_quality(&cinfo, quality, TRUE); // quality here is 0-100 | ||
32 | |||
33 | // set up the destination manager | ||
34 | jpeg_destination_mgr destmgr; | ||
35 | @@ -273,7 +273,7 @@ bool JPEGCodec::Encode(const unsigned char* input, ColorFormat format, | ||
36 | JpegEncoderState state(output); | ||
37 | cinfo.client_data = &state; | ||
38 | |||
39 | - jpeg_start_compress(&cinfo, 1); | ||
40 | + jpeg_start_compress(&cinfo, TRUE); | ||
41 | |||
42 | // feed it the rows, doing necessary conversions for the color format | ||
43 | #ifdef JCS_EXTENSIONS | ||
44 | @@ -359,7 +359,7 @@ void InitSource(j_decompress_ptr cinfo) { | ||
45 | // set to a positive value if TRUE is returned. A FALSE return should only | ||
46 | // be used when I/O suspension is desired." | ||
47 | boolean FillInputBuffer(j_decompress_ptr cinfo) { | ||
48 | - return false; | ||
49 | + return FALSE; | ||
50 | } | ||
51 | |||
52 | // Skip data in the buffer. Since we have all the data at once, this operation | ||
53 | @@ -487,8 +487,8 @@ bool JPEGCodec::Decode(const unsigned char* input, size_t input_size, | ||
54 | cinfo.client_data = &state; | ||
55 | |||
56 | // fill the file metadata into our buffer | ||
57 | - if (jpeg_read_header(&cinfo, true) != JPEG_HEADER_OK) | ||
58 | - return false; | ||
59 | + if (jpeg_read_header(&cinfo, TRUE) != JPEG_HEADER_OK) | ||
60 | + return FALSE; | ||
61 | |||
62 | // we want to always get RGB data out | ||
63 | switch (cinfo.jpeg_color_space) { | ||
64 | -- | ||
65 | 2.7.0 | ||
66 | |||