| 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 <memory> |
| 7 #include "core/html/Float32ImageData.h" | 8 #include "core/html/Float32ImageData.h" |
| 8 #include "core/html/HTMLCanvasElement.h" | 9 #include "core/html/HTMLCanvasElement.h" |
| 9 #include "core/html/HTMLVideoElement.h" | 10 #include "core/html/HTMLVideoElement.h" |
| 10 #include "core/html/ImageData.h" | 11 #include "core/html/ImageData.h" |
| 11 #include "core/offscreencanvas/OffscreenCanvas.h" | 12 #include "core/offscreencanvas/OffscreenCanvas.h" |
| 12 #include "platform/graphics/skia/SkiaUtils.h" | 13 #include "platform/graphics/skia/SkiaUtils.h" |
| 13 #include "platform/image-decoders/ImageDecoder.h" | 14 #include "platform/image-decoders/ImageDecoder.h" |
| 14 #include "third_party/skia/include/core/SkCanvas.h" | 15 #include "third_party/skia/include/core/SkCanvas.h" |
| 15 #include "third_party/skia/include/core/SkImageInfo.h" | 16 #include "third_party/skia/include/core/SkImageInfo.h" |
| 16 #include "third_party/skia/include/core/SkSurface.h" | 17 #include "third_party/skia/include/core/SkSurface.h" |
| 17 #include "wtf/CheckedNumeric.h" | 18 #include "wtf/CheckedNumeric.h" |
| 18 #include "wtf/PtrUtil.h" | 19 #include "wtf/PtrUtil.h" |
| 19 #include "wtf/RefPtr.h" | 20 #include "wtf/RefPtr.h" |
| 20 #include <memory> | |
| 21 | 21 |
| 22 namespace blink { | 22 namespace blink { |
| 23 | 23 |
| 24 constexpr const char* kImageOrientationFlipY = "flipY"; | 24 constexpr const char* kImageOrientationFlipY = "flipY"; |
| 25 constexpr const char* kImageBitmapOptionNone = "none"; | 25 constexpr const char* kImageBitmapOptionNone = "none"; |
| 26 constexpr const char* kImageBitmapOptionDefault = "default"; | 26 constexpr const char* kImageBitmapOptionDefault = "default"; |
| 27 constexpr const char* kImageBitmapOptionPremultiply = "premultiply"; | 27 constexpr const char* kImageBitmapOptionPremultiply = "premultiply"; |
| 28 constexpr const char* kImageBitmapOptionResizeQualityHigh = "high"; | 28 constexpr const char* kImageBitmapOptionResizeQualityHigh = "high"; |
| 29 constexpr const char* kImageBitmapOptionResizeQualityMedium = "medium"; | 29 constexpr const char* kImageBitmapOptionResizeQualityMedium = "medium"; |
| 30 constexpr const char* kImageBitmapOptionResizeQualityPixelated = "pixelated"; | 30 constexpr const char* kImageBitmapOptionResizeQualityPixelated = "pixelated"; |
| (...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1152 void ImageBitmap::adjustDrawRects(FloatRect* srcRect, | 1152 void ImageBitmap::adjustDrawRects(FloatRect* srcRect, |
| 1153 FloatRect* dstRect) const {} | 1153 FloatRect* dstRect) const {} |
| 1154 | 1154 |
| 1155 FloatSize ImageBitmap::elementSize(const FloatSize&) const { | 1155 FloatSize ImageBitmap::elementSize(const FloatSize&) const { |
| 1156 return FloatSize(width(), height()); | 1156 return FloatSize(width(), height()); |
| 1157 } | 1157 } |
| 1158 | 1158 |
| 1159 DEFINE_TRACE(ImageBitmap) {} | 1159 DEFINE_TRACE(ImageBitmap) {} |
| 1160 | 1160 |
| 1161 } // namespace blink | 1161 } // namespace blink |
| OLD | NEW |