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/HTMLCanvasElement.h" | 8 #include "core/html/HTMLCanvasElement.h" |
8 #include "core/html/HTMLVideoElement.h" | 9 #include "core/html/HTMLVideoElement.h" |
9 #include "core/html/ImageData.h" | 10 #include "core/html/ImageData.h" |
10 #include "core/offscreencanvas/OffscreenCanvas.h" | 11 #include "core/offscreencanvas/OffscreenCanvas.h" |
11 #include "platform/graphics/skia/SkiaUtils.h" | 12 #include "platform/graphics/skia/SkiaUtils.h" |
12 #include "platform/image-decoders/ImageDecoder.h" | 13 #include "platform/image-decoders/ImageDecoder.h" |
| 14 #include "platform/wtf/CheckedNumeric.h" |
| 15 #include "platform/wtf/PtrUtil.h" |
| 16 #include "platform/wtf/RefPtr.h" |
13 #include "third_party/skia/include/core/SkCanvas.h" | 17 #include "third_party/skia/include/core/SkCanvas.h" |
14 #include "third_party/skia/include/core/SkImageInfo.h" | 18 #include "third_party/skia/include/core/SkImageInfo.h" |
15 #include "third_party/skia/include/core/SkSurface.h" | 19 #include "third_party/skia/include/core/SkSurface.h" |
16 #include "wtf/CheckedNumeric.h" | |
17 #include "wtf/PtrUtil.h" | |
18 #include "wtf/RefPtr.h" | |
19 #include <memory> | |
20 | 20 |
21 namespace blink { | 21 namespace blink { |
22 | 22 |
23 constexpr const char* kImageOrientationFlipY = "flipY"; | 23 constexpr const char* kImageOrientationFlipY = "flipY"; |
24 constexpr const char* kImageBitmapOptionNone = "none"; | 24 constexpr const char* kImageBitmapOptionNone = "none"; |
25 constexpr const char* kImageBitmapOptionDefault = "default"; | 25 constexpr const char* kImageBitmapOptionDefault = "default"; |
26 constexpr const char* kImageBitmapOptionPremultiply = "premultiply"; | 26 constexpr const char* kImageBitmapOptionPremultiply = "premultiply"; |
27 constexpr const char* kImageBitmapOptionResizeQualityHigh = "high"; | 27 constexpr const char* kImageBitmapOptionResizeQualityHigh = "high"; |
28 constexpr const char* kImageBitmapOptionResizeQualityMedium = "medium"; | 28 constexpr const char* kImageBitmapOptionResizeQualityMedium = "medium"; |
29 constexpr const char* kImageBitmapOptionResizeQualityPixelated = "pixelated"; | 29 constexpr const char* kImageBitmapOptionResizeQualityPixelated = "pixelated"; |
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1138 void ImageBitmap::AdjustDrawRects(FloatRect* src_rect, | 1138 void ImageBitmap::AdjustDrawRects(FloatRect* src_rect, |
1139 FloatRect* dst_rect) const {} | 1139 FloatRect* dst_rect) const {} |
1140 | 1140 |
1141 FloatSize ImageBitmap::ElementSize(const FloatSize&) const { | 1141 FloatSize ImageBitmap::ElementSize(const FloatSize&) const { |
1142 return FloatSize(width(), height()); | 1142 return FloatSize(width(), height()); |
1143 } | 1143 } |
1144 | 1144 |
1145 DEFINE_TRACE(ImageBitmap) {} | 1145 DEFINE_TRACE(ImageBitmap) {} |
1146 | 1146 |
1147 } // namespace blink | 1147 } // namespace blink |
OLD | NEW |