| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008-2009 Torch Mobile, Inc. | 3 * Copyright (C) 2008-2009 Torch Mobile, Inc. |
| 4 * Copyright (C) 2013 Google Inc. All rights reserved. | 4 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 void fillDRRect(const FloatRoundedRect&, const FloatRoundedRect&, const Colo
r&); | 166 void fillDRRect(const FloatRoundedRect&, const FloatRoundedRect&, const Colo
r&); |
| 167 | 167 |
| 168 void clearRect(const FloatRect&); | 168 void clearRect(const FloatRect&); |
| 169 | 169 |
| 170 void strokeRect(const FloatRect&); | 170 void strokeRect(const FloatRect&); |
| 171 void strokeRect(const FloatRect&, float lineWidth); | 171 void strokeRect(const FloatRect&, float lineWidth); |
| 172 | 172 |
| 173 void drawPicture(const SkPicture*); | 173 void drawPicture(const SkPicture*); |
| 174 void compositePicture(SkPicture*, const FloatRect& dest, const FloatRect& sr
c, SkXfermode::Mode); | 174 void compositePicture(SkPicture*, const FloatRect& dest, const FloatRect& sr
c, SkXfermode::Mode); |
| 175 | 175 |
| 176 void drawImage(Image*, const IntRect&, SkXfermode::Mode = SkXfermode::kSrcOv
er_Mode, RespectImageOrientationEnum = DoNotRespectImageOrientation); | 176 void drawImage(Image*, const IntRect&, const KURL&, SkXfermode::Mode = SkXfe
rmode::kSrcOver_Mode, RespectImageOrientationEnum = DoNotRespectImageOrientation
); |
| 177 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect,
SkXfermode::Mode = SkXfermode::kSrcOver_Mode, RespectImageOrientationEnum = DoNo
tRespectImageOrientation); | 177 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect,
const KURL&, SkXfermode::Mode = SkXfermode::kSrcOver_Mode, RespectImageOrientati
onEnum = DoNotRespectImageOrientation); |
| 178 | 178 |
| 179 void drawTiledImage(Image*, const IntRect& destRect, const IntPoint& srcPoin
t, const IntSize& tileSize, | 179 void drawTiledImage(Image*, const IntRect& destRect, const IntPoint& srcPoin
t, const IntSize& tileSize, |
| 180 SkXfermode::Mode = SkXfermode::kSrcOver_Mode, const IntSize& repeatSpaci
ng = IntSize()); | 180 const KURL&, SkXfermode::Mode = SkXfermode::kSrcOver_Mode, const IntSize
& repeatSpacing = IntSize()); |
| 181 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect, | 181 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect, |
| 182 const FloatSize& tileScaleFactor, Image::TileRule hRule = Image::Stretch
Tile, Image::TileRule vRule = Image::StretchTile, | 182 const FloatSize& tileScaleFactor, const KURL&, Image::TileRule hRule = I
mage::StretchTile, Image::TileRule vRule = Image::StretchTile, |
| 183 SkXfermode::Mode = SkXfermode::kSrcOver_Mode); | 183 SkXfermode::Mode = SkXfermode::kSrcOver_Mode); |
| 184 | 184 |
| 185 // These methods write to the canvas. | 185 // These methods write to the canvas. |
| 186 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou
ndedRect | 186 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou
ndedRect |
| 187 void drawOval(const SkRect&, const SkPaint&); | 187 void drawOval(const SkRect&, const SkPaint&); |
| 188 void drawPath(const SkPath&, const SkPaint&); | 188 void drawPath(const SkPath&, const SkPaint&); |
| 189 void drawRect(const SkRect&, const SkPaint&); | 189 void drawRect(const SkRect&, const SkPaint&); |
| 190 | 190 |
| 191 void clip(const IntRect& rect) { clipRect(rect); } | 191 void clip(const IntRect& rect) { clipRect(rect); } |
| 192 void clip(const FloatRect& rect) { clipRect(rect); } | 192 void clip(const FloatRect& rect) { clipRect(rect); } |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 | 391 |
| 392 float m_deviceScaleFactor; | 392 float m_deviceScaleFactor; |
| 393 | 393 |
| 394 unsigned m_printing : 1; | 394 unsigned m_printing : 1; |
| 395 unsigned m_hasMetaData : 1; | 395 unsigned m_hasMetaData : 1; |
| 396 }; | 396 }; |
| 397 | 397 |
| 398 } // namespace blink | 398 } // namespace blink |
| 399 | 399 |
| 400 #endif // GraphicsContext_h | 400 #endif // GraphicsContext_h |
| OLD | NEW |