| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "core/frame/ImageBitmap.h" | 5 #include "core/frame/ImageBitmap.h" |
| 6 | 6 |
| 7 #include "core/html/HTMLCanvasElement.h" | 7 #include "core/html/HTMLCanvasElement.h" |
| 8 #include "core/html/HTMLVideoElement.h" | 8 #include "core/html/HTMLVideoElement.h" |
| 9 #include "core/html/ImageData.h" | 9 #include "core/html/ImageData.h" |
| 10 #include "platform/graphics/skia/SkiaUtils.h" | 10 #include "platform/graphics/skia/SkiaUtils.h" |
| 11 #include "platform/image-decoders/ImageDecoder.h" | 11 #include "platform/image-decoders/ImageDecoder.h" |
| 12 #include "third_party/skia/include/core/SkCanvas.h" |
| 12 #include "third_party/skia/include/core/SkSurface.h" | 13 #include "third_party/skia/include/core/SkSurface.h" |
| 13 #include "wtf/RefPtr.h" | 14 #include "wtf/RefPtr.h" |
| 14 | 15 |
| 15 namespace blink { | 16 namespace blink { |
| 16 | 17 |
| 17 static const char* imageOrientationFlipY = "flipY"; | 18 static const char* imageOrientationFlipY = "flipY"; |
| 18 static const char* imageBitmapOptionNone = "none"; | 19 static const char* imageBitmapOptionNone = "none"; |
| 19 | 20 |
| 20 // The following two functions are helpers used in cropImage | 21 // The following two functions are helpers used in cropImage |
| 21 static inline IntRect normalizeRect(const IntRect& rect) | 22 static inline IntRect normalizeRect(const IntRect& rect) |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 FloatSize ImageBitmap::elementSize(const FloatSize&) const | 479 FloatSize ImageBitmap::elementSize(const FloatSize&) const |
| 479 { | 480 { |
| 480 return FloatSize(width(), height()); | 481 return FloatSize(width(), height()); |
| 481 } | 482 } |
| 482 | 483 |
| 483 DEFINE_TRACE(ImageBitmap) | 484 DEFINE_TRACE(ImageBitmap) |
| 484 { | 485 { |
| 485 } | 486 } |
| 486 | 487 |
| 487 } // namespace blink | 488 } // namespace blink |
| OLD | NEW |