| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 | 6 |
| 7 #include "webkit/tools/test_shell/image_decoder_unittest.h" | 7 #include "webkit/tools/test_shell/image_decoder_unittest.h" |
| 8 | 8 |
| 9 #if !defined(OS_WIN) | 9 #if !defined(OS_WIN) |
| 10 #include <unistd.h> | 10 #include <unistd.h> |
| 11 #endif | 11 #endif |
| 12 | 12 |
| 13 #include "skia/ext/vector_canvas.h" | |
| 14 | |
| 15 #include "PNGImageDecoder.h" | 13 #include "PNGImageDecoder.h" |
| 16 | 14 |
| 17 #include "base/command_line.h" | 15 #include "base/command_line.h" |
| 18 #include "base/file_util.h" | 16 #include "base/file_util.h" |
| 19 #include "base/gfx/gdi_util.h" | 17 #include "base/gfx/gdi_util.h" |
| 20 #include "base/gfx/png_encoder.h" | 18 #include "base/gfx/png_encoder.h" |
| 21 #include "base/path_service.h" | 19 #include "base/path_service.h" |
| 22 #include "base/string_util.h" | 20 #include "base/string_util.h" |
| 23 | 21 #include "skia/ext/vector_canvas.h" |
| 24 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 25 | 23 #include "third_party/skia/include/effects/SkDashPathEffect.h" |
| 26 #include "SkDashPathEffect.h" | |
| 27 | 24 |
| 28 namespace skia { | 25 namespace skia { |
| 29 | 26 |
| 30 namespace { | 27 namespace { |
| 31 | 28 |
| 32 const wchar_t* const kGenerateSwitch = L"vector-canvas-generate"; | 29 const wchar_t* const kGenerateSwitch = L"vector-canvas-generate"; |
| 33 | 30 |
| 34 // Lightweight HDC management. | 31 // Lightweight HDC management. |
| 35 class Context { | 32 class Context { |
| 36 public: | 33 public: |
| (...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 947 { | 944 { |
| 948 vcanvas_->rotate(67); | 945 vcanvas_->rotate(67); |
| 949 pcanvas_->rotate(67); | 946 pcanvas_->rotate(67); |
| 950 vcanvas_->drawBitmap(bitmap, 20, -50, NULL); | 947 vcanvas_->drawBitmap(bitmap, 20, -50, NULL); |
| 951 pcanvas_->drawBitmap(bitmap, 20, -50, NULL); | 948 pcanvas_->drawBitmap(bitmap, 20, -50, NULL); |
| 952 EXPECT_EQ(0., ProcessImage(L"rotate")); | 949 EXPECT_EQ(0., ProcessImage(L"rotate")); |
| 953 } | 950 } |
| 954 } | 951 } |
| 955 | 952 |
| 956 } // namespace skia | 953 } // namespace skia |
| OLD | NEW |