| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 BaseRenderingContext2D_h | 5 #ifndef BaseRenderingContext2D_h |
| 6 #define BaseRenderingContext2D_h | 6 #define BaseRenderingContext2D_h |
| 7 | 7 |
| 8 #include "bindings/modules/v8/CSSImageValueOrHTMLImageElementOrSVGImageElementOr
HTMLVideoElementOrHTMLCanvasElementOrImageBitmapOrOffscreenCanvas.h" | 8 #include "bindings/modules/v8/CSSImageValueOrHTMLImageElementOrSVGImageElementOr
HTMLVideoElementOrHTMLCanvasElementOrImageBitmapOrOffscreenCanvas.h" |
| 9 #include "bindings/modules/v8/StringOrCanvasGradientOrCanvasPattern.h" | 9 #include "bindings/modules/v8/StringOrCanvasGradientOrCanvasPattern.h" |
| 10 #include "core/html/ImageData.h" | 10 #include "core/html/ImageData.h" |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 CanvasPattern* createPattern(ScriptState*, | 179 CanvasPattern* createPattern(ScriptState*, |
| 180 const CanvasImageSourceUnion&, | 180 const CanvasImageSourceUnion&, |
| 181 const String& repetitionType, | 181 const String& repetitionType, |
| 182 ExceptionState&); | 182 ExceptionState&); |
| 183 CanvasPattern* createPattern(ScriptState*, | 183 CanvasPattern* createPattern(ScriptState*, |
| 184 CanvasImageSource*, | 184 CanvasImageSource*, |
| 185 const String& repetitionType, | 185 const String& repetitionType, |
| 186 ExceptionState&); | 186 ExceptionState&); |
| 187 | 187 |
| 188 ImageData* createImageData(ImageData*, ExceptionState&) const; | 188 ImageData* createImageData(ImageData*, ExceptionState&) const; |
| 189 ImageData* createImageData(double width, | 189 ImageData* createImageData(int width, int height, ExceptionState&) const; |
| 190 double height, | 190 ImageData* getImageData(int sx, |
| 191 ExceptionState&) const; | 191 int sy, |
| 192 ImageData* getImageData(double sx, | 192 int sw, |
| 193 double sy, | 193 int sh, |
| 194 double sw, | |
| 195 double sh, | |
| 196 ExceptionState&) const; | 194 ExceptionState&) const; |
| 197 void putImageData(ImageData*, double dx, double dy, ExceptionState&); | 195 void putImageData(ImageData*, int dx, int dy, ExceptionState&); |
| 198 void putImageData(ImageData*, | 196 void putImageData(ImageData*, |
| 199 double dx, | 197 int dx, |
| 200 double dy, | 198 int dy, |
| 201 double dirtyX, | 199 int dirtyX, |
| 202 double dirtyY, | 200 int dirtyY, |
| 203 double dirtyWidth, | 201 int dirtyWidth, |
| 204 double dirtyHeight, | 202 int dirtyHeight, |
| 205 ExceptionState&); | 203 ExceptionState&); |
| 206 | 204 |
| 207 bool imageSmoothingEnabled() const; | 205 bool imageSmoothingEnabled() const; |
| 208 void setImageSmoothingEnabled(bool); | 206 void setImageSmoothingEnabled(bool); |
| 209 String imageSmoothingQuality() const; | 207 String imageSmoothingQuality() const; |
| 210 void setImageSmoothingQuality(const String&); | 208 void setImageSmoothingQuality(const String&); |
| 211 | 209 |
| 212 virtual bool originClean() const = 0; | 210 virtual bool originClean() const = 0; |
| 213 virtual void setOriginTainted() = 0; | 211 virtual void setOriginTainted() = 0; |
| 214 virtual bool wouldTaintOrigin(CanvasImageSource*, ExecutionContext*) = 0; | 212 virtual bool wouldTaintOrigin(CanvasImageSource*, ExecutionContext*) = 0; |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 foregroundFlags.setBlendMode(SkBlendMode::kSrcOver); | 466 foregroundFlags.setBlendMode(SkBlendMode::kSrcOver); |
| 469 c->setMatrix(ctm); | 467 c->setMatrix(ctm); |
| 470 drawFunc(c, &foregroundFlags); | 468 drawFunc(c, &foregroundFlags); |
| 471 c->restore(); | 469 c->restore(); |
| 472 c->setMatrix(ctm); | 470 c->setMatrix(ctm); |
| 473 } | 471 } |
| 474 | 472 |
| 475 } // namespace blink | 473 } // namespace blink |
| 476 | 474 |
| 477 #endif // BaseRenderingContext2D_h | 475 #endif // BaseRenderingContext2D_h |
| OLD | NEW |