Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: third_party/WebKit/Source/core/frame/ImageBitmap.h

Issue 1631733003: Implementing ImageBitmap option imageOrientation of flipY (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698