| 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/image-decoders/ImageDecoder.h" | 10 #include "platform/image-decoders/ImageDecoder.h" |
| 11 #include "third_party/skia/include/core/SkCanvas.h" |
| 11 #include "third_party/skia/include/core/SkSurface.h" | 12 #include "third_party/skia/include/core/SkSurface.h" |
| 12 #include "wtf/RefPtr.h" | 13 #include "wtf/RefPtr.h" |
| 13 | 14 |
| 14 namespace blink { | 15 namespace blink { |
| 15 | 16 |
| 16 static const char* imageOrientationFlipY = "flipY"; | 17 static const char* imageOrientationFlipY = "flipY"; |
| 17 static const char* imageBitmapOptionNone = "none"; | 18 static const char* imageBitmapOptionNone = "none"; |
| 18 | 19 |
| 19 // The following two functions are helpers used in cropImage | 20 // The following two functions are helpers used in cropImage |
| 20 static inline IntRect normalizeRect(const IntRect& rect) | 21 static inline IntRect normalizeRect(const IntRect& rect) |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 FloatSize ImageBitmap::elementSize(const FloatSize&) const | 472 FloatSize ImageBitmap::elementSize(const FloatSize&) const |
| 472 { | 473 { |
| 473 return FloatSize(width(), height()); | 474 return FloatSize(width(), height()); |
| 474 } | 475 } |
| 475 | 476 |
| 476 DEFINE_TRACE(ImageBitmap) | 477 DEFINE_TRACE(ImageBitmap) |
| 477 { | 478 { |
| 478 } | 479 } |
| 479 | 480 |
| 480 } // namespace blink | 481 } // namespace blink |
| OLD | NEW |