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

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

Issue 2575693005: Add unit test for color managed ImageBitamp(ImageBitmap) constructor (Closed)
Patch Set: Moving ImageBitmap(HTMLCanvasElement) test to CanvasRenderingContext2DTest Created 4 years 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 15 matching lines...) Expand all
26 class ImageData; 26 class ImageData;
27 class ImageDecoder; 27 class ImageDecoder;
28 28
29 enum AlphaDisposition { 29 enum AlphaDisposition {
30 PremultiplyAlpha, 30 PremultiplyAlpha,
31 DontPremultiplyAlpha, 31 DontPremultiplyAlpha,
32 }; 32 };
33 enum DataColorFormat { 33 enum DataColorFormat {
34 RGBAColorType, 34 RGBAColorType,
35 N32ColorType, 35 N32ColorType,
36 F16ColorType,
36 }; 37 };
37 enum ColorSpaceInfoUpdate { 38 enum ColorSpaceInfoUpdate {
38 UpdateColorSpaceInformation, 39 UpdateColorSpaceInformation,
39 DontUpdateColorSpaceInformation, 40 DontUpdateColorSpaceInformation,
40 }; 41 };
41 42
42 class CORE_EXPORT ImageBitmap final 43 class CORE_EXPORT ImageBitmap final
43 : public GarbageCollectedFinalized<ImageBitmap>, 44 : public GarbageCollectedFinalized<ImageBitmap>,
44 public ScriptWrappable, 45 public ScriptWrappable,
45 public CanvasImageSource, 46 public CanvasImageSource,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 bool isImageBitmapPremultiplied, 157 bool isImageBitmapPremultiplied,
157 bool isImageBitmapOriginClean); 158 bool isImageBitmapOriginClean);
158 159
159 RefPtr<StaticBitmapImage> m_image; 160 RefPtr<StaticBitmapImage> m_image;
160 bool m_isNeutered = false; 161 bool m_isNeutered = false;
161 }; 162 };
162 163
163 } // namespace blink 164 } // namespace blink
164 165
165 #endif // ImageBitmap_h 166 #endif // ImageBitmap_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698