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 #ifndef ImageBitmap_h | 5 #ifndef ImageBitmap_h |
6 #define ImageBitmap_h | 6 #define ImageBitmap_h |
7 | 7 |
| 8 #include <memory> |
8 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
10 #include "core/html/HTMLImageElement.h" | 11 #include "core/html/HTMLImageElement.h" |
11 #include "core/html/canvas/CanvasImageSource.h" | 12 #include "core/html/canvas/CanvasImageSource.h" |
12 #include "core/imagebitmap/ImageBitmapOptions.h" | 13 #include "core/imagebitmap/ImageBitmapOptions.h" |
13 #include "core/imagebitmap/ImageBitmapSource.h" | 14 #include "core/imagebitmap/ImageBitmapSource.h" |
14 #include "platform/geometry/IntRect.h" | 15 #include "platform/geometry/IntRect.h" |
15 #include "platform/graphics/Image.h" | 16 #include "platform/graphics/Image.h" |
16 #include "platform/graphics/ImageBuffer.h" | 17 #include "platform/graphics/ImageBuffer.h" |
17 #include "platform/graphics/StaticBitmapImage.h" | 18 #include "platform/graphics/StaticBitmapImage.h" |
18 #include "platform/heap/Handle.h" | 19 #include "platform/heap/Handle.h" |
| 20 #include "platform/wtf/PassRefPtr.h" |
19 #include "third_party/skia/include/core/SkRefCnt.h" | 21 #include "third_party/skia/include/core/SkRefCnt.h" |
20 #include "wtf/PassRefPtr.h" | |
21 #include <memory> | |
22 | 22 |
23 namespace blink { | 23 namespace blink { |
24 class HTMLCanvasElement; | 24 class HTMLCanvasElement; |
25 class HTMLVideoElement; | 25 class HTMLVideoElement; |
26 class ImageData; | 26 class ImageData; |
27 class ImageDecoder; | 27 class ImageDecoder; |
28 class OffscreenCanvas; | 28 class OffscreenCanvas; |
29 | 29 |
30 enum AlphaDisposition { | 30 enum AlphaDisposition { |
31 kPremultiplyAlpha, | 31 kPremultiplyAlpha, |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 bool is_image_bitmap_premultiplied, | 160 bool is_image_bitmap_premultiplied, |
161 bool is_image_bitmap_origin_clean); | 161 bool is_image_bitmap_origin_clean); |
162 | 162 |
163 RefPtr<StaticBitmapImage> image_; | 163 RefPtr<StaticBitmapImage> image_; |
164 bool is_neutered_ = false; | 164 bool is_neutered_ = false; |
165 }; | 165 }; |
166 | 166 |
167 } // namespace blink | 167 } // namespace blink |
168 | 168 |
169 #endif // ImageBitmap_h | 169 #endif // ImageBitmap_h |
OLD | NEW |