Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Issue 159168: This fixes a number of things that are warnings in the Mac compiler.... (Closed)

Created:
11 years, 5 months ago by Greg Spencer
Modified:
9 years, 7 months ago
Reviewers:
gman1, ruudvangaal
CC:
o3d-review_googlegroups.com
Visibility:
Public.

Description

This fixes a number of things that are warnings in the Mac compiler. It fixes at least two real bugs, one in the tar generator, and one in stream_bank.h. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=21227

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+617 lines, -583 lines) Patch
M base/cross/bits.h View 1 chunk +1 line, -1 line 0 comments Download
M core/cross/bitmap.h View 1 chunk +439 lines, -439 lines 0 comments Download
M core/cross/bitmap.cc View 1 chunk +1 line, -1 line 0 comments Download
M core/cross/bitmap_dds.cc View 3 chunks +4 lines, -4 lines 3 comments Download
M core/cross/bitmap_png.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M core/cross/bounding_box.h View 1 chunk +1 line, -1 line 0 comments Download
M core/cross/buffer.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M core/cross/canvas_paint.cc View 2 chunks +7 lines, -7 lines 0 comments Download
M core/cross/client.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M core/cross/display_mode.h View 1 chunk +3 lines, -3 lines 0 comments Download
M core/cross/gl/buffer_gl.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M core/cross/gl/param_cache_gl.cc View 2 chunks +2 lines, -1 line 0 comments Download
M core/cross/gl/primitive_gl.cc View 1 chunk +1 line, -1 line 0 comments Download
M core/cross/gl/renderer_gl.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M core/cross/gl/sampler_gl.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M core/cross/gl/texture_gl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M core/cross/gl/texture_gl.cc View 6 chunks +13 lines, -10 lines 0 comments Download
M core/cross/gl/utils_gl.cc View 1 chunk +1 line, -1 line 0 comments Download
M core/cross/message_queue.cc View 1 chunk +1 line, -1 line 0 comments Download
M core/cross/pack.cc View 4 chunks +8 lines, -7 lines 0 comments Download
M core/cross/renderer.cc View 5 chunks +9 lines, -9 lines 0 comments Download
M core/cross/shape.cc View 1 chunk +1 line, -1 line 0 comments Download
M core/cross/skin.cc View 2 chunks +8 lines, -8 lines 0 comments Download
M core/cross/stream_bank.h View 1 chunk +1 line, -1 line 0 comments Download
M core/cross/texture.cc View 4 chunks +11 lines, -7 lines 0 comments Download
M core/cross/transform.cc View 1 chunk +1 line, -1 line 0 comments Download
M import/cross/collada.h View 1 chunk +1 line, -1 line 0 comments Download
M import/cross/collada.cc View 7 chunks +14 lines, -3 lines 0 comments Download
M import/cross/collada_conditioner.cc View 2 chunks +19 lines, -19 lines 0 comments Download
M import/cross/gz_compressor.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M import/cross/memory_stream.h View 2 chunks +6 lines, -6 lines 0 comments Download
M import/cross/raw_data.cc View 1 chunk +1 line, -1 line 0 comments Download
M import/cross/tar_generator.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M import/cross/tar_processor.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M import/cross/targz_generator_test.cc View 2 chunks +14 lines, -8 lines 0 comments Download
M import/cross/zip_archive.cc View 1 chunk +1 line, -1 line 0 comments Download
M import/mac/collada_conditioner_mac.mm View 1 chunk +1 line, -1 line 0 comments Download
M serializer/cross/serializer.cc View 7 chunks +12 lines, -7 lines 0 comments Download
M serializer/cross/serializer_binary.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M statsreport/formatter.h View 2 chunks +3 lines, -3 lines 0 comments Download
M statsreport/formatter_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M statsreport/uploader_aggregation-mac.mm View 1 chunk +1 line, -1 line 0 comments Download
M statsreport/uploader_aggregation-posix.cc View 1 chunk +2 lines, -1 line 0 comments Download
M statsreport/uploader_aggregation-win32.cc View 1 chunk +1 line, -1 line 0 comments Download
M tests/archive_files/test2.tar.gz View Binary file 0 comments Download

Messages

Total messages: 4 (0 generated)
Greg Spencer
11 years, 5 months ago (2009-07-21 22:39:59 UTC) #1
gman
LGTM What changed in test2.tar.gz?
11 years, 5 months ago (2009-07-21 23:15:19 UTC) #2
ruudvangaal
bitmap_dds.c contains a DXT1 chunk flip bug in line 69. Line is: block[6] = block[5]; ...
11 years, 3 months ago (2009-09-01 12:09:49 UTC) #3
ruudvangaal
11 years, 3 months ago (2009-09-01 13:28:10 UTC) #4
bitmap_dds.cc contains bugs in the DXT5 full flip. Line 150 & 153 should use
>>16 instead of just >>8.

http://codereview.chromium.org/159168/diff/1/24
File core/cross/bitmap_dds.cc (left):

http://codereview.chromium.org/159168/diff/1/24#oldcode150
Line 150: block[4] = (line_3_2 & 0xff0000) >> 8;
Strips all bits to 0; use >>16 instead.

http://codereview.chromium.org/159168/diff/1/24#oldcode153
Line 153: block[7] = (line_1_0 & 0xff0000) >> 8;
Strips all bits to 0; use >>16 instead.

Powered by Google App Engine
This is Rietveld 408576698