| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #include "platform/DragImage.h" | 31 #include "platform/DragImage.h" |
| 32 | 32 |
| 33 #include "platform/fonts/FontDescription.h" | 33 #include "platform/fonts/FontDescription.h" |
| 34 #include "platform/fonts/FontTraits.h" | 34 #include "platform/fonts/FontTraits.h" |
| 35 #include "platform/geometry/IntSize.h" | 35 #include "platform/geometry/IntSize.h" |
| 36 #include "platform/graphics/BitmapImage.h" | 36 #include "platform/graphics/BitmapImage.h" |
| 37 #include "platform/graphics/Image.h" | 37 #include "platform/graphics/Image.h" |
| 38 #include "platform/weborigin/KURL.h" | 38 #include "platform/weborigin/KURL.h" |
| 39 #include "testing/gtest/include/gtest/gtest.h" | 39 #include "testing/gtest/include/gtest/gtest.h" |
| 40 #include "third_party/skia/include/core/SkCanvas.h" |
| 40 #include "third_party/skia/include/core/SkColor.h" | 41 #include "third_party/skia/include/core/SkColor.h" |
| 41 #include "third_party/skia/include/core/SkImage.h" | 42 #include "third_party/skia/include/core/SkImage.h" |
| 42 #include "third_party/skia/include/core/SkPixelRef.h" | 43 #include "third_party/skia/include/core/SkPixelRef.h" |
| 43 #include "third_party/skia/include/core/SkSurface.h" | 44 #include "third_party/skia/include/core/SkSurface.h" |
| 44 #include "wtf/OwnPtr.h" | 45 #include "wtf/OwnPtr.h" |
| 45 #include "wtf/PassOwnPtr.h" | 46 #include "wtf/PassOwnPtr.h" |
| 46 #include "wtf/PassRefPtr.h" | 47 #include "wtf/PassRefPtr.h" |
| 47 #include "wtf/RefPtr.h" | 48 #include "wtf/RefPtr.h" |
| 48 | 49 |
| 49 namespace blink { | 50 namespace blink { |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 { | 229 { |
| 229 SkAutoLockPixels lock1(dragBitmap); | 230 SkAutoLockPixels lock1(dragBitmap); |
| 230 SkAutoLockPixels lock2(expectedBitmap); | 231 SkAutoLockPixels lock2(expectedBitmap); |
| 231 for (int x = 0; x < dragBitmap.width(); ++x) | 232 for (int x = 0; x < dragBitmap.width(); ++x) |
| 232 for (int y = 0; y < dragBitmap.height(); ++y) | 233 for (int y = 0; y < dragBitmap.height(); ++y) |
| 233 EXPECT_EQ(expectedBitmap.getColor(x, y), dragBitmap.getColor(x,
y)); | 234 EXPECT_EQ(expectedBitmap.getColor(x, y), dragBitmap.getColor(x,
y)); |
| 234 } | 235 } |
| 235 } | 236 } |
| 236 | 237 |
| 237 } // namespace blink | 238 } // namespace blink |
| OLD | NEW |