Changeset 67363 in webkit
- Timestamp:
- Sep 12, 2010 9:21:26 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/chromium/ChangeLog
r67362 r67363 1 2010-09-12 Kent Tamura <tkent@chromium.org> 2 3 Reviewed by Tony Chang. 4 5 [DRT/Chromium] Remove dependency to base/string16.h and gfx/codec/png_codec.h 6 https://bugs.webkit.org/show_bug.cgi?id=45517 7 8 * DEPS: Roll Chromium revision to r59033 to have webkit_support_gfx.h. 9 * WebKit.gyp: 10 1 11 2010-09-10 MORITA Hajime <morrita@google.com> 2 12 -
trunk/WebKit/chromium/DEPS
r66701 r67363 33 33 vars = { 34 34 'chromium_svn': 'http://src.chromium.org/svn/trunk/src', 35 'chromium_rev': '5 8277',35 'chromium_rev': '59033', 36 36 } 37 37 -
trunk/WebKit/chromium/WebKit.gyp
r67099 r67363 782 782 'webkit', 783 783 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf', 784 '<(chromium_src_dir)/ gfx/gfx.gyp:gfx',784 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support', 785 785 ], 786 786 'include_dirs': [ -
trunk/WebKitTools/ChangeLog
r67362 r67363 1 2010-09-12 Kent Tamura <tkent@chromium.org> 2 3 Reviewed by Tony Chang. 4 5 [DRT/Chromium] Remove dependency to base/string16.h and gfx/codec/png_codec.h 6 https://bugs.webkit.org/show_bug.cgi?id=45517 7 8 Use webkit_support_gfx.h for PNG encoding/decoding instead of png_codec.h 9 10 * DumpRenderTree/chromium/ImageDiff.cpp: 11 (Image::craeteFromStdin): 12 (Image::createFromFilename): 13 (diffImages): 14 * DumpRenderTree/chromium/TestShell.cpp: 15 (TestShell::dumpImage): 16 1 17 2010-09-10 MORITA Hajime <morrita@google.com> 2 18 -
trunk/WebKitTools/DumpRenderTree/chromium/ImageDiff.cpp
r65015 r67363 37 37 #include "config.h" 38 38 39 #include " gfx/codec/png_codec.h"39 #include "webkit/support/webkit_support_gfx.h" 40 40 #include <algorithm> 41 41 #include <stdio.h> … … 50 50 #endif 51 51 52 using namespace gfx;53 52 using namespace std; 54 53 … … 94 93 return false; 95 94 96 if (!PNGCodec::Decode(source.get(), byteLength, PNGCodec::FORMAT_RGBA, 97 &m_data, &m_width, &m_height)) { 95 if (!webkit_support::DecodePNG(source.get(), byteLength, &m_data, &m_width, &m_height)) { 98 96 clear(); 99 97 return false; … … 119 117 fclose(f); 120 118 121 if (!PNGCodec::Decode(&compressed[0], compressed.size(), 122 PNGCodec::FORMAT_RGBA, &m_data, &m_width, &m_height)) { 119 if (!webkit_support::DecodePNG(&compressed[0], compressed.size(), &m_data, &m_width, &m_height)) { 123 120 clear(); 124 121 return false; … … 354 351 355 352 vector<unsigned char> pngData; 356 PNGCodec::Encode(diffImage.data(), PNGCodec::FORMAT_RGBA, diffImage.width(),357 diffImage.height(), diffImage.width() * 4, false, &pngData);353 webkit_support::EncodeRGBAPNG(diffImage.data(), diffImage.width(), diffImage.height(), 354 diffImage.width() * 4, &pngData); 358 355 if (!writeFile(outFile, &pngData.front(), pngData.size())) 359 356 return statusError; -
trunk/WebKitTools/DumpRenderTree/chromium/TestShell.cpp
r66914 r67363 36 36 #include "LayoutTestController.h" 37 37 #include "WebViewHost.h" 38 #include "base/string16.h"39 #include "gfx/codec/png_codec.h" // FIXME: Remove dependecy. WebCore/platform/image-encoder is better?40 38 #include "public/WebDataSource.h" 41 39 #include "public/WebDocument.h" … … 56 54 #include "skia/ext/platform_canvas.h" 57 55 #include "webkit/support/webkit_support.h" 56 #include "webkit/support/webkit_support_gfx.h" 58 57 #include <algorithm> 59 58 #include <cctype> … … 620 619 if (md5hash.compare(m_params.pixelHash)) { 621 620 std::vector<unsigned char> png; 622 gfx::PNGCodec::ColorFormat colorFormat = gfx::PNGCodec::FORMAT_BGRA; 623 gfx::PNGCodec::Encode( 621 webkit_support::EncodeBGRAPNG( 624 622 reinterpret_cast<const unsigned char*>(sourceBitmap.getPixels()), 625 colorFormat,sourceBitmap.width(), sourceBitmap.height(),623 sourceBitmap.width(), sourceBitmap.height(), 626 624 static_cast<int>(sourceBitmap.rowBytes()), discardTransparency, &png); 627 625
Note: See TracChangeset
for help on using the changeset viewer.