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 "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
10 #include "core/html/HTMLImageElement.h" | 10 #include "core/html/HTMLImageElement.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 private: | 64 private: |
65 ImageBitmap(HTMLImageElement*, const IntRect&, Document*, const ImageBitmapO
ptions&); | 65 ImageBitmap(HTMLImageElement*, const IntRect&, Document*, const ImageBitmapO
ptions&); |
66 ImageBitmap(HTMLVideoElement*, const IntRect&, Document*, const ImageBitmapO
ptions&); | 66 ImageBitmap(HTMLVideoElement*, const IntRect&, Document*, const ImageBitmapO
ptions&); |
67 ImageBitmap(HTMLCanvasElement*, const IntRect&, const ImageBitmapOptions&); | 67 ImageBitmap(HTMLCanvasElement*, const IntRect&, const ImageBitmapOptions&); |
68 ImageBitmap(ImageData*, const IntRect&, const ImageBitmapOptions&); | 68 ImageBitmap(ImageData*, const IntRect&, const ImageBitmapOptions&); |
69 ImageBitmap(ImageBitmap*, const IntRect&, const ImageBitmapOptions&); | 69 ImageBitmap(ImageBitmap*, const IntRect&, const ImageBitmapOptions&); |
70 ImageBitmap(PassRefPtr<StaticBitmapImage>); | 70 ImageBitmap(PassRefPtr<StaticBitmapImage>); |
71 ImageBitmap(PassRefPtr<StaticBitmapImage>, const IntRect&, const ImageBitmap
Options&); | 71 ImageBitmap(PassRefPtr<StaticBitmapImage>, const IntRect&, const ImageBitmap
Options&); |
72 | 72 |
| 73 PassOwnPtr<uint8_t[]> copyFlippedSourceData(const unsigned char*, int, int); |
| 74 |
73 // ImageLoaderClient | 75 // ImageLoaderClient |
74 void notifyImageSourceChanged() override; | 76 void notifyImageSourceChanged() override; |
75 bool requestsHighLiveResourceCachePriority() override { return true; } | 77 bool requestsHighLiveResourceCachePriority() override { return true; } |
76 | 78 |
77 RefPtr<StaticBitmapImage> m_image; | 79 RefPtr<StaticBitmapImage> m_image; |
78 bool m_isNeutered = false; | 80 bool m_isNeutered = false; |
79 }; | 81 }; |
80 | 82 |
81 } // namespace blink | 83 } // namespace blink |
82 | 84 |
83 #endif // ImageBitmap_h | 85 #endif // ImageBitmap_h |
OLD | NEW |