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

Side by Side Diff: third_party/WebKit/Source/core/html/ImageData.h

Issue 2797213002: Fix BaseRenderingContext2D create/put/get-ImageData() for color managed canvas (Closed)
Patch Set: Fixing more interface listings fails Created 3 years, 8 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 /* 1 /*
2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 static ImageData* Create(unsigned width, unsigned height, ExceptionState&); 83 static ImageData* Create(unsigned width, unsigned height, ExceptionState&);
84 static ImageData* Create(DOMUint8ClampedArray*, 84 static ImageData* Create(DOMUint8ClampedArray*,
85 unsigned width, 85 unsigned width,
86 ExceptionState&); 86 ExceptionState&);
87 static ImageData* Create(DOMUint8ClampedArray*, 87 static ImageData* Create(DOMUint8ClampedArray*,
88 unsigned width, 88 unsigned width,
89 unsigned height, 89 unsigned height,
90 ExceptionState&); 90 ExceptionState&);
91 91
92 ImageData* createImageData(unsigned width, 92 static ImageData* createImageData(unsigned width,
Justin Novosad 2017/04/11 21:28:05 With these function no longer in the IDL, they sho
zakerinasab 2017/04/15 07:04:42 Done.
93 unsigned height, 93 unsigned height,
94 const ImageDataColorSettings&, 94 const ImageDataColorSettings&,
95 ExceptionState&); 95 ExceptionState&);
96 ImageData* createImageData(ImageDataArray&, 96 static ImageData* createImageData(ImageDataArray&,
97 unsigned width, 97 unsigned width,
98 unsigned height, 98 unsigned height,
99 ImageDataColorSettings&, 99 ImageDataColorSettings&,
100 ExceptionState&); 100 ExceptionState&);
101 101
102 void getColorSettings(ImageDataColorSettings& result) { 102 void getColorSettings(ImageDataColorSettings& result) {
103 result = color_settings_; 103 result = color_settings_;
104 } 104 }
105 105
106 static ImageData* CreateForTest(const IntSize&); 106 static ImageData* CreateForTest(const IntSize&);
107 static ImageData* CreateForTest(const IntSize&, 107 static ImageData* CreateForTest(const IntSize&,
108 DOMArrayBufferView*, 108 DOMArrayBufferView*,
109 const ImageDataColorSettings* = nullptr); 109 const ImageDataColorSettings* = nullptr);
110 static sk_sp<SkColorSpace> GetSkColorSpaceForTest(const CanvasColorSpace&, 110 static sk_sp<SkColorSpace> GetSkColorSpaceForTest(const CanvasColorSpace&,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 static DOMFloat32Array* ConvertFloat16ArrayToFloat32Array(const uint16_t*, 191 static DOMFloat32Array* ConvertFloat16ArrayToFloat32Array(const uint16_t*,
192 unsigned); 192 unsigned);
193 193
194 static sk_sp<SkColorSpace> GetSkColorSpace(const CanvasColorSpace&, 194 static sk_sp<SkColorSpace> GetSkColorSpace(const CanvasColorSpace&,
195 const CanvasPixelFormat&); 195 const CanvasPixelFormat&);
196 }; 196 };
197 197
198 } // namespace blink 198 } // namespace blink
199 199
200 #endif // ImageData_h 200 #endif // ImageData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698